Changes

Jump to: navigation, search

Teams Winter 2011/team1/RCP/Create configuration

1,742 bytes added, 13:50, 9 March 2011
Adding an SWT widget to your application
'''=== Create a new configuration for your Application'''===To create a product we need a product configuration. The configuration is used for exporting and creating your application.<br/>[[File: Pic1.JPG]]<br/><br/>
1. To create a product we need a product configuration. The configuration is used for exporting Right click on your project and creating your applicationselect 'New' -> 'Product Configuration'<br/>[[File: Pic2.JPG]]<br/><br/>
1Give your product configuration file a name.2) Right click on your project and select In our case will be 'Newcs.ecl.simpleRCP.product' -<br/>[[File: Pic3.JPG]]<br/><br/> 'Product Configuration'
1.3) Give your product configuration Open the file a namewe just created and select the 'Overview' tab. In Lets fill in the same names for our case will be 'cs.eclconfiguration.simpleRCP<br/>[[File: Pic4.product'gif]]<br/><br/>
2Press 'New' in the 'Product Definition' part and select the application of your plugin 'cs.ecl.simpleRCP.product'.<br/>[[File: Pic5.JPG]]<br/><br/>Now our product definition should be filled out.
3=== Dependencies ===For our example we will use a product definition based on plugins and not features.<br/>[[File: Pic6.JPG]]<br/><br/>
4Switch to the 'Dependencies' Tab and select 'Add'.Select the plugin 'cs.ecl.simpleRCP.product'. Press 'Add Required Plug-ins' and save.<br/>[[File: Pic7.JPG]]<br/><br/> === Launching our product ===In the overview tab press synchronize and then press 'Launch an Eclipse application'. Synchronize will align your product configuration with the launch configuration.<br/>[[File: Pic8.JPG]]<br/><br/> In order to customize your splash screen you may do so in the 'Splash' tab of your configuration file. You can also customize your launch arguments in the 'Launch' tab. Here you can specify the name of the application and the icon which should be used. Make sure the location of the icons is correctly maintained otherwise Eclipse will not use these icons.<br/>[[File: Pic9.JPG]]<br/><br/> === Adding an SWT widget to your application === For our example we will use 'http://www.eclipse.org/swt/snippets/#tooltips' to add a tool tip to items in a table. You can select any widget you may think that your application needs and add them accordingly. All there is left is to add the code to our application.<br/><br/> <br/>[[Teams_Winter_2011/team1| Index Page]]
1
edit

Navigation menu