For a new Sorting Thoughts feature that give the user access to context based action items in a context menu, I learned again that Eclipse and the Command Core Expressions are sometimes not very clear. When you leave the trivial way, you can waste many many time to find the right solution.
At first glance it seems to be very easy, I thought I must only register and implement a property tester and all is fine. But I was wrong. Without the help of Robert Wloch article “Property Testers with Command Core Expressions” I never thought that I have to implement a start up trigger (IStartup) and a ISelectionChangedListener too. So, if you want implement context based menu entries with property testers read the article first.
- Property Testers with Command Core Expressions by Robert Wloch
- Eclipse Wiki: Command Core Expressions