Home » Eclipse Projects » Eclipse Platform » Questions about MultiPageEditor
Questions about MultiPageEditor [message #306196] |
Tue, 25 July 2006 07:16  |
Eclipse User |
|
|
|
Originally posted by: jiefei.ma.morganstanley.com
Hi, I have a number of questions about writing a MultiPageEditor.
At the moment I have 3 editors: a WTP XML Editor (extends
MultiPageEditor), a EMF generated domain editor (extends MultiPageEditor)
and a GMF generated diagram editor (extends DiagramEditor). each editor
has its own action bar contributor, command stacks & etc.
I'd like to put all of them inside a single MultiPageEditor as pages. and
I have the following questions:
1. How can I let the menu bar show the undo/redo commands correctly? For
example, when I choose the XML editor, it will show the undo/redo commands
of the XML editor; when I choose the EMF editor, it will show the commands
of the EMF editor.
2. What is the best way to "merge" all the individual action bar
contributors into a single MultiPageActionBarContributor?
3. This is a problem indeed: Now, I have already put the 3 editors inside
a multipage editor. However, the Properties View dosn't work properly -
it can only work with one editor. For example, when the MultiPageEditor
is opened, the XML editor is brought to front, and the Properties View can
"hook" to it and display information according the XML editor's selection.
However, when I choose the EMF editor or the GMF editor, the Properties
View doesn't work. In order to have the Properties View to "hook" to the
EMF editor or the GMF editor, I have to 1. activate the editor, 2. close
the Properties View and open it again. Can anyone help me to fix it?
Many thanks!
Jiefei
|
|
| | | |
Re: Questions about MultiPageEditor [message #314406 is a reply to message #306196] |
Wed, 11 April 2007 11:42   |
Eclipse User |
|
|
|
Hi,
I have similar case: each of sub-editors contribute global action
handlers(undo, redo....).
How can I "activate/deactivate" these handlers, when user switches pages
at multipage editor?
good luck,
Yury
Jiefei Ma пишет:
> Hi, I have a number of questions about writing a MultiPageEditor.
>
> At the moment I have 3 editors: a WTP XML Editor (extends
> MultiPageEditor), a EMF generated domain editor (extends
> MultiPageEditor) and a GMF generated diagram editor (extends
> DiagramEditor). each editor has its own action bar contributor, command
> stacks & etc.
> I'd like to put all of them inside a single MultiPageEditor as pages.
> and I have the following questions:
>
> 1. How can I let the menu bar show the undo/redo commands correctly? For
> example, when I choose the XML editor, it will show the undo/redo
> commands of the XML editor; when I choose the EMF editor, it will show
> the commands of the EMF editor.
>
> 2. What is the best way to "merge" all the individual action bar
> contributors into a single MultiPageActionBarContributor?
>
> 3. This is a problem indeed: Now, I have already put the 3 editors
> inside a multipage editor. However, the Properties View dosn't work
> properly - it can only work with one editor. For example, when the
> MultiPageEditor is opened, the XML editor is brought to front, and the
> Properties View can "hook" to it and display information according the
> XML editor's selection. However, when I choose the EMF editor or the GMF
> editor, the Properties View doesn't work. In order to have the
> Properties View to "hook" to the EMF editor or the GMF editor, I have to
> 1. activate the editor, 2. close the Properties View and open it
> again. Can anyone help me to fix it?
>
> Many thanks!
>
> Jiefei
>
>
|
|
|
Re: Questions about MultiPageEditor [message #314524 is a reply to message #314406] |
Mon, 16 April 2007 13:23  |
Eclipse User |
|
|
|
Yury Chernikov wrote:
> Hi,
>
> I have similar case: each of sub-editors contribute global action
> handlers(undo, redo....).
> How can I "activate/deactivate" these handlers, when user switches pages
> at multipage editor?
>
> good luck,
> Yury
>
If the sub editors were using their IActionBars, then they should be
activated/deactivated for you by the SubActionBars. ... check out how
MultiPageEditorPart does the page change
Later,
PW
|
|
|
Goto Forum:
Current Time: Sat May 03 03:27:31 EDT 2025
Powered by FUDForum. Page generated in 0.03204 seconds
|