Eclipse is unaware of the version control aspects of the Ptolemy II project, use the shell version of Subversion to update the tree.


(No Eclipse Subversion plug-in (Subversive), use Subversion (svn) from the command line).

Use this method if getting the Eclipse plug-in named "Subversive" is not working for you. To try to install the Eclipse plug-in named "Subersive", see Eclipse is aware of the Subversion aspects of the project.

For other ways to set up Eclipse and Ptolemy II, see the Setting up Eclipse to manage your Ptolemy II development Environment page.

  1. Windows does not have Subversion installed.
  2. In a directory other than the Eclipse workspace directory (if it exists), check out the ptII svn repository with read-only access:
          svn co https://repo.eecs.berkeley.edu/svn-anon/projects/eal/ptII/trunk ptII
        
    Note: Most users will select the /svn-anon/ URL above because they will be accessing the tree with read-only Subversion access.
    If you have an UC Berkeley EECS LDAP account or have an external account on repo.eecs.berkeley.edu, then check out ptII with read/write access:
          svn co https://repo.eecs.berkeley.edu/svn/projects/eal/ptII/trunk ptII
        
  3. Accessors: If you are not working on Accessors then skip this step
    If you are working on accessors and you do not have read/write access to the ptII svn repo, then skip this step
    If you are working on accessors and have read/write access to ptII svn repo using an external account (an account that is an email address) on repo.eecs.berkeley.edu, then you will need to check out the Terraswarm accessors repo by hand separately:
          cd $PTII/org/terraswarm/accessor
        
    If you have don't have read/write access to the TerraSwarm accessors repo, use
          svn co https://repo.eecs.berkeley.edu/svn-anon/projects/terraswarm/accessors/trunk/accessors
        
    If you do have read/write access:
          svn co https://repo.eecs.berkeley.edu/svn/projects/terraswarm/accessors/trunk/accessors
        
    The goal of the above steps is to create $PTII/org/terraswarm/accessor/accessors/web.
  4. Set up the Eclipse ptII project .classpath for Ptolemy II
  5. Create the ptII project
    1. In File | New | Project, select 'Java project'.
    2. In the "Create a Java Project" window, uncheck the "Use default location" and browse to the location of the ptII tree checked out above.
      Below is the "Create a Java Project" window:

      Eclipse Create a Java Project Window

      Then hit "Next". There may be a delay while the wizart reads the directory.
    3. In the "Java Settings" window, check the "Allow output folders for source folders" checkbox.
      Below is the "Java Settings" window:

      Eclipse Create a Java Project Window

      Then hit "Finish".
    4. When asked if you want to shift to the Java perspective, click on Yes.
    5. If you there is a message about ClassDoc missing, then see ClassDoc Missing on the Kepler site. That page also has instructions for adding tools.jar.
  6. If you have read/write access go to Setup the Subversion Configuration to Sane Settings so that if you commit files, they will have the appropriate settings.
  7. The next step is to Set up the Eclipse ptII project .classpath for Ptolemy II.