How to refresh the PropertySheetPage using the MultiPageEditorPart [message #148186] |
Thu, 19 August 2004 10:52 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: travkin.gmx.de
Hello,
I have problems with getting the PropertySheetPage and the actions in the
context menu refreshed, when I select another EditPart in one of the
nested graphical editors in my MultiPageEditorPart.
My situation: I have implemented a subclass of MultiPageEditorPart that
usually uses a MultiPageSelectionProvider and a MultiPageEditorSite. The
nested editors use their own EditDomains and PropertySheetPages. The
MultiPageEditorPart has another EditDomain (The reason is that the nested
editors calls EditDomain.setPalletteViewer() and thus should have their
own EditDomains) and a subclass of
org.eclipse.pde.internal.ui.editor.PDEMultiPagePropertySheet that is
responsible for showing the PropertySheetPage of the current nested editor
(or an empty PropertySheetPage if no editor is on the current page).
If the MultiPageEditorPart looses focus and then gets it again, the
PropertySheetPage is refreshed. But if I select different EditParts within
a nested editor, the PropertySheetPage does not change its contents.
In antother case, if I always change the SelectionProvider of the
MultiPageEditor to the one of the current editors SelectionProvider, then
the PropertySheetPage is refreshed each time after selecting another
EditPart. But before it works, the MultiPageEditorPart has to loose and
get the focus again (only once).
I found out, that in the last case the ScrollingGraphicalViewer is
responsible for the refresh of the PropertySheetPage, it calls
fireSelectionChanged().
You would help me a lot, if you gave me some hints, how to fix this
problem.
Bye
Dietrich Travkin
|
|
|
Re: How to refresh the PropertySheetPage using the MultiPageEditorPart [message #148203 is a reply to message #148186] |
Thu, 19 August 2004 13:42 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: none.us.ibm.com
"Dietrich Travkin" <travkin@gmx.de> wrote in message
news:cg20op$ihv$1@eclipse.org...
> Hello,
>
> I have problems with getting the PropertySheetPage and the actions in the
> context menu refreshed, when I select another EditPart in one of the
> nested graphical editors in my MultiPageEditorPart.
>
> My situation: I have implemented a subclass of MultiPageEditorPart that
> usually uses a MultiPageSelectionProvider and a MultiPageEditorSite. The
> nested editors use their own EditDomains and PropertySheetPages. The
> MultiPageEditorPart has another EditDomain (The reason is that the nested
> editors calls EditDomain.setPalletteViewer() and thus should have their
> own EditDomains) and a subclass of
> org.eclipse.pde.internal.ui.editor.PDEMultiPagePropertySheet that is
> responsible for showing the PropertySheetPage of the current nested editor
> (or an empty PropertySheetPage if no editor is on the current page).
>
> If the MultiPageEditorPart looses focus and then gets it again, the
> PropertySheetPage is refreshed. But if I select different EditParts within
> a nested editor, the PropertySheetPage does not change its contents.
>
> In antother case, if I always change the SelectionProvider of the
> MultiPageEditor to the one of the current editors SelectionProvider, then
> the PropertySheetPage is refreshed each time after selecting another
> EditPart. But before it works, the MultiPageEditorPart has to loose and
> get the focus again (only once).
>
> I found out, that in the last case the ScrollingGraphicalViewer is
> responsible for the refresh of the PropertySheetPage, it calls
> fireSelectionChanged().
It sounds like MPEP is not doing something correctly. selection change
should go from GraphicalViewer->workbench selection service-->propertysheet
page.
You should ask the PDE team "org.eclipse.platform" about their class you are
using.
>
> You would help me a lot, if you gave me some hints, how to fix this
> problem.
>
> Bye
> Dietrich Travkin
>
|
|
|
Re: How to refresh the PropertySheetPage using the MultiPageEditorPart [message #150278 is a reply to message #148203] |
Thu, 09 September 2004 12:33 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: travkin.gmx.de
Randy Hudson wrote:
> "Dietrich Travkin" <travkin@gmx.de> wrote in message
> news:cg20op$ihv$1@eclipse.org...
>
>>Hello,
>>
>>I have problems with getting the PropertySheetPage and the actions in the
>>context menu refreshed, when I select another EditPart in one of the
>>nested graphical editors in my MultiPageEditorPart.
>>
>>My situation: I have implemented a subclass of MultiPageEditorPart that
>>usually uses a MultiPageSelectionProvider and a MultiPageEditorSite. The
>>nested editors use their own EditDomains and PropertySheetPages. The
>>MultiPageEditorPart has another EditDomain (The reason is that the nested
>>editors calls EditDomain.setPalletteViewer() and thus should have their
>>own EditDomains) and a subclass of
>> org.eclipse.pde.internal.ui.editor.PDEMultiPagePropertySheet that is
>>responsible for showing the PropertySheetPage of the current nested editor
>>(or an empty PropertySheetPage if no editor is on the current page).
>>
>>If the MultiPageEditorPart looses focus and then gets it again, the
>>PropertySheetPage is refreshed. But if I select different EditParts within
>>a nested editor, the PropertySheetPage does not change its contents.
>>
>>In antother case, if I always change the SelectionProvider of the
>>MultiPageEditor to the one of the current editors SelectionProvider, then
>>the PropertySheetPage is refreshed each time after selecting another
>>EditPart. But before it works, the MultiPageEditorPart has to loose and
>>get the focus again (only once).
>>
>>I found out, that in the last case the ScrollingGraphicalViewer is
>>responsible for the refresh of the PropertySheetPage, it calls
>>fireSelectionChanged().
>
>
> It sounds like MPEP is not doing something correctly. selection change
> should go from GraphicalViewer->workbench selection service-->propertysheet
> page.
I'm not sure, if I understand what you mean.
In our case the ScrollingGraphicalViewer is calling
fireSelectionChanged(), but only if we substitute the
MultipageSelectionProvider by the SelectionProvider of the current
nested editor. The ScrollingGraphicalViewer does not call this method,
if I use the MultipageSelectionProvider. What can be the cause?
>
> You should ask the PDE team "org.eclipse.platform" about their class you are
> using.
I did that, but unfortunately nobody answered.
If I would not use the
org.eclipse.pde.internal.ui.editor.PDEMultiPagePropertySheet are there
some other implementations that I could use to implement my
MultiPageEditor correctly or do I have to implement it by my own?
How should one usually implement an editor that can contain multiple
pages (that can be closed and opened)?
Why is it impossible to use the MultiPageEditorPart and to use some
boolean value to enable the closing of single pages of the
MutliPageEditorPart?
Why is there no MultipageZoomManager in GEF?
>
>
>>You would help me a lot, if you gave me some hints, how to fix this
>>problem.
>>
You would still help me a lot. ;-) Thanks.
Dietrich Travkin
>>Bye
>>Dietrich Travkin
>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04492 seconds