在设计的时候应该建立的类是java application才行,很有可能忽视了,如果建的是这样的类,插件会自动生成用于显示界面的代码.
如果没有就要添加了.
Display display=Display.getDefault();
Shell shell=new Shell();
shell.setSize(500,500);//组件大小,可能已经被设置过了
shell.open();
shell.layout();
while(!shell.isDisposed()){
if(!display.readAndDispatch())
display.sleep();
}
望采纳。
this.setVisiable(true);
希望采纳