The link helped me greatly, thanks for that. I don't quite understand
what is supposed to happen from the code in the article are though - the
author sets the global action handler on the open action, which I assumed
would retarget the Open action in the context menu. I get confused when
the author then appends his custom open action to the "Open Group" of the
context menu - why would this need to be done if he is retargetting the
global Open action? I dont want to add a new action, I want to override
the functionality of the existing one.
I did implement it however, and saw that my open action did not get called
when the Open action was selected in the context menu. When I appended my
action to the "Open Group", my action appeared in the Context menu above
the global open action. Is this correct? Again, I thought my custom
action would just get called when the global action was selected, rather
than adding a new action.
I also am not understanding how to use <enablement> with my action
provider extension - I get as far as "instanceof IFile", but how do I tell
it only IFile's of a certain Project Nature?