2011-01-05 40 views

回答

3

的可能性,你可以試試限制性ShellStyle,如this thread和詳細的建議in this oneSWT.DIALOG_TRIM):

public void preWindowOpen() { 
     IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); 
     configurer.setInitialSize(new Point(800, 600)); 
     configurer.setShowCoolBar(false); 
     configurer.setShowStatusLine(false); 
     configurer.setTitle("RFID demo"); 


} 

您需要撥打setShellStyle()。有關如何形成參數的說明,請參閱Javadoc的Shell(int)構造函數。
根據WorkbenchWindowConfigurer的默認值是SWT.SHELL_TRIM,它包括SWT.RESIZE選項。
您必須制定一個不包含SWT.RESIZE的值。

這正是我一直在尋找的是,

configurer.setShellStyle(SWT.DIALOG_TRIM); 
+0

坦克你很 – picciopiccio 2011-01-15 11:05:48

+0

它不明確放在哪裏setShellStyle。試圖置於setTitle之下 - 不起作用 – Dmitry 2013-06-12 14:40:02