Using Eclipse with Metropolis

These instructions assume you are using Eclipse 3.0 under Windows.

Contents of this page:

  • Install Eclipse
  • Set up Eclipse for Ptolemy II
  • Using Eclipse
  • Optional Extensions
  • Troubleshooting
  • Install Eclipse

    1. Download the latest version of Eclipse from http://www.eclipse.org.
    2. Unzip the download file into an appropriate place (such as C:\Program Files).
    3. Finish the installation by running eclipse/eclipse.exe.
      The first time this is run it will complete the installation process.
      After the first run, normal start-up will occur whenever it is started.

    Set up Eclipse for Metropolis

    Eclipse Preferences for Metropolis

    The default configuration of Eclipse has some difficulties with Metropolis, so a few changes are necessary.

    1. By default, Eclipse rebuilds a project when any change is made to a file. This will result in thousands of errors when Metropolis is first checked out, and during normal usage, can be annoying because of the pauses it creates. We suggest disabling this feature as follows:
      1. Select Window -> Preferences.
      2. Highlight General -> Workspace (probably already highlighted).
      3. Deselect "Build automatically."

    2. Metropolis source files are worked on by many people with different editors. Unfortunately, different text editors interpret tab characters differently, so it is best to use spaces rather than tabs. You can specify for Eclipse to always do this as follows:
      1. Select Window->Preferences in the menu.
      2. Expand the Java tree, select "Editor" and then click on the "Typing" tab at the right.
      3. Check "Insert spaces for tabs (see Code Formatter preference page)".
      4. Click OK.

    Check Out Metropolis

    The non-public master repository is at https://repo.eecs.berkeley.edu/svn/projects/asv/metro/.

    There is a public repository at https://github.com/terraswarm/metropolis that was created from the Metropolis-1.1.3 release and updated for SystemC-2.3.1