Configure Eclipse

From SONIVIS:Wiki

Jump to: navigation, search

In order to get things running in Eclipse please configure the following code conventions. There is also a possibility to connect Eclipse directly to our Tracking System CodeBeamer. So you do not need to leave Eclipse in order to change or add tracker items.

Checkout Code

Step 1: Checkout Code
Step 1: Checkout Code
Step 2: Checkout Code
Step 2: Checkout Code
Step 3: Checkout Code
Step 3: Checkout Code
Step 4: Checkout Code
Step 4: Checkout Code
Step 5: Checkout Code
Step 5: Checkout Code

You need the Subclipse plug-in. The instructions to install Subclipse you find here.

To checkout the latest Version of the tool either

  • choose File → New → Other.... The pop-up wizard window provides a list including SVN. There you select Checkout Projects from SVN or
  • choose File → Import.... The pop-up wizard window provides a list including Other. Select Checkout projects from SVN there.
  • both options are also available by right-klicking in the Package frame of your Eclipse Java View.

Create a new repository location in the appearing window and use the following repository: svn://sonivis.org/sonivistool/trunk. You need to provide authentication then.


Code Conventions

To get correct checkstyle warnings and formatting, you have to setup Eclipse and the Plug-in CheckStyle to follow our code conventions.

  • Use Window → Preferences → Java → Code Style → Formatter: Import ... to import our formatting guidelines "Eclipse [SONIVIS:Tool]" from the following XML file: Project "sonivis-tool-installer" guidelines/SONIVIS_Formatter.xml
  • Activate the newly imported configuration.
  • Repeat the same steps to setup the Clean Up function under "Clean Up": Import sonivis-tool-installer/guidelines/SONIVIS_CleanUp.xml
  • Activate CheckStyle for a project via the context menu and create a new configuration (use the "relative to project" setting) from /sonivis-tool-installer/guidelines/SONIVIS_CheckStyle.xml.
  • Set this configuration as default for all projects.
  • Apply the CheckStyle configuration for the first project in the project view via the context menu Properties item. Choose CheckStyle on the left, choose your imported configuration and and click OK. Then mark all other projects in the projects view, click right and choose CheckStyle → Apply project configuration from template project. Choose the first item in the list (which should be the first project) as template.

Mylyn CodeBeamer bridge

MyBugs
MyBugs

The CodeBeamer connector plug-in for Mylyn is available from this plug-in repository: http://cbconnector.javaforge.com/update/2.1. You should have installed it following the Eclipse installation guideline.

  • Go to Menu "Window" → "Show View" → "Other" → "Mylyn" → "Task Repositories"
    • Click right on the opened view and choose "Add Task Repository" from the pop-up context menu.
    • Set-up the plug-in's configuration (Screenshot): Server = http://www.sonivis.org:8080/cb/remote-api?project=SONIVIS:Tool, User ID and Password are the same as in the CodeBeamer web interface
    • Add a new entry to the view "Task Repositories". Right click on it and choose "New Query..." to add an auto-updated list of bugs/tasks.
      • e.g. to get a list of all bugs that are assigned to you see the screenshot "MyBugs"


Next Step: Start SONIVIS in Eclipse

Personal tools