Eclipse Feature Tip - Help About Dialog

March 5, 2008

Last week i was working on an Eclipse feature for the first time. I created my feature, added plug-ins into it, deployed it and it worked perfectly at the first time. All my plug-ins where there and available !!!!

Nice, then I just checked that my feature was present in the Help -> About-> Feature Details dialog … and here comes the bad news : my feature was not visible. After long investigations and discussions (available here, you need to login) on the eclipse platform news group and thanks to Ed Merks and Nick Boldt I have the solution to my problem.

To have a feature displayed in the Help -> About-> Feature Details you need to define a Branding plug-in for that feature in the feature.xml file. If no Branding plug-in is specified Eclipse will look for a Branding plug-in with the same ID than the feature’s ID.

In this plug-in there must be a about.ini, about.properties and about.mapping files. For more informations on these files and there content you can look the Eclipse Help here.


Unhandled event loop exception

February 21, 2008

Lot of people wonder what the famous Unhandled event loop exception is !!!???

This is no more than an uncaught Exception occurring with in the Eclipse workbench Main thread (or the UI thread, it’s the same).

When writing Eclipse plugins we often write code that will be executed within the Main thread. For example when contributing a new hello world button within the main Eclipse toolbar we must implement a given interface with a run() method.

In this method we write the code responsible to display to the user the “Hello world message”. If this code throws a new Exception without catching it then the Exception is forwarded to the caller. This caller is the Eclipse code but not our !!!!

In this Eclipse code the Exception is forwarded up to the Workbench.runEventLoop(IExceptionHandler, Display) method that catch it and log a new Unhandled event loop exception Error message. This message also contains our source Exception displayed as Reason :

When you see an Unhandled event loop exception , don’t worry and just look for the reason, it’s often a silly mistake :o)


Eclipse Profiling / Memory Analyzer Part 3

February 5, 2008

Hi,

This blog was started 3 weeks ago and only contains 9 posts today. Most of the traffic on the blog was generated by the two posts about “Profile Your Eclipse Plugins with SAP Memory Analyzer” here and here.

Eclipse’s plugins profiling seems to be a real question for a lot of us !!! This new tool help us to quickly identify memory leaks in our applications but what about time performances ??

How do you profile your plugins time performances ?? I would be intersted in any suggestions on this topi so pelase let me know.

Regards

Manu


Where is Eclipse Error Log ??

January 25, 2008

Are you looking for your Eclipse workspace Error Log ??

The error log can be accessed by the following ways

  1. For users with Eclipse 3.X and PDE installed :  Window -> Show View -> Other -> PDE Runtime -> Error Log
  2. For users with Eclipse 3.4 : Window -> Show View -> General -> Error Log
  3. For every users : Help -> About Eclipse -> Configuration Details -> View Error Log
  4. For every users : the location of the file is : “workspaceLoaction/.metadata/.log”

Hi all !!!

January 15, 2008

I am starting a blog dedicated to my experiences as Eclipse Plugin developer. I will blog here all my experiences and solutions to dedicated problems related of course to …. Eclipse !!!!