Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "E4/Bespin"

< E4
Line 29: Line 29:
 
# Click the <i>Run</i> button.
 
# Click the <i>Run</i> button.
 
# Using Firefox 3, open [http://localhost http://localhost] or [http://localhost:8080 http://localhost:8080] depending on the port your server runs on.
 
# Using Firefox 3, open [http://localhost http://localhost] or [http://localhost:8080 http://localhost:8080] depending on the port your server runs on.
 +
 +
== Running Eclipse-specific Commands ==
 +
 +
# Open <i>dashboard.html</i> in a text editor (Ctrl+Shift+R, enter <i>dashboard.html</i>, click on the triangle next to <i>Open</i> and select <i>Text Editor</i>).
 +
# Insert the following line after the line that references <i>js/commandline/commands.js</i>:
 +
    <script type="text/javascript" src="/eclipse/commands/eclipsecommands.js"></script>

Revision as of 16:48, 17 February 2009

The e4 Bespin server is an experimental implementation of Bespin's client-server API.

Bespin-eclipse.png

Getting the Eclipse code

  1. Start with a recent Eclipse build and an empty workspace. We recommend Eclipse SDK 3.5 M4.
  2. Select File > Import... and select CVS > Projects from CVS, click Next.
  3. Copy the CVS repository location and paste it into the "Host" field to populate the wizard page: :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse
  4. You should see "Host: dev.eclipse.org, Repository path: /cvsroot/eclipse, User: anonymous, Connection type: pserver".
  5. Click Next and select the second option Use an existing module.
  6. Drill down as follows: e4 > org.eclipse.e4.server > bundles and select org.eclipse.e4.server.bespin. Click Finish.

Getting the Mozilla code

  1. Using a web browser, go to http://hg.mozilla.org/labs. Click on the zip or gz button for bespin on the right hand side, this should download an archive with the Bespin source code.
  2. In Eclipse, select File > Import..., pick General > Existing Projects into Workspace, click Next, select the archive file option, click Browse... and select the archive file you just downloaded. Click Open in the file chooser dialog, then check bespin to be imported, and click Finish.
  3. As a result, you should have a project called bespin in your workspace, containing folders like backend, docs, frontend, etc. and a few files. (Note: If you are adventurous, you could instead install Mercurial and check out the project directly from the Mozilla repository.)
  4. Right-click on the bespin project and select PDE Tools > Convert Projects to Plug-in Projects.... Confirm the wizard dialog that opens by clicking Finish. This will generate a plug-in manifest file META-INF/MANIFEST.MF.

Running the server

  1. Select Run > Run Configurations... and double-click on OSGi Framework to create a new OSGi launch configuration. Click Deselect All and then check:
    • bespin
    • org.eclipse.e4.server.bespin
    • org.eclipse.equinox.http.jetty
  2. Click on Add Required Bundles.
  3. Optionally, add -Dorg.eclipse.equinox.http.jetty.http.port=8080 as a VM argument on the Arguments tab to change the port on which the server will run.
  4. Click the Run button.
  5. Using Firefox 3, open http://localhost or http://localhost:8080 depending on the port your server runs on.

Running Eclipse-specific Commands

  1. Open dashboard.html in a text editor (Ctrl+Shift+R, enter dashboard.html, click on the triangle next to Open and select Text Editor).
  2. Insert the following line after the line that references js/commandline/commands.js:
   <script type="text/javascript" src="/eclipse/commands/eclipsecommands.js"></script>

Back to the top