Ever wanted to add something to that ‘Run As’ context menu? Yeah, I had to today, and it wasn’t pretty. Let me tell you, that
org.eclipse.core.expressions.propertyTesters ain’t no fun. It makes no sense and it just didn’t work out for me.
So instead I just ended up contributing my own content types with the
org.eclipse.core.runtime.contentTypes extension point and then hooking that into the
contextualLaunch element of the
org.eclipse.debug.ui.launchShortcuts extension point. Just take a look at the
plugin.xml files of the
org.eclipse.ant.ui plug-ins and I guarantee that you’ll be good to go.
I’d paste some of that XML stuff, but it seems that WordPress for some reasons doesn’t want to render tags properly regardless of whether I put them in a
tt, or a