How to extend the Eclipse component org.eclipse.swt.widgets.Text?

I think that says it all. I am new to Eclipse plugin development, so I am sure there is a simple answer.

+3
source share
1 answer
final Composite area = new Composite(parent, SWT.NULL); final GridLayout gridLayout = new GridLayout(); mTextWidget = new Text(area, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL); // Define a minimum width final GridData gridData = new GridData(); gridData.widthHint = DEFAULT_WIDTH; gridData.heightHint = DEFAULT_HEIGHT; mTextWidget.setLayoutData(gridData); 

This can be used to create a text widget and place it in the (Composite) area.

+6
source

All Articles