Eclipse

Plugin Reviews, Development Tutorials, Opinions, Essays, Interesting stuff found from the web

Using Glassfish Eclipse Bundle for JavaDB, JPA and JSP

Have you ever wondered how quickly one could get from installing a J2EE server to running a JSP page that fetches data from DB using modern persistency technology like JPA? To find out we (me and Ivar) did a little test-drive using recently announced Glassfish Eclipse Bundle that contains Eclipse IDE with bundled Glassfish J2EE [...]

Also posted in Java, Technology, Tips | 8 Comments

Can you guess the output? junit and initialization

Can you guess the output without running the code? The relation to Eclipse is simply the fact that big part of eclipse.org is a great example of good test coverage built on top of jUnit. Plus, it was literally pulling my hair out in one of the eclipse-related testing-suites. I stepped into this a few [...]

Also posted in Java, Technology, Tips | 2 Comments

Java Quiz of The Day – same private field instance for two classes

What is the smallest change to main method that makes it sysout “true”? You are allowed to change ONLY the main method! Of course changing sysout line is out of question. You can leave your answer in comments and I’ll publish/approve them together with the solution. [java] public class InstanceDemo { public static void main(String[] [...]

Also posted in Java, Tips | 49 Comments

P2 fun: Failed to prepare partial IU

I got this while trying to install new version of subclipse on top of eclipse rcp edition of ganymede release. Running eclipse with -clean didn’t help. [code] !ENTRY org.eclipse.equinox.p2.engine 4 4 2008-11-18 13:17:31.218 !MESSAGE An error occurred during provisioning. !SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.eclipse 4 0 2008-11-18 13:17:31.218 !MESSAGE Failed to prepare partial IU: [R]org.tigris.subversion.clientadapter.javahl 1.5.4. [/code] [...]

2 Comments

Google mentor summit is on!

Greetings from Mountain View, Google HQ in California! Summit is on and sessions scheduled. There is a lot of fun going on and I’ll try to get some of it here, stay tuned! I’m here representing Eclipse Foundation as one of the organizations participating in Google Summer of Code. Eclipse had a lot of strong [...]

Leave a comment

Refreshing eclipse workspace with ant script

Did you knew that if you have ant build.xml in eclipse Ant view then you can refresh your eclipse workspace simply using: <eclipse.convertPath filesystempath=”${basedir}” property=”resource.basedir”/> <eclipse.refreshLocal resource=”${resource.basedir}” depth=”one”/> ? Very handy for build scripts to make sure eclipse resources are in sync after the build. Thanks to Roland for the tip!

Leave a comment

Getting TPTP installed in Ubuntu – first post from Ivar

One of the Codehoopers started to blog about Eclipse and programming, welcome aboard! As he doesn’t have much readers yet I guess it’s ok to point to his first post: Eclipse TPTP and Ubuntu” It’s about getting TPTP running. Especially under Linux. Don’t underestimate the complexity of this – it’s not that easy Nice post, [...]

1 Comment

Eclipse workspace fails to start after crash – quick fix

Here’s a quick HOWTO for resolving Eclipse startup workspace loading problems. If you have a better suggestion then please leave a comment! There can be a lot of other issues but here is one of the quite common ones – eclipse resources cache or state gets out of sync/corrupted. This can happen when your IDE [...]

35 Comments

Configuring Eclipse SVN (Subclipse) to use JavaHL(JNI)

Configuring JavaHL for Eclipse is not as straightforward as it could be so posting a quick HOWTO. Following applies mostly to Linux users. With Ubuntu the fool-proof steps are: Make sure libsvn-java, subversion and libsvn1 packages are installed Add following to the end of your eclipse.ini file: -Djava.library.path=/usr/lib/jni Restart eclipse and make sure JavaHL is [...]

Also posted in Technology, Tips | 2 Comments

Avoid useless Plugin Initialization and/or Class Loading

Here’s a tip for initializing your plugins or any other singleton-like repository only when needed. Consider a code like this: if (isConfigurable()) { Bundle bundleCopy = bundle; Preferences[] preferencesCopy = new Preferences[1]; preferencesCopy[0] = new org.eclipse.core.internal. preferences.legacy.PreferenceForwarder( this, bundleCopy.getSymbolicName()); return preferencesCopy; } return null; Do you see what’s wrong there? The problem is that if [...]

Also posted in Java, Tips | 3 Comments