JTraining Blog

A short description about your blog
Tags >> Eclipse
Casyi
Casyi

Rich Ajax Platform is an open-source software project for developers to build rich, AJAX-enabled Web applications using the Eclipse development model, plug-ins and a Java-only API.

Now, 1.4 M1 is available which include a couple of new features. Some of the new features include faster, more flexible implementation of the SWT Tree widget and there is Servlet 3.0 support making deploying RAP on application servers like Tomcat 7 or Glassfish 3 possible. To read about all the new features, go to the release notes.

To download, click on this link: Eclipse RAP.


Tagged in: Rich Ajax Platform , Release , RAP , Java , Eclipse , download , 1.4 M1
rpnman
rpnman

I've always had a pet peeve that introductory Java books teach developers the bad habit of using the static keyword and executing business logic code in the main method.  I believe this is done in part out of a misguided intention of avoiding confusion, but also out of laziness.

 I've seen lots of bugs and unmaintainable architectural choices (some subtle, some not)  introduced by overuse of static references and methods, and find myself wondering how much of this is attributable to the failure of Java teachers to make the distinction between class and object clearer from the outset. 

 I'm very pleased to see BlueJ (which I first learned of here on JTraining) as an effort to remedy this general failure in Java and OO programming training. 


Tagged in: Tutorial , tools , Testing , Teaching , Student , Netbeans , JTraining , Java SE , IDE , Eclipse
evdh
evdh

Eclipse 3.5 (Galileo) was released just over a month ago. Time to see how it is received. A number of people have written down their experiences so far.  Check the article by Zviki Cohen about a number of cool new features that are available. For instance:

  • The Eclipse platform
    • Mac Cocoa Support
    • Plugin Installation
    • Open Resource: "Open With" Options
    • Better Toolbar & Menu Customization
    • Block Selection
  • Java Development Tools
    • Debug View as Breadcrumbs
    • toString() Generator
    • Outline in Compare Editor
  • Plug-in Development Environment
  • Targets Management
  • Plug-in Spy for Menu Items
  • The P2 Publisher

For a complete overview of all the features go the the  Eclipse Galileo homepage.  

For another perspective and an overview of some of the (new) projects in Galileo check out the post by Peter Hendriks about his experiences. He talks about the following projects:

  • Jetty/Eclipselink/Swordfish/Riena
  • Swordfish
  • Memory Analyzer/TPTP
  • Process Framework
  • Eclipse Web tools
  • Mylyn

Tagged in: Eclipse
evdh
evdh

Eclipse Galileo 3.5 has been out for about 2 weeks. This is the annual release of Eclipse projects; this year it includes 33 projects. It can be downloaded here.

So, time to install some plugins! Zviki Cohen, founder of nWire Software has gone through the process and discusses the issues, pitfalls and tips of the completely refactored plugin installation process. 

While the process itself is simpler in the newest release, there are still some issues you should be aware of. A lot goes on in the background and there are a number of performance tips. It is an interesting article and gives a good overview of the way plugins are now handled in Galileo. Read more in his article.


Tagged in: Plugin , Eclipse
evdh
evdh

Join Frank Ableson on his quest to find out whether in fact one can develop iPhone applications in Eclipse and the Java programming language. After all, who wants to learn a new language if they can get the job done with an old and trusted friend, namely Java. 

A definitive answer (either yes or no) would come in handy, however, like so many things in life, the answer is a bit of a shade of gray. The answer is more no, than yes at present, but the topic is worth exploring and perhaps some folks will be inspired enough to lend a hand and take this open source iPhone thing from a “sort-of” to a “yes”.


Tagged in: iPhone , Eclipse
evdh
evdh

Dave Syer tried out both the Eclipse performance monitoring tool and Yourkit to track down a memory leak.  The requirement is that the tool should work well in STS (SpringSource Tool Suite, which is based on Eclipse). Yourkit came out well on top.

Some people have mentioned using Eclipse Memory Analysis Toolkit rather than TPTP, it would be interesting to see a comparison from people who have used both.


Tagged in: Eclipse , Debugging
svanhugten
svanhugten

Laatst kreeg ik weer eens de saaie taak om Javadoc te schrijven voor onze code. Een beetje vertwijfeld keek ik naar de tientallen, zo niet honderden classes, die stuk voor stuk dezelfde taak hadden en eigenlijk dus, op wat minieme wijzigingen na, dezelfde Javadoc hadden. Ook stukken zoals constructors en constanten documenteren is weinig inspirerend. Snel vluchte ik naar google om toch maar eens te checken of er een plugin was voor Javadoc te genereren in Eclipse. Eclipse heeft tenslotte voor alles een plugin ;) De woorden ‘eclipse javadoc plugin' brachten mij bij de 2e hit verlossing: JAutodoc.

