Table of Contents
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
Programin the left tree view - Click the top-left button for a
New launch configuration - In the form to the right type in
make sourceas the script’s name - In the
Maintab:- 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
Commontab:- Check
External ToolstoDisplay in favorites menu
Closethe 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 sourcecommand from the dropdown of theRuntoolbar button - Watch the output of the build process in the integrated
consoleview
