RCP編程技巧:如何設置本身的工具欄

假如須要在工具欄上加一個「新建項目」的按鈕,可使用以下方法: 在fillCoolBar(ICoolBarManager coolBar)方法中加入: IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT); toolbar.add(new NewProjectAction()); coolBar.add(new Tool
相關文章
相關標籤/搜索