Skip to content

Setting up your Development Environment

Thomas Gossmann edited this page Apr 11, 2014 · 7 revisions

Setting up can be done in 2 ways.

  1. Minimum Installation: To develop on the composer-plugin
  2. Test Installation: To run the test suites

Prerequisite

Eclipse Kepler (minimum) is required.

From the Eclipse (Kepler) Update Site install:

  • m2e
  • m2e connector for mavenarchiver pom properties
  • Graphical Editing Framework Zest Visualization Toolkit SDK

Add the Orbit Update Site and install:

  • Apache Commons Collections
  • Apache Commons Exec

Add the Dubture Orbit Update Site and install:

  • Dubture OSGI-Bundles

Method 1: Minimum Installation

  1. From the PDT Extensions (Dev) Update Site, install:
  • PDT Extensions
  • Lucene Indexing
  • Json Editor
  1. Clone Repositories and build them with maven in your workspace (Shell-Script):

* Rsp. your forks

  1. Import Projects into Eclipse
  1. Right click the Project Explorer and select "Existing Maven Projects"
  2. Select the folder in which both projects are located (pulse00 in this case, may be your username)
  3. Uncheck the com.dubture.composer.test project (this won't run due to dependencies, only works in complete install)
  4. Click next and finish
  5. This may eventually bring up the Software Installation dialog for additional maven connectors, install them
  1. Run the Eclipse /w the Composer Editor
  1. Right-click the com.dubture.composer.ui project > Run As > Eclipse Application
  2. Optimize your Run-Configuration: Near the "Run" icon in the toolbar, click the little triangle > Run Configurations ...
  3. Plugins Tab: Lauch with 'Plug-ins selected below', Deselect All, Check com.dubture.composer.ui, Hit the button "Add Required Plug-ins" on the right, Apply button at the bottom and Run.
  4. Have fun :)

Method 2: Test Installation

Same as Minimum Installation plus:

Add the DLTK Update Site and install:

  • DLTK-Tests

Import project

Same as importing projects above, this time check the com.dubture.composer.test project.

Running the Tests

To run a test/the tests right-click either the package com.dubture.composer.test or AllTests or a particular test and select Run As ... -> JUnit Plug-In Test.

Debugging

Use the com.dubture.composer.core.log.Logger to write out debug messages. To read them:

  1. Open the launch configuration
  2. Tab 'Tracing'
  3. Enable Tracing (if not already)
  4. Check com.dubture.composer.core and check debug on the right

Now, your debug message will be readable from the Console view during the execution

Helpers

From the Kepler Update Site:

  • SWT Designer

From the Eclipse Project Update Site:

  • Eclipse Platform SDK (for proper javadocs)
Clone this wiki locally