Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EDT:SettingUpForMobile"

Line 1: Line 1:
The set-up instructions differ by development platform, as noted in the next sections.
+
The set-up instructions differ by development platform:
 +
 
 +
*[[#Windows_platforms|Windows platforms]]
 +
*[[#Linux_platforms|Linux platforms]]
  
 
For additional information on supported browsers, see [[EDT:Supported Platforms|EDT Supported Platforms]].  
 
For additional information on supported browsers, see [[EDT:Supported Platforms|EDT Supported Platforms]].  

Revision as of 11:46, 9 July 2012

The set-up instructions differ by development platform:

For additional information on supported browsers, see EDT Supported Platforms.


Windows platforms

To develop a mobile application with EGL on a Windows platform, do as follows:

  1. Ensure that you are using a 32-bit version of Eclipse, even if you are working on Windows 7.  You can fulfill this requirement by downloading an all-in-one EDT build from the following page: http://www.eclipse.org/edt/#download.

    Before accessing a nightly EDT build, download Eclipse 3.7.2 from here. For details on accessing the EDT nightly build, see the EDT download page just mentioned.

  2. Download Apple Safari, which includes a version of the WebKit layout engine:  http://www.apple.com/safari/download.

  3. Configure your PATH variable to include the Apple Application Support directory.  For example, on Windows 7, the directory might be as follows: 

             C:\Program Files (x86)\Safari\Apple Application Support

  4. When you have configured a 32-bit version of Eclipse to include EDT, set the following defaults:

    a.  Set the preference for EGL Rich UI render engine. Specifically, click Window > Preferences, then expand EGL and Rich UI and, at the bottom of the Appearance page tab that is labeled General, click WebKit.

    b. Set the preference for browser size. For example, at the Appearance page tab that is labeled Browser size, you might set the vertical size to 800 and the horizontal size to 400.

  5. Note that you can use widgets only of the following kinds:
    • EGL Dojo mobile widgets, which are in the dojo.mobile.widgets package.
    • EGL widgets that in the org.eclipse.edt.rui.widgets package.
You cannot use the general EGL Dojo widgets, which are in the dojo.widgets package.

   

Linux platforms

For Linux, the details vary by Eclipse version: 

  • If you're using Eclipse 3.6, ensure that webkit-gtk 1.2.x installed and then do as follows:

    a.  Access your Eclipse installation directory and add the following line to eclipse.ini:

    -Dorg.eclipse.swt.browser.UseWebKitGTK=true

    b.  After opening Eclipse, click Window > Preferences, expand EGL and Rich UI and, at the bottom of the Appearance page tab that is labeled General, click User configured.

  • If you're using Eclipse 3.7, ensure that either webkit-gtk 1.2.x or 1.4.x is installed and then do as follows:  click Window > Preferences, expand EGL and Rich UI and, at the bottom of the Appearance page tab that is labeled General, click Webkit

  • The EDT team has not tested more recent versions of Eclipse, which might support newer versions of webkit-gtk.

As is true on Windows platforms, you can use widgets only of the following kinds:

  • EGL Dojo mobile widgets, which are in the dojo.mobile.widgets package.
  • EGL widgets that in the org.eclipse.edt.rui.widgets package.

You cannot use the general EGL Dojo widgets, which are in the dojo.widgets package.   

Back to the top