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

E4/Compatibility/Running the compatibility layer

< E4‎ | Compatibility
Revision as of 14:48, 19 March 2009 by Unnamed Poltroon (Talk) (Running the Code)

A screenshot showing the current state of the Eclipse 3.x compatibility layer.

This demo shows the current state of the eclipse 3.x compatibility layer. The image above shows a workbench populated from an IPerspectiveFactory. The resulting stacks, views and Editor Area are creating by turning the API calls into changes to the modeled UI's structure.

The views and editors are created through the LegacyViewFactory, a specialized PartFactory that mimics the part creation protocol (creating the executable extension for the part, calling 'createPartControl'...) in eclipse 3.x.

Setup

These setup instructions are significantly different from the various e4 demos because the compatibility layer requires that we run against a checked out org.eclipse.ui.workbench project.

Install Eclipse

Start with a fresh install of the latest I-build. Unlike the demos, we have to sacrifice (possibly) some stability because the current fragment handling code requires that the workspace contains a checked out org.eclipse.ui.workbench project. If the base eclipse that you are running is not recent then it will fail to compile due to underlying project changes and you may end up 'pulling on a piece of thread' (i.e. checking out multiple other projects one after the other to satisfy the compilation requirements).

Install EMF

  1. "Help" -> "Install New Software..."
  2. Select the "http://download.eclipse.org/releases/galileo" update site
  3. Open "Models and Model Development"
  4. Check "EMF SDK - Eclipse Modeling Framework SDK"
  5. Hit "Next" as necessary (accepting the license agreement)
  6. Hit "Finish"
  7. Restart eclipse when prompted

Load the compatibility layer

  1. Open the CVS Repositories view
  2. Add a new connection to dev.eclipse.org with the repository path 'cvsroot/eclipse', if you are not a committer simply use 'anonymous' as the User name.
  3. Check out the 'e4\releng' project from HEAD

Now you should have a 'releng' project in your workspace. Drill down into 'org.eclipse.e4.ui.releng', select both 'e4.ui.psf' and 'e4.ui.compatibility.psf', right-click and select 'Import Project Set...'. This will check out the porjects that you need in order to run the compatibility layer.

Running the Code

Open the "Run Configurations..." dialog. Under "Eclipse Application" you should see a configuration called legacy.workbench.product, select it.

The default workspace location won't exist yet and until we get the CVS view working we have no way to populate an empty workspace. Change the Workspace data location to point to some existing (populated) workspace.

Run it.

You should see a Shell similar to the one depicted above. You should be able to use the Project Explorer to examine the workspace. If you right-click and select Open, the editor(s) for the selected resource(s) will be created.

Back to the top