Document Information

Last modified:
2008/05/14 09:51 by fjakobs

Developing with Eclipse

This is a collection of tips & tricks for development of qooxdoo applications in the Eclipse IDE. It might slightly be biased towards specific plugins, so feel free to choose an individual tool chain of your own. ;-)

Team Project Set

Subversion client

JavaScript editing

Aptana IDE

It is an open source project, that is very active. Here is the link: http://www.aptana.com/.

Pros:

  • Autocompletes code based in the contents of other JS files in the project and the current one.
  • Detects and warns about syntax errors
  • Syntax highlighting
  • Integrated debugging with Firefox
  • The outline understands qooxdoo syntax for defining classes.

Cons:

  • It doesn’t highlight the uses in the current file of the identifier under the cursor.

JSEclipse

It is developed by Adobe. Here is the link: http://labs.adobe.com/technologies/jseclipse/.

It has some nice features:

  • It highlights the uses in the current file of the identifier under the cursor. This feature is currently missing in Aptana.
  • Autocompletes code based in the contents of other JS files in the project and the current one.
  • Detects and warns about syntax error
  • Syntax highlighting

but:

  • The outline doesn’t understand qooxdoo syntax for defining classes.

Build process

You do not have to leave the Eclipse IDE in order to start qooxdoo’s build process for a particular application. Instead, the various invocations of the make command can be run from within Eclipse and the output is redirected to the integrated “console” view.

Setup

  • Open the Run / External Tools / External Tools... menu item
  • Select the item Program in the left tree view
  • Click the top-left button for a New launch configuration
  • In the form to the right type in make source as the script’s name
  • In the Main tab:
    • Location: /bin/sh
    • Working Directory: ${workspace_loc}
    • Arguments:
-l -c "dir='${resource_loc}'; if [ ! -d \"$dir\" ]; then dir='${container_loc}'; fi; cd \"$dir\"; while [ ! -f \"$PWD/Makefile\" ]; do oldpwd='$PWD'; cd ..; if [ $oldpwd == \"$PWD\" ]; then echo Error; exit -1; fi; done; if [ -f \"$PWD/Makefile\" ]; then make source; fi"
  • In the Common tab:
    • Check External Tools to Display in favorites menu
  • Close the dialog and save your input

If you want the other make commands like make build or make api to be available as well, just repeat the steps from above for each command. Please do not forget to replace the single occurrence of the the word source (at the end of the Arguments field) by build or api, respectively.

Usage

  • Select any resource in the Eclipse navigator view that belongs to the qooxdoo project you are working on
  • Select the make source command from the dropdown of the Run toolbar button
  • Watch the output of the build process in the integrated console view

Information

Last modified:
2008/05/14 09:51 by fjakobs

Account

Not logged in

 
 

Job Offers

To further improve qooxdoo we are seeking javascript developers. Read more...

Rich Ajax Platform (RAP)

RAP uses qooxdoo, Java and the Eclipse development model to build rich web applications. Read more...

qooxdoo Web Toolkit (QWT)

Similar to GWT this framework allows to create impressive qooxdoo applications just using Java. Read more...

Pustefix

Pustefix is a MVC-based web application framework using Java and XML/XSLT. Read more...

 
SourceForge.net Logo

Bad Behavior has blocked 0 potential spam attempts in the last 7 days.