Applications Workbenches Workbench Windows workbench Advisor applicationlevel 1
几个重要的概念 Applications Workbenches Workbench Windows
几种类型的 workbench. Advisor application-level 1. Workbench. Advisor start up and shut down of the Workbench itself; there is one running Workbench per running Eclipse application. window-level 1. Workbench. Window. Advisor showing or hiding the menu, toolbar, and status line, and in configuring the controls shown in the window. There is one Workbench. Window. Advisor instance for each window 1. Action. Bar. Advisor helps define the actions that appear in the menu, toolbar, and status line of each window. There is one Action. Bar. Advisor instance for each window.
开始编码-登录 public class Application implements IPlatform. Runnable { public static final String PLUGIN_ID = “com. xinwei. cnms"; public Object run(Object args) throws Exception { Display display = Platform. UI. create. Display(); try { Platform. end. Splash(); if (!login()) return IPlatform. Runnable. EXIT_OK; int return. Code = Platform. UI. create. And. Run. Workbench(display, new Application. Workbench. Advisor()); if (return. Code == Platform. UI. RETURN_RESTART) { return IPlatform. Runnable. EXIT_RESTART; } return IPlatform. Runnable. EXIT_OK; } finally { display. dispose(); } }
- Slides: 6