×
Namespaces

Variants
Actions

Archived:Eclipse IDE Integration

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Article
Created: mfabiop (01 Sep 2008)
Last edited: hamishwillee (18 Jun 2012)

This article uses Eclipse Ganymede.

Contents

Configuring the default editor

We'll learn how to set up the Eclipe IDE to help us with some tasks: compile, build and test Widsets.

First of all, we have to configure the default editor of *.he files to be Java Editor, like showed in the following picture.

  • Go to (Window -> Preferences -> General -> Editors -> File Associations)
  • Add a new file type (*.he) and associate with the Java Editor

Widset-filetype-association.PNG

Configuring the external tools

Now, let's configure the Eclipse to check, compile, login and emulate widsets automatically

First, You will need to create an Eclipse String Substitution variable WIDSET_SDK that points to the location where you installed Widset SDK by going to (Window -> Preferences -> Run/Debug -> String Substitution).

Widset-string-substitution.PNG

You'll have to create an Eclipse run configuration to execute the devkit.bat file inside the Eclipse. Let's see how to configure the following tasks: check, login, compile, runw, run and sync.

You have to go to (Run -> External Tools -> External Tools Configurations) and configure each task with the values showed in the following pictures.


Check

Check the widget at current or referred directory.

Widset-check.PNG

Compile

Checks given script.

Widset-compile.PNG

Login

Login to widsets site.

Widset-login.PNG

Run

Run the emulator using the project location as the 'source' directory. This will compile *.he files at the 'source' directory when needed and replace corresponding widget scripts at dashboard.

Before run this task, you have to run Login task.

Widset-run.PNG

RunW

Otherwise like run but opens a separate window for output.

Widset-runw.PNG

Sync

Request dashboard synchronization, forces client to start sync (you should have emulator or mobile client started with Run or RunW task when calling this)

Widset-sync.PNG



Citation

Originally published here: [http://efforts.embedded.ufcg.edu.br/wrt/?p=17 (link broken)

This page was last modified on 18 June 2012, at 09:32.
56 page views in the last 30 days.