Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Adding an item to Design View's context menu via extension point?
Adding an item to Design View's context menu via extension point? [message #225901] Mon, 05 January 2009 15:12 Go to next message
Blazej Kroll is currently offline Blazej KrollFriend
Messages: 10
Registered: July 2009
Junior Member
Hello!

I'd like to ask how can I contribute an action to a XML Schema design view
context menu via extension point.

There is an extension point called
org.eclipse.wst.xsd.core.xsdsource.source.
EditorContext for dealing with source view context menu, but is there any
such mechanism for design view?

Regards,
Blazej Kroll
Re: Adding an item to Design View's context menu via extension point? [message #225909 is a reply to message #225901] Mon, 05 January 2009 15:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Take a look at the following Wiki page, it should help:

http://wiki.eclipse.org/Table_of_WTP_IDs

Dave

Blazej Kroll wrote:
> Hello!
>
> I'd like to ask how can I contribute an action to a XML Schema design
> view context menu via extension point.
> There is an extension point called
> org.eclipse.wst.xsd.core.xsdsource.source. EditorContext for dealing
> with source view context menu, but is there any such mechanism for
> design view?
>
> Regards,
> Blazej Kroll
>
Re: Adding an item to Design View's context menu via extension point? [message #225948 is a reply to message #225909] Mon, 05 January 2009 21:47 Go to previous messageGo to next message
Keith Chong is currently offline Keith ChongFriend
Messages: 64
Registered: July 2009
Member
David Carver wrote:

> Take a look at the following Wiki page, it should help:

> http://wiki.eclipse.org/Table_of_WTP_IDs

> Dave

> Blazej Kroll wrote:
>> Hello!
>>
>> I'd like to ask how can I contribute an action to a XML Schema design
>> view context menu via extension point.
>> There is an extension point called
>> org.eclipse.wst.xsd.core.xsdsource.source. EditorContext for dealing
>> with source view context menu, but is there any such mechanism for
>> design view?
>>
>> Regards,
>> Blazej Kroll
>>

We will move over to the new menu extensions as part of

https://bugs.eclipse.org/bugs/show_bug.cgi?id=258350

In the meantime, you can use the popupMenus extension point with
'additions' as your menubarPath.
Re: Adding an item to Design View's context menu via extension point? [message #226122 is a reply to message #225948] Wed, 07 January 2009 13:40 Go to previous messageGo to next message
Blazej Kroll is currently offline Blazej KrollFriend
Messages: 10
Registered: July 2009
Junior Member
Hello,

Thank you very much for the posts, I managed to create such a context menu
contribution in XML Schema design view page using:

org.eclipse.ui.menus
extension point and locationURI:
popup:org.eclipse.wst.xsd.ui.popup.graph?after=additions

However, I can not find a bug with a patch that introduced it. Can you
point me to one? For now, I checked and it works in 3.0.3, but I'd like to
see it working in WTP 2.0.x. (if it is possible of course).

Best regards,
Błażej Kroll
Re: Adding an item to Design View's context menu via extension point? [message #226282 is a reply to message #226122] Fri, 09 January 2009 06:19 Go to previous message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

The org.eclipse.ui.menus extension point was added in Eclipse 3.3, and
became more stable in eclipse 3.4. So it SHOULD work with WTP 2.0.x
but might not.

Dave

Blazej Kroll wrote:
> Hello,
>
> Thank you very much for the posts, I managed to create such a context
> menu contribution in XML Schema design view page using:
>
> org.eclipse.ui.menus extension point and locationURI:
> popup:org.eclipse.wst.xsd.ui.popup.graph?after=additions
>
> However, I can not find a bug with a patch that introduced it. Can you
> point me to one? For now, I checked and it works in 3.0.3, but I'd like
> to see it working in WTP 2.0.x. (if it is possible of course).
>
> Best regards,
> Błażej Kroll
>
>
Previous Topic:Format javascript source code before save
Next Topic:SSE editor content
Goto Forum:
  


Current Time: Tue Mar 19 07:41:19 GMT 2024

Powered by FUDForum. Page generated in 0.02634 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top