URCap - Eclipse Plugin Guide
The URCap Eclipse Plugin is an plugin developed for the Eclipse IDE. The purpose of the plugin is to enable an easier development of the URCap through a guiding user interface accessible from the Eclipse IDE. The plugin is available in the Starter Package from version 1.10.
The following features are available:
- Create a new URCap project.
- Add program- installation- and toolbar node to the project.
- Deploy the URCap to a local URSim.
Create a new project
A new URCap project can be created by following the steps:
- Click on the UR logo to create a new project.
- A new window for creating a new project should appear.
- Fill out the fields for creating a new URCap and Click "Finish".
- A new popup window showing the progress should appear. Please wait. (This will take some seconds to finish due to the actual maven command running in the background).
- A Message window should appear notifying that the project has been created.
- Click "OK" on the message window.
- The project created should be in the Package Explorer tab.
Adding installation node and program node to the project
After creating a new project, program- installation- or toolbar node can be added to the project. Notice that, it still necessary for the user to register each node service class in the Activator class.
This feature generates the skeleton of classes necessary for each node. To add the node, follow the steps:
- Fill out the empty fields <ursim.home> and <ursimvm.install.host> in the pom.xml file in the project by writing default as the value or the actual value.
- Click on the project that you wish add the node to.
- Then click on the down pointing arrow beside the UR logo and choose the node you want to add to the project.
- A new window should appear.
- Fill out the name of the classes and click "Next".
- The next page should appear.
- Fill out the title of the node and click "Finish".
- A progress window should appear. Please wait.
- When the progress is done, a message window should appear.
- Click "OK" and right-click on the project the node has been added to, and click "Refresh".
- It should be possible to see the classes added to the project.
Adding toolbar node to the project
Adding toolbar node is almost the same as the other node. The difference is that the user has to choose which logo to use on the toolbar (step 5). This logo must be located in the resource folder (step 1). If a folder is created inside the resource folder, make sure to add this as the part of the path when browsing the path of the logo (/folder/UR_logo.png).
/Deploy the URCap to local URSim
The feature deploy allows the user to deploy the URCap to a URSim located within the Starter Package. To deploy a URCap project, follow the steps:
- Insert the path of the URSim in the pom.xml file located inside the project.
- Click on the project you wish to deploy.
- Now, click on the down pointing arrow beside the UR logo and choose the option to deploy to local URSim.
- The path of the URSim is automatically set if it is set in the pom.xml file of the project. Else it is possible to browse the path but this browsing feature will not set the path in the pom.xml which means that it is necessary to browse every time.
- Click "Finish" to deploy the project.
- A progress window should appear. Please wait.
- When the progress is done, a message window should appear.
- Click "OK".
- Start the URSim from the terminal as usual to see the deployed project.