Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Toggle View in Eclipse(Toggle View in Eclipse)
Toggle View in Eclipse [message #631465] Thu, 07 October 2010 15:26
Anthony Ghonsalves is currently offline Anthony GhonsalvesFriend
Messages: 7
Registered: October 2010
Junior Member
what is the best practice to toggle a view in eclipse?

I am aware of these APIs which show and hide the view.
But the issue here is hideView completely closes the view and also disposes all the controls So whenever I call ShowView the whole UI gets re-created again.

PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().showView(viewID );
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().hideView(IViewPart);

Our requirement is just to "Toggle" the views visibility On/Off.
Previous Topic:Create a submenu with 2 menu items under Team in popupMenu
Next Topic:Deprecated getKeySequenceBindings
Goto Forum:
  


Current Time: Sat Nov 22 09:09:01 GMT 2014

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

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