Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to add and remove view from fastview programmatically
How to add and remove view from fastview programmatically [message #436923] Tue, 20 September 2005 09:35 Go to next message
Eclipse UserFriend
Originally posted by: smatijasevic.gmail.com

Because I can't remove fastview programmatically I need to remove all views
from fastview menu. How can I do it?
Re: How to add and remove view from fastview programmatically [message #436927 is a reply to message #436923] Tue, 20 September 2005 10:18 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
You have to get into the internals to do this in either case. org.eclipse.ui.internal.ViewPane defines two methods; doMakeFast() and doRemoveFast() that do the work. The fast view bar is managed by a class called FastViewPane, which is inside of a FastViewBar. Not sure if that helps, but you'll need to get into the org.eclipse.ui.workbench plugin to play around with the internals anyway.
Re: How to add and remove view from fastview programmatically [message #437018 is a reply to message #436927] Tue, 20 September 2005 13:10 Go to previous message
Eclipse UserFriend
Originally posted by: smatijasevic.gmail.com

Thanks, I found a way to do it.

IWorkbenchPage page =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();

add view to fastview
((WorkbenchPage)page).addFastView(viewReference);

remove view from fastview
((WorkbenchPage)page).removeFastView(viewReference);

"Alex Blewitt" <alex_blewitt@yahoo.com> wrote in message
news:604069.1127211530696.JavaMail.root@cp1.javalobby.org...
> You have to get into the internals to do this in either case.
> org.eclipse.ui.internal.ViewPane defines two methods; doMakeFast() and
> doRemoveFast() that do the work. The fast view bar is managed by a class
> called FastViewPane, which is inside of a FastViewBar. Not sure if that
> helps, but you'll need to get into the org.eclipse.ui.workbench plugin to
> play around with the internals anyway.
Previous Topic:How to use the fileDialog from the menubar ?
Next Topic:Export problems (fragment related)
Goto Forum:
  


Current Time: Tue Dec 03 00:24:53 GMT 2024

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

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

Back to the top