-
Notifications
You must be signed in to change notification settings - Fork 48
Convert existing Eclipse plugins and apps to Gradle
Andrey Hihlovskiy edited this page May 7, 2014
·
16 revisions
Conversion of existing Eclipse plugins and apps to Gradle is very easy, when we apply Wuff. The Eclipse projects themselves do not need to be restructured or even facilitated with "build.gradle" - Wuff does all work for us.
Lets try the following simple scenario: we create two Eclipse projects: one is plugin with a view, another is RCP app using the plugin. Then we convert these two to Gradle, using Wuff.
First three parts of this tutorial are done in Eclipse IDE, the last part - in file explorer and console.
- Invoke menu "File/New/Project...", New Wizard dialog pops up.
- Select "Plug-in Project", click "Next".
- Enter project name "MyPlugin", leave all other fields default, click "Next".
- Choose whatever name and ID for project, make sure that "Rich Client Application" is set to "No", click "Next".
- Choose template "Plug-in with a view", click "Next".
- Choose whatever package and class names, view category. Click "Finish".
- Invoke menu "File/New/Project...", New Wizard dialog pops up.
- Select "Plug-in Project", click "Next".
- Enter project name "MyRcpApp", leave all other fields default, click "Next".
- Choose whatever name and ID for project, make sure that "Rich Client Application" is set to "Yes", click "Next".
- Choose template "Hello RCP", click "Next".
- Choose whatever package and class names, click "Finish".
- Double-click "MyRcpApp/META-INF/MANIFEST.MF", switch to tab "Dependencies".
- Click "Add", "Plug-in Selection" dialog appears. Enter symbolic name of the Eclipse plugin we created previously ("MyPlugin", if symbolic name wasn't changed). Click "OK".
- Save manifest (Ctrl+S).
- Switch to "plugin.xml" tab, insert fragment:
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="*">
<view standalone="true"
minimized="false"
relative="org.eclipse.ui.editorss"
relationship="left"
id="myplugin.views.SampleView">
</view>
</perspectiveExtension>
</extension>- Save "plugin.xml" (Ctrl+S).