Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After the plugin has been created, use Maven to create a project file for Eclipse in which you reference the required libraries (as defined in the pom.xml of your plugin). Open a command window and enter the following commands:

cd C:\GX\wcbplugin\helloworldelement
mvn -s C:\GX\XperienCentral\settings.xml clean install
mvn -s C:\GX\XperienCentral\settings.xml eclipse:eclipse

...

Create a Plugin Project in Eclipse

Each WCB plugin is a separate Eclipse project. To create an Eclipse project for a plugin, perform the following steps:

  1. Navigate to File > New > Project…





  2. Select Java > Java Project and click [Next]:




  3. Enter a name for the project (e.g. HelloWorldElement) and select the option to create the project from an existing source. Select the root for the element plugin (for example, C:\GX\wcbplugin\helloworldelement).

  4. Click [Finish]. The project will now be created:





    Eclipse might prompt you to switch to the Java perspective. The perspective, that is the way windows in eclipse are ordered, can be modified later via the Window > Open perspective menu or in the right upper corner of the Eclipse user interface:






    After the project has been created, Eclipse will look like the following:


...