Open main menu

CDOT Wiki β

Changes

Teams Winter 2011/team1/RCP/Define and use JFace

5 bytes added, 11:30, 4 March 2011
no edit summary
2.2 Specify the id ''cs.ecl.simpleRCP.perspective'', name ''RCP Perspective'' and class ''cs.ecl.rcp.simplercp.Perspective'':<br/>
[[Image: PluginXml2.png | 800px]]<br/>
2.3 Click on the <code>class*</code> link to create a class. The method <code>createInitialLayout()</code> in this class is responsible for creating the new perspective.<br/>
2.4 The perspective is defined but not yet reachable via the application. To activate the switch between perspectives add the following line to the<br/> <code>ApplicationWorkbenchWindowAdvisor.java</code> in method preWindowOpen():<br/>
<code>configurer.setShowPerspectiveBar(true);</code><br/>
2.5 Run the application. You should be able to select your perspective interactively:<br/>
[[Image: Perspective1.png | 400px]]
1
edit