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 05:41 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
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 04:05 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
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 07:05 Go to previous message
sumit singh is currently offline sumit singh
Messages: 129
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: Fri Aug 01 20:39:04 EDT 2014

Powered by FUDForum. Page generated in 0.04457 seconds