Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » OutlineView refresh
OutlineView refresh [message #161558] Wed, 15 December 2004 12:03 Go to next message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
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
Re: OutlineView refresh [message #161588 is a reply to message #161558] Wed, 15 December 2004 15:17 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Extending FlowFigure
Next Topic:Initializing model classes during startup
Goto Forum:
  


Current Time: Fri Apr 19 21:33:41 GMT 2024

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

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

Back to the top