Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Context menu for a MultipageEditorPart(adding a new page via context menu...)
Context menu for a MultipageEditorPart [message #511711] Tue, 02 February 2010 10:57 Go to next message
Patrick is currently offline Patrick
Messages: 48
Registered: July 2009
Member
Hello! Smile

I'm quite new to RCP - Development and I want to implement the functionality to create a new page for my editor from a button in context menu. I'm a bit clueless how to do this for an editor. On the net, i've only found examples using views.

The method to register a context menu needs a ISelectionProvider, which a view normaly implements, but an editor not.

Do i have to implement the ISelectionProvider for my editor content manually or is there some better way?

Thanks in advance! Smile

Patrick
Re: Context menu for a MultipageEditorPart [message #518383 is a reply to message #511711] Wed, 03 March 2010 13:00 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Patrick,

You want to know how to active a context menu in an editor?

--

Best Regards,
Wim Jongman
-- "640K ought to be enough for anybody." - Bill Gates, 1981
(Eclipse Old Skool Quote Service)
> Hello! :)
>
> I'm quite new to RCP - Development and I want to implement the
functionality to create a new page for my editor from a button in context
menu. I'm a bit clueless how to do this for an editor. On the net, i've only
found examples using views.
>
> The method to register a context menu needs a ISelectionProvider, which a
view normaly implements, but an editor not.
>
> Do i have to implement the ISelectionProvider for my editor content
manually or is there some better way?
>
> Thanks in advance! :)
>
> Patrick
Previous Topic:Popup menu not refreshed when no new selection
Next Topic:Workspace check
Goto Forum:
  


Current Time: Thu Aug 21 00:37:59 EDT 2014

Powered by FUDForum. Page generated in 0.01465 seconds