|
Re: OutlineView refresh [message #161588 is a reply to message #161558] |
Wed, 15 December 2004 15:17 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
The OutlineView is part of the workbench. You should ask this question on
the platform newsgroup so that hopefully it gets addressed for 3.1 release.
"Fabian Wolf" <Fabian.Wolf@informatik.uni-ulm.de> wrote in message
news:cpp976$5dv$1@www.eclipse.org...
> Hi everybody,
>
> I know this question came up a couple times, but I think it was never
really
> answered:
>
> I'm having a couple of GraphicalViewers inside a MultiPageEditorPart.
> The MultiPageEditor "forwards" the getAdapter calls to the currently
active
> editor.
> The problem is, that getAdapter on the MultiPageEditor is only called once
> on initialization.
> When switching between the tabs in the MultiPageEditor I need the Ouline
to
> be refreshed to show the currently active editor.
>
> What I tried was extending pageChange(int newPageIndex)
> to notify my "OutlineViewCreator" that there was a page change....
> Another idea was to use selectionChange(IWorkbenchPart part, ISelection
> selection) inside the GraphicalViewer (which extends ISelectionListener)
to
> notify me whenever there is a selection change that happens on page
> change...
>
> And how would I access the currently used (in my case)
> ScalableFreeformRootEditPart from within my OutlineViewCreator.
> Currently I'm passing the RootEditPart in the constructor on
initialization.
>
> Are there any code snippets around to show this? I'm learning best by
> examples.
>
> Thanks to anyone who spent time reading this ;)
>
> Regards,
> Fabian
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03355 seconds