JAutodoc is een plugin die Javadoc kan genereren voor een class, package en zelfs een heel project tegelijk. JAutodoc levert standaard een aantal templates mee die in principe voor elke field/methode of class een Javadoc verzint, maar het interessante is dat je deze templates kunt aanpassen of toevoegen om er wel nuttige Javadoc neer te zetten. Ook is de plugin volledig instelbaar om bestaande Javadoc te overschrijven, te complementeren of gewoon met rust te laten. Andere filters zoals het negereren van private elementen is ook mogelijk.

Er zijn twee categorieën templates: shortcuts en echte templates.

Shortcuts kijken naar het eerste woord van de methode naam en zetten dan een stukje tekst aan de hand van deze shortcut in de Javadoc. Standaard zitten er bv. de get/set shortcuts in, die vervangen worden door Gets the <naam> en Sets the <naam>.

Templates zijn weer onderverdeeld in vijf categorieen: Types, Fields, Methods, Parameters en Exceptions. Bij elk van deze categorieen kun je extra templates toevoegen om nuttige javadoc te genereren. De plugin identificateert welk template hij moet gebruiken aan de hand van een reguliere expressie. Ook kan simpele logica worden gebruikt om nog specifiekere Javadoc te maken. Hieronder een voorbeeld:

Er is standaard een constructor template:

(S+)((.*)) [Was standaard (S+)()]

Hier zet ik de volgende Javadoc boven:

/**
* Default constructor.
*/

Dit heeft als probleem dat er natuurlijk ook andere constructors kunnen zijn die helemaal niet Default zijn, maar toch ‘Default constructor' als Javadoc krijgen. Hiervoor kun je dus simpele logica toepassen, waarvoor bovendien code-completion beschikbaar is.

/**
#if(${e.g(2).length()} == 0)
* Default constructor.
#else
* Overwritten constructor.
#end
*/

Waarbij e staat voor de matchende string en g(2) voor de tweede group,oftwel (.*).

Met de kracht van reguliere expressies kun je dus precieze match waar de javadoc thuis hoort. Ook kun je weer subtemplates maken om zo bv. voor een bepaalde class de bijbehorende, specifieke methodes te documenteren zonder dat je deze opnieuw hoeft te identificeren met een expressie.

De plugin plus een goede handleiding inclusief screenshots is te vinden op http://jautodoc.sourceforge.net/. (De update site voor Eclipse gaf bij mij kuren, maar het ouderwetse zipje in je eclipse directory unzippen doet wonderen)


Tagged in: tools , Plugin , Eclipse

Tags:

1.4 M1 2.1.1 6.10 2010 6.9.1 97 things Access Program advanced Agile Ajax Ajax4JSF Algorithms Applet applications Atlanta Atmosphere Audit available BDD beginner Behaviour beta blind BPM Build bus C# Cache Caching Certification Cloud Cloud computing code code to coast collection Computing Continuous Integration Database Databinding DC Debugging Develop developer development dienst download Driven Early Eclipse Editor EJB Enterprise event Events ExternalNews ExtJS Extreme Programming Facelets features Flex Flight recorder Framework Frameworks free GlassFish Grid Groovy Hat HD Hello World Hibernate HowTo ICT IDE IDEA installation Integration IntelliJ introduction iPhone Java Java EE Java EE 6 java road trip Java SE Java SE 6 JavaFX JavaFX Composer javascript JavaZone jaxws JBehave JBoss JDK 7 JetBrains JNI JPA jQuery JRebel JRebel 3.0 JRockit JRockit Mission Control JSF JSON JTraining jtraining.com JVM klant know lady Leak library license Lift Loom Lucene M1 Mark Maven Memory Milestone 1 milestones mkb music Netbeans NTNU oJava OOP Open Open Source Oracle ORM oslo patch 7 Performance PHP Plugin prizes programmer programming project project management Puzzles QA RAP Red Reflection Reinhold related Release Reuse Rich Ajax Platform RichFaces Road SaaS sample Scala Scaling Script Scrum Seam Server should soap software Software as a Service Source Spring Spring Web Flow SQL String Student Sun sweepstakes Swing Teaching Testing tools Tour Training Transaction Tutorial Update 21 validation video web Web applications web service Web Services Weblogic wiki XP

Sponsers