Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Saturday, July 14, 2012

Eclipse code template - Qooxdoo development

There is no proper WYSWYG editor for qooxdoo development. You need to code the classes as you code in core java. To improve the productivity, you can setup few code templates in your IDE such as Eclipse.

For example: create a code template for the qxclass

Click on Windows > Preferences in Eclipse IDE.
In the preferences dialog as mentioned below, go to  JavaScript > Editor > Templates
Note: 
If you are project is JavaScript project, go to JavaScript > Editor > Templates.
If you are project is Java project, go to Java > Editor > Templates.



Add a new template by clicking on "New..." button. Add the template for the qx class as mentioned below.
Give a name for it and type the template content. You can use certain variables such as $cursor to place the cursor at a specific location when you use this template. There are many more variables available in Eclipse IDE which you can use.
Now, let's see how to use this template.

In the Eclipse IDE, After creating the file say "appname.ui.MyClass.js", open athat empty file and type the template name (say "qxclass" - the one example mentioned above). and press "Ctrl + Spacebar". The template code will be inserted and the cursor will be located at the place where you have mentioned ${cursor} in the template code.

Happy Coding :)

Sunday, August 31, 2008

Eclipse Plugin Installation with Callisto Discovery Site

Eclipse is pretty good nowadays in managing the plugins. You can easily install a plugin with all dependencies with the help of Callisto Discovery Site.

Click on the menu Help > Software Updates>Find and Install

>select "Search for new features to install" option
>Click on "New Remote Site" and enter Name and URL of the updatesite

example:

Name: AndroMDA Update Site

URL: http://andromda.org/updatesite

Then, select the site that you just added and don't forget to select "Calisto Discovery Site".

I hear you asking why?... Let me answer you.

The "Callisto Discovery Site" discovers all the dependencies required for the plugin that you are installing (example: AndroMDA IDE) and presents you for the download. on the presented list, you can select all the required packages and install once for all.

I remember the day when I read the pre-requisites of the plugin and download each and every dependencies such as GEF runtime, etc by visiting somany sites and then download the plugin that I require.

"Automatically Select Mirrors" helps you to avoid one more step, the mirror selection :)

Eclipse Tip: Cleaning up Package Explorer view

One day I and my colleague, Mahesh, was trying to avoid the unwanted contents displayed in the Package Explorer view of Eclipse.

Our project contains lot of library jars, which used to occupy whole area of the package explorer. The *.jar files are displayed in the view and a lot of time is spent in scrolling up and down trying to get to the relevant source files. With this handy tip, the *.jars files are hidden in the Package Explorer view and do not get in the way.

1. Open Eclipse "Package Explorer" view
2. Click the inverted triangle in the top right corner of the view window
3. Select "filters..."
4. Choose the elements that you want displayed/hidden in the view. I found hiding the project/external library jars from the display to be useful
5. Click "Apply" button for a cleaner Package Explorer view

Note : This works only in java perspective

Sunday, September 30, 2007

Eclipse Plugin - Quantun DB

If you are looking for a opensource SQL plugin for Eclipse,
you can go for "Quantum DB".
I have just installed it, It is good.

This plugin requires another plugin as a dependency.
You can download that from GEF website

Install GEF plugin and Quantun DB plugin, you are ready to use the SQL/Quantum DB Perspective from Eclipse environment.