1、新建一個標準的rap plugin-in 項目:

得到的項目結構大概如下:

run confi..->..add bundle(配置好bundle 運行結果如下):

全屏控制代碼:
/** * Configures the initial size and appearance of a workbench window. * 配置初始大小和顯示workbench的窗口樣式 * -看來以后的主題應該在這里設置了 */public class applicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor { //啟動設置最大化 @Override public void postWindowCreate() { Shell shell = getWindowConfigurer().getWindow().getShell(); shell.setMaximized(true); } public void PReWindowOpen() { IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); //底部一欄?// configurer.setShowFastViewBars(true);// configurer.setShowProgressIndicator(true); //設置初始窗體大小// configurer.setInitialSize(new Point(600, 400)); configurer.setShowCoolBar(true);//控制快捷按鈕,(工具欄)顯示 configurer.setShowStatusLine(false); configurer.setTitle("RAP Mail Template"); //SWT.NO_TRIM不顯示整個標題欄 //SWT.TITLE只顯示標題不顯示-最大,最小,關閉 //http://eclipsesource.com/blogs/2007/11/12/hiding-the-window-in-rap-applications/ configurer.setShellStyle(SWT.TITLE); }}
新聞熱點
疑難解答