Using Rodin as Target Platform: Difference between revisions
imported>Laurent →Definition of the Target Platform: Add sources |
imported>Laurent |
||
Line 18: | Line 18: | ||
=== Definition of the Target Platform === | === Definition of the Target Platform === | ||
Then, in Eclipse, open the Preferences pop-up window by clicking {{Menu|Window>Preferences}}. Then, select {{Menu|Plug-in Development>Target Platform}} in the tree, and | Then, in Eclipse, open the Preferences pop-up window by clicking {{Menu|Window>Preferences}}. Then, select {{Menu|Plug-in Development>Target Platform}} in the tree, and click {{Button|Add...}}. | ||
In the Target Definition window that pops up, select {{radio|Nothing: Start with an empty target definition}}, then click {{button|Next >}}. | In the Target Definition window that pops up, select {{radio|Nothing: Start with an empty target definition}}, then click {{button|Next >}}. | ||
Line 30: | Line 30: | ||
In the {{Menu|Add content}} window that pops up, select {{menu|Software Site}} this time, then click {{button|Next >}}. In the new page, titled {{menu|Add Software Site}}, click {{button|Add...}}. | In the {{Menu|Add content}} window that pops up, select {{menu|Software Site}} this time, then click {{button|Next >}}. In the new page, titled {{menu|Add Software Site}}, click {{button|Add...}}. | ||
In the {{Menu|Add Repository}} window that pops up, click {{button|Archive…}} and select the repository file you have downloaded (e.g., {{file|Rodin-2.7-repo.zip}} and click {{button|OK}} until you are back to the {{Menu|Add Software Site}} window. There, untick the {{button|Group by Category}} checkbox, select {{Menu| | In the {{Menu|Add Repository}} window that pops up, click {{button|Archive…}} and select the repository file you have downloaded (e.g., {{file|Rodin-2.7-repo.zip}} and click {{button|OK}} until you are back to the {{Menu|Add Software Site}} window. There, untick the {{button|Group by Category}} checkbox, select {{Menu|Rodin Platform}} in the list and click {{button|Finish}} twice. | ||
Back to the {{Menu|Preferences}} window, select the Rodin platform you have just added to activate it and click {{button|OK}}. | Back to the {{Menu|Preferences}} window, select the Rodin platform you have just added to activate it and click {{button|OK}}. |
Revision as of 16:35, 16 December 2012
When developing plug-ins for Rodin, it is somewhat cumbersome to have to download all sources from the SVN repository, or to import them in the workspace somehow, just to be able to read them. Using a target platform is a convenient alternative. Moreover, this alternative allows to validate one's plugin against a specific version of the Rodin platform and facilitates regression testing.
Configuring a Target Platform
Preparation
To configure a Rodin release as a target platform, first download two files from SourceForge:
- rodin-VERSION-dev.zip: contains the Rodin platform together with its sources,
- rodin-VERSION-repo.zip: a p2 repository of the full Rodin platform.
Then, unpack the
file somewhere on your hard disk. There is no need to unpack the
file anywhere, as Eclipse can process it directly.
Definition of the Target Platform
Then, in Eclipse, open the Preferences pop-up window by clicking
. Then, select in the tree, and click .In the Target Definition window that pops up, select
◎ Nothing: Start with an empty target definition |
, then click
. Enter a name for your target platform, for instance. Then, click the
button of the tab. In the window that pops up, select , then click . In the new page, titled , enter the location of the directory where you unpacked theand click
.Back to the
window, click again.In the
window that pops up, select this time, then click . In the new page, titled , click .In the
window that pops up, click and select the repository file you have downloaded (e.g.,and click
until you are back to the window. There, untick the checkbox, select in the list and click twice.Back to the
window, select the Rodin platform you have just added to activate it and click .Important: It is essential to build the target platform in the order given above, otherwise links to source files do not work correctly in Eclipse.
Complement to the Target Platform
If you plan to run tests with JUnit, you have to add the JUnit plug-in as a complement to your target platform. For that, edit the target platform definition from the Preferences window and select
in the window. In the next page, click and select . Then, select the feature from the list and click twice.