Saturday, August 14, 2010

Eclipse - Helios

Download eclipse helios version from eclipse.org
the plugins, I have installed is

  1. Helios
  2. The Eclipse Project Updates
  3. The Eclipse Web Tools Platform (WTP) software repository
  4. AJDT
  5. Mylyn for Eclipse Helios
  6. Maven plugin

    To Customize Eclipse FONT and Look and Feel use this link outside link or BEST LINK
  1. I did as follows:
    Somewhere on your home directory, create a gtkrc file (like: ~/.gtkrc-eclipse) with following content:
    style "eclipse" {
    font_name = "Sans Condensed 8"
    }
    class "GtkWidget" style "eclipse"
    Finally, to launch eclipse, use following command line:

    GTK2_RC_FILES=/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:/home/rxxxxxx/.gtkrc-eclipse '/home/rxxxxxx/programs/eclipse-helios/eclipse'
  2. and launch through command line, make sure whole cmd in single line
  3. But to Customize the font size in Text editor (code region) and console etc
    it is saved under workspace, so try to stick with few same workspace always:
  4. goto windows - preferences - Appearences - colors and fonts - choose Basic text (this will apply for all)
  5. Banner Font = BOLD - 9
  6. Dialog Font = Regular - 9
  7. Header Font = Bold 10
  8. Text Editor Block Selection Font = REgular 9
  9. Text Font = Regular 9
  10. App Explorer/Outline View Font = Regular 9
  11. If you take a look in ECLIPSE_HOME/plugins/org.eclipse.platform_4.2.0.v201206081400/css, you will find the different CSS used. On Linux, if you use the GTK style (in the Preferences/Appearances), the e4_default_gtk.css is used.
    Edit this file and change the .MPartStack section :

    .MPartStack {
    font-size: 9;
    font-family: "Droid Sans";
    swt-simple: false;
    swt-mru-visible: false;
    }

    To Add Custom Builder (like my maven script to Eclipse)
  1. project->properties
  2. select builders
  3. uncheck "Maven Project Builder" let "Java Builder" be checked
  4. Create New Builder as follows:
  5. click new, and select "Program" from the list available
  6. key in "My Maven Builder" in Name
  7. inside "Main" tab for "Location" put ${project_loc}/my-mvn.sh
  8. make sure my-mvn.sh is available inside Project directory
  9. inside "Main" tab for "Working Directory" put ${project_loc}
  10. inside "Build Options" tab make sure these 3 options are checked
  11. After a Clean
  12. During Manual builds
  13. During auto Builds
  14. that's all, I see when I save a java file it compiles and pushes only edited java file
  15. But for me it runs the script twice, I have not found a way to fix this

    Maven war plugin for exploded deploy, in build/plugins pom.xml


  1. <plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-war-plugin</artifactid>
    <version>2.1.1</version>
    <configuration>
    <warname>ATT</warname>
    <webappdirectory>/home/rxxxxx/programs/jboss-4.2.3.GA/server/default/deploy/myapp.war</webappdirectory>
    </configuration>
    </plugin>