Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Multi editor text actions problem
Multi editor text actions problem [message #467576] Mon, 07 May 2007 23:38 Go to next message
Eclipse UserFriend
Originally posted by: gunislj.yahoo.com

We have a problem with text operation actions.
We have a multi page editor - which contains two editors:

1. Pure text editor (extends org.eclipse.ui.editors.text.TextEditor)
2. Custom table editor (implements IEditorPart)

Multipage editor is configured with
org.eclipse.ui.texteditor.BasicTextEditorActionContributor in order to
be able to handle text operations (copy, paste and etc). Text editor
handles all text operations without any problems. Once we switch the
view to the second (table) editor what ever text operation we execute
that operation is being handled by first (text) editor instead of by
table editor. It seems that something is missing in the table editor or
we are not doing something during the switch of pages withing multipage
editor.

Can you please help us?

Thanks,
Re: Multi editor text actions problem [message #467578 is a reply to message #467576] Tue, 08 May 2007 07:01 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Zola wrote:

>We have a problem with text operation actions.
>We have a multi page editor - which contains two editors:
>
>1. Pure text editor (extends org.eclipse.ui.editors.text.TextEditor)
>2. Custom table editor (implements IEditorPart)
>
>Multipage editor is configured with
>org.eclipse.ui.texteditor.BasicTextEditorActionContributor in order to
>be able to handle text operations (copy, paste and etc). Text editor
>handles all text operations without any problems. Once we switch the
>view to the second (table) editor what ever text operation we execute
>that operation is being handled by first (text) editor instead of by
>table editor. It seems that something is missing in the table editor or
>we are not doing something during the switch of pages withing multipage
>editor.
>
>Can you please help us?
>
>
You need to write your own MultiPageEditorActionBarContributor and do
the multi-plexing on your own, as it is done for example in
org.eclipse.pde.internal.ui.editor.PDEFormTextEditorContribu tor.

Dani

>Thanks,
>
>
>
>
Previous Topic:Adapter Factories
Next Topic:How to display a popup menu while right clicking a tree object
Goto Forum:
  


Current Time: Fri Apr 26 16:11:14 GMT 2024

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

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

Back to the top