Tip: How to Easily Customize PMD Rules in Eclipse

The default PMD rules are little too strict for me (especially when starting on a legacy project) so I need to adjust them, usually by decreasing priority to warning. It’s however quite difficult to find the rule responsible for an error message unless you know how to do it. The answer is the PMD ViolationsContinue reading “Tip: How to Easily Customize PMD Rules in Eclipse”

Advertisement

Most interesting links of December

Recommended Readings The Netflix Chaos Monkey – how to test your preparedness for dealing with a system failure so that you won’t experience nasty wakeup when something really fails in Sunday 3 am? Release a wild, armed monkey into your datacenter. Watch carefuly what happens as it randoly kills your instances. This is exactly whatContinue reading “Most interesting links of December”

Comparison of Eclipse 3.6 and IntelliJ IDEA 10.5: Pros and Cons

After having worked with Eclipse for over 5 years I’ve came to use IntelliJ IDEA intensively on a J2EE project in three months and took this as an opportunity to compare the two. You can’t really compare 5 years and 3 months but I still believe that it is long enough to get a prettyContinue reading “Comparison of Eclipse 3.6 and IntelliJ IDEA 10.5: Pros and Cons”

Introduction to ObjectTeams/Java, a Role-Based Approach to Modularity With AOP

I’ve recently stumbled upon an interesting Eclipse project called ObjectTeams/Java (OT/J), which promises improved reusability and maintenance and support for evolvable architectures by creating well-encapsulated bundles of behavior – modules – that can be applied to existing classes (via AOP), when they are in the appropriate context of interaction (and not simply always, as isContinue reading “Introduction to ObjectTeams/Java, a Role-Based Approach to Modularity With AOP”

EMF: Reading a model from XML – how to correctly declare its namespace – variants

When you use the Eclipse Modeling Framework (EMF) to read a model instance from an XML file, such as a webservice call message payload, it’s essential for EMF to be able to match the root XML element with the model’s “ePackage” that should be used for (re)constructing the model instance from the XML and thisContinue reading “EMF: Reading a model from XML – how to correctly declare its namespace – variants”

More Eclipse & svn fun: Can’t share a project (only Team – Apply Patch)

With Subversive it may happen that it completely ignores some projects while it perfectly works for other ones. If a project seems to have no SVN information in Eclipse (thoug it actually contains all the .svn/ folders) and the Team context manu only contains Apply Patch… (i.e. especially not Share project…) then you have likelyContinue reading “More Eclipse & svn fun: Can’t share a project (only Team – Apply Patch)”

Tip: Enable a shortcut for Occurrences in File in Eclipse under Gnome (default C+S+u)

The useful Eclipse action Search – Occurrences in File – Identifier has by default the shortcut Control+Shift+U. But under Gnome the shortcut Control+Shift+U is used for Unicode character input, indicated by an underlined u when pressed. Assigning a different shortcut is easy but there are few “traps”: In Eclipse, go to Window – Preferences –Continue reading “Tip: Enable a shortcut for Occurrences in File in Eclipse under Gnome (default C+S+u)”

Most interesting links of August

I hope everybody is enjoying the holiday and not spending hours on tech blogs and sites. At least I do 🙂 and thus this month’s list is a short one: Working With Static Imports in Eclipse – how to make working with static imports (nearly) as easy as with the normal ones (especially useful forContinue reading “Most interesting links of August”

Eclipse Profile configuration: The launch requires at least one data collector

I just installed TPTP into my Eclipse 3.5 under Ubuntu 9.04 and tried to profile a class. The Profile Configuration opened with a red warning reading “the launch requires at least one data collector to be selected“. Clicking the configuration’s Monitor tab reveals a more detailed error (and nothing to select): IWATO435E An error occuredContinue reading “Eclipse Profile configuration: The launch requires at least one data collector”