You Are Here:

Community: Wiki

This page was last modified on 9 July 2009, at 11:38.

Eclipse IDE Integration

From Forum Nokia Wiki

This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. The article is believed to be still valid for the original topic scope.

This article uses Eclipse Ganymede and it was originally published at Web Runtime Effort

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

Image: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).

Image: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.

Image:widset-check.PNG

Compile

Checks given script.

Image:widset-compile.PNG

Login

Login to widsets site.

Image: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.

Image:widset-run.PNG

RunW

Otherwise like run but opens a separate window for output.

Image: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)

Image:widset-sync.PNG



Citation

originally published at Web Runtime Effort

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia