我认为问题就是这么说的.我是Eclipse插件开发的新手,所以我确信这是一个简单的答案.
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);
这可以用来创建文本小部件并将其放入一个区域(复合)