|Core Expressions Debugging [message #481623]
||Fri, 21 August 2009 23:25
| Stephen McCants
Registered: July 2009
I've started working with Core Expressions, PropertyTesters, SourceProviders, Handlers and Menus
recently. A lot of that work involves connecting the correct extension points in the correct manner
to get the desired results. I just got my Copy/Paste/Cut handlers working correctly for a specific
(complex) part of my editor, so in some sense I'm asking this question too late.
I spent a lot of time on the learning curve of what these different pieces are and how they
interact. However, I found one aspect of learning and implementing this particularly frustrating,
so I'm hoping someone can give me some pointers on how to handle this better in the future. It is
very easy to make small errors in the plugin.xml (even with the help of the Extensions tab) or
simply not know how things work and connect things incorrectly. I found it very frustrating,
because I could find no good way to see what was happening and where things were going off track.
Here is what I tried:
- Setting break points in my code. Didn't help when my code wasn't being called (because of XML errors)
- Turning on tracing. Didn't provide any insight (maybe I picked the wrong tracing options).
- Reading the Error Log. Didn't help because there wasn't anything logged there.
Is there a really good way to find these XML problems (short of staring at the code for hours on
end and reading newsgroups/tutorials/documentation in hopes of understanding my mistake)?
If you are sensing some frustration on my part, then you are sensing correctly. However, I don't
want to turn this into a rant but I'm hoping something positive will come of it. I spoke with one
of my co-workers today and he has had similar frustrations with this XML, so I know I'm not alone in
If there aren't any good ways to debug this stuff, then I'd like to suggest some brainstorming for
Eclipse 3.6 to alleviate the opaqueness of plugin.xml problems. Better tracing would seem like a
good option to me or even logging warnings in the ErrorLog when extensions don't make sense (e.g.
referencing IDs and classes that aren't there).
Thoughts? Advice? Suggestions?
Powered by FUDForum
. Page generated in 0.03168 seconds