e4 Photo Demo

e4 Contacts Demo

XWT Demos

SWT for Flex

SWT for Dojo

Get the SWT codebase and the demos

Create new Eclipse Workspace.

Create a workspace variable in Linked Resources preference page ('Preferences' -> 'Workspace' -> 'Linked Resources'). The variable should be called WORKSPACE and point to the root of your Eclipse workspace.

Connect to dev.eclipse.org:/cvsroot/eclipse and browse to the e4 project. Check out the org.eclipse.e4.swt.releng project (located under the releng folder) into your workspace.

Import the 'e4.swt.as.source.psf' project set into your workspace.

Import the 'e4.swt.as.demo.psf' project set into your workspace.

Configure the projects

Replace the contents of the the .project file in the org.eclipse.swt project with the contents of the .project_e4 file.

Copy .classpath_dojo to .classpath in both the org.eclipse.swt and org.eclipse.swt.e4.jcl projects. (Note that in order to see the classpath files, you have to either do this in the Navigator view or turn off the resources filter in the Packages Explorer by clicking on the drop down arrow menu in the top right hand corner of the package explorer, selecting Filters and unchecking *.resources).

Refresh the workspace to pick up the links.

Download the latest Google Web Toolkit (currently 1.5.3). For the purpose of these instructions, it is assumed that the user is running on Win32.

Download the Dojo Toolkit (use version 1.1.1).

Create a Java Project, call it "DojoResources".

Create 2 subfolders, named "public" and "gwt". In the "public" subfolder, create another folder named "dojo".

Extract the Dojo download and import the folders into the "dojo" folder. Your directory structure should look like this:

public
--dojo
-- dijit
-- dojo
-- dojoX
-- util

Extract the GWT download and import "gwt-dev-windows.jar", "gwt-ll.dll", "gwt-user.jar" and "swt-win32-3235.dll" into the "gwt" folder. Your directory structure should look like this:

Copy the dojoLib.gwt.xml file from org.eclipse.swt.e4\Eclipse SWT PI\dojo\build to the root of the DojoResources project.

To build the example, run the script org.eclipse.swt.e4.examples\dojo\build.xml. To run the script, right click and select Run As>Ant Build... Click on the JRE tab and select "Run in the same JRE as the workspace".

Scriptable Workbench

*** Due to project refactoring (moving from the incubator to a fully fledged project), these instructions are out of date and the demos are broken. We are working to fix this situation. Please stay tuned.

Open the "Workbench Model" view by using the Quick Access (CTRL+3) and entering "Workbench Model"

Note that this is experimental code, and many things in the inner Eclipse don't work. Try and play around by changing and running the Javascript code in the right pane of the Model View.

Eclipse Web Client

*** Due to project refactoring (moving from the incubator to a fully fledged project), these instructions are out of date and the demos are broken. We are working to fix this situation. Please stay tuned.