Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » SourceViewer cut/copy/paste/selectAll integration with RCP application
SourceViewer cut/copy/paste/selectAll integration with RCP application [message #990191] Tue, 11 December 2012 10:41 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

i have an RCP application and i have registered CUT/COPY/PASTE/SELECT_ALL actions and they work fine.. but if i add a sourceviewer in any of my view then text actions are not connected with CUT/COPY/PASTE/SELECT_ALL action in menu. I can use cut,copy and paste works using short cut keys(i.e. ctrl+c)in source view but select all (ctrl + a) does not work. I want to connect all text actions with menu items.

Same is the case if i add any view already available in eclipse like any Console view. Cut, copy and paste works only with shortcut keys(not connected to menu) and select all does not work at all.

Any idea?

Cheers,
Re: SourceViewer cut/copy/paste/selectAll integration with RCP application [message #990382 is a reply to message #990191] Wed, 12 December 2012 09:05 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 11.12.2012 11:41, ModelGeek Mising name wrote:
> Hi,
>
> i have an RCP application and i have registered
> CUT/COPY/PASTE/SELECT_ALL actions and they work fine.. but if i add a
> sourceviewer in any of my view then text actions are not connected
> with CUT/COPY/PASTE/SELECT_ALL action in menu. I can use cut,copy and
> paste works using short cut keys(i.e. ctrl+c)in source view but select
> all (ctrl + a) does not work. I want to connect all text actions with
> menu items.
> Same is the case if i add any view already available in eclipse like
> any Console view. Cut, copy and paste works only with shortcut
> keys(not connected to menu) and select all does not work at all.
>
> Any idea?
You need to connect the actions with the menu items. Take a look at
org.eclipse.ui.texteditor.BasicTextEditorActionContributor to see how
the textual editors do it.

Dani
>
> Cheers,
Re: SourceViewer cut/copy/paste/selectAll integration with RCP application [message #990605 is a reply to message #990382] Thu, 13 December 2012 12:05 Go to previous message
Sumit Singh is currently offline Sumit SinghFriend
Messages: 141
Registered: October 2012
Location: Bangalore
Senior Member

For selecting all content org.eclipse.ui.edit.selectAll is responsible. If you want then you can look into org.eclipse.ui.views.markers.internal.SelectAllMarkersHandler which is handler for this command.
Previous Topic:Launching exported headless RCP jar
Next Topic:Convert multiple Eclipse Plugins into a single RCP Application
Goto Forum:
  


Current Time: Tue Apr 23 11:30:32 GMT 2024

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

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

Back to the top