Adding item to JSP popup Menu - what TargetId? [message #164132] |
Thu, 16 March 2006 20:57 |
Eclipse User |
|
|
|
Originally posted by: Ed.Batutis.sas.com
I'm trying to add a popup menu to the JSP editor (and the other sse
editors). Back in mid-October the targetID for viewerContributions for the
jsp editor was rumored to be
org.eclipse.jst.jsp.core.jspsource.source.EditorContext
Is that correct for wst 1.0.0 (it doesn't seem to work for me)?
Previously I was using
org.eclipse.wst.sse.ui.StructuredTextEditor.context
but that doesn't work in 1.0.0 either.
Will the targetID change in 1.5?
If you don't know the answer, but can tell me where to look for the answer
in the code I'd be grateful for that as well.
Thanks
=Ed
|
|
|
Re: Adding item to JSP popup Menu - what TargetId? [message #164146 is a reply to message #164132] |
Thu, 16 March 2006 23:00 |
Eclipse User |
|
|
|
Originally posted by: amywu.us.DELETETHIS.ibm.com
By WST 1.0, do you really mean WTP 1.0? WST would not have any JSP in
it. But yes,
targetID="org.eclipse.jst.jsp.core.jspsource.source.EditorContext "
should be working.
What does your definition look like? For example, the following worked
for me:
<extension point="org.eclipse.ui.popupMenus">
<viewerContribution
targetID="org.eclipse.jst.jsp.core.jspsource.source.EditorContext "
id="org.eclipse.jst.jsp.examples.tld.context.actions">
<action
label="Convert To Entities"
class=" org.eclipse.jst.jsp.examples.tld.ConvertToEntitiesActionDele gate "
menubarPath="additions"
id=" org.eclipse.jst.jsp.examples.tld.ConvertToEntitiesActionDele gate ">
</action>
</viewerContribution>
</extension>
Ed Batutis wrote:
> I'm trying to add a popup menu to the JSP editor (and the other sse
> editors). Back in mid-October the targetID for viewerContributions for the
> jsp editor was rumored to be
>
> org.eclipse.jst.jsp.core.jspsource.source.EditorContext
>
> Is that correct for wst 1.0.0 (it doesn't seem to work for me)?
>
> Previously I was using
>
> org.eclipse.wst.sse.ui.StructuredTextEditor.context
>
> but that doesn't work in 1.0.0 either.
>
> Will the targetID change in 1.5?
>
> If you don't know the answer, but can tell me where to look for the answer
> in the code I'd be grateful for that as well.
>
> Thanks
>
> =Ed
>
>
>
|
|
|
Re: Adding item to JSP popup Menu - what TargetId? [message #164234 is a reply to message #164146] |
Fri, 17 March 2006 15:59 |
Eclipse User |
|
|
|
Originally posted by: Ed.Batutis.sas.com
> What does your definition look like?
....
Thanks, your example made me look at my menu path and I realized I simply
got it wrong. The targetID was OK.
A related rant: I have a generic text-processing plugin that works in any
text-oriented editor. Every time someone adds a new such editor or changes
the target IDs I need to chase down this info in random locations and then
update my plugin.xml. This isn't much fun. I'm sure any general solution to
this problem would be complicated, but I would be happy to see one!
Thanks for your help!
=Ed
|
|
|
Powered by
FUDForum. Page generated in 0.04316 seconds