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/Compatibility/Running the compatibility layer"

Line 1: Line 1:
 
[[Image:E4-compatibility-demo.PNG]]
 
[[Image:E4-compatibility-demo.PNG]]
  
<strong>NOTICE: This page is under construction !! don't beflieve anything you read below...</strong>
+
<strong>NOTICE: This page is under construction !! don't believe anything you read below...</strong>
 +
 
 +
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.
  
 
<b>Setup:</b>
 
<b>Setup:</b>
 +
 +
<b>1) Install the UI Runtime:</b>
  
 
Make sure you've installed the e4 UI runtime components as described [[E4/Install | here]].
 
Make sure you've installed the e4 UI runtime components as described [[E4/Install | here]].
  
<b>Optionally</b>, install the EMF SDK to be able to open .xmi files using the EMF editor: "Help" -> "Install New Software..." -> "Models and Model Development" -> "EMF SDK - Eclipse Modeling Framework SDK 2.4.1", then restart Eclipse.
+
<b>2) Install EMF:</b>
 +
 
 +
From eclipse go to "Help" -> "Install New Software..." -> "Models and Model Development" -> "EMF SDK - Eclipse Modeling Framework SDK 2.4.1", then restart Eclipse.
 +
 
 +
<b>3) Load the Demo
 +
 
 +
<CVS instructions go here>
  
 
Check out the e4 photo demo project from CVS as follows:
 
Check out the e4 photo demo project from CVS as follows:
Line 16: Line 28:
 
# Click Next and select the second option <i>Use an existing module</i>.
 
# Click Next and select the second option <i>Use an existing module</i>.
 
# Drill down as follows: <i>e4 > org.eclipse.e4.ui > examples</i> and select <i>org.eclipse.e4.demo.e4photo</i>. Click <b><i>Next</i></b>.
 
# Drill down as follows: <i>e4 > org.eclipse.e4.ui > examples</i> and select <i>org.eclipse.e4.demo.e4photo</i>. Click <b><i>Next</i></b>.
# <b>Important:</b> Do not click Finish just yet. Advance to the last wizard page using Next, then click on <i>Refresh Tags</i>. Select <i>v20090206-0840</i> and click <i>Finish</i>.
 
# This will check out one project into your workspace. Expand the project in the Package Explorer and open the <i>e4photo.product</i> file.
 
# Click on the link <i>Launch an Eclipse Application</i> at the bottom left of the <i>e4photo.product</i> file editor.
 
  
 
[[Image:LaunchPhoto.png]]
 
[[Image:LaunchPhoto.png]]
  
The e4 photo demo application will come up. Click on the <i>Create Album</i> toolbar button or select <i>File > Create Album</i>. The new album location on disk will be printed to your Eclipse console. Just drop a couple (not too many!) of JPEG photos in that directory, then play with the application. Make sure you find a photo with embedded GPS coordinates - when you select it in the <i>Exif</i> view, the <i>Location</i> view will show where the photo was taken using Google Maps. You can find an example photo with GPS coordinates on [https://bugs.eclipse.org/bugs/show_bug.cgi?id=263898 bug 263898].
+
The Compatibility demo will come up. Eventually it will be boring because it'll just look like eclipse 3.5. For now the demo will show the current state of the compatibility layer
 
+
Then, have a look at the Application.xmi file to see how the demo application is configured, and/or look at the source files for the individual pieces (views and command handlers).
+

Revision as of 15:37, 27 February 2009

E4-compatibility-demo.PNG

NOTICE: This page is under construction !! don't believe anything you read below...

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:

1) Install the UI Runtime:

Make sure you've installed the e4 UI runtime components as described here.

2) Install EMF:

From eclipse go to "Help" -> "Install New Software..." -> "Models and Model Development" -> "EMF SDK - Eclipse Modeling Framework SDK 2.4.1", then restart Eclipse.

3) Load the Demo

<CVS instructions go here>

Check out the e4 photo demo project from CVS as follows:

  1. Start Eclipse with an empty workspace directory.
  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.ui > examples and select org.eclipse.e4.demo.e4photo. Click <b>Next.

LaunchPhoto.png

The Compatibility demo will come up. Eventually it will be boring because it'll just look like eclipse 3.5. For now the demo will show the current state of the compatibility layer

Back to the top