- 將Shell設為最大化顯示
1 2 3 4 5 |
@Override public void createWindowContents(Shell shell) { shell.setMaximized(true); super.createWindowContents(shell); } |
- 將畫面全銀幕
1 2 3 4 5 |
public void postWindowOpen() { final IWorkbenchWindow window = getWindowConfigurer().getWindow(); Shell shell = window.getShell(); shell.setMaximized( true ); } |
- 將啟動視窗最大化
1 2 |
IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); Dimension srcd = Toolkit.getDefaultToolkit().getScreenSize(); |
- 移除視窗標題列
1 2 3 |
public void preWindowOpen() { configurer.setShellStyle( SWT.NO_TRIM ); } |