Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Jul 23 14:09:14 EDT 2025

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

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

Back to the top