Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Showing a view programitically?
Showing a view programitically? [message #151545] Thu, 30 October 2003 11:22 Go to next message
Eclipse UserFriend
As a corollary question to my previous post "Programatic Control of View
Location?", I would also like to control when the view is visible...i.e.
events in my plugin dictate when I want to show the view NOW the user
selecting "Window->Show View->myViewName.

I note that the javadoc for createPartControl in IWorkBenchPart says:

"Clients should not call this method (the workbench calls this method when
it needs to, which may be never). "

However, IWorkbenchPart also describes the lifecycle of a workbench part.
Could I roll my own so to speak. This sounds like a rocky road. Has anyone
else tried this before I go done this path?

TIA,
Mike
Re: Showing a view programitically? [message #151646 is a reply to message #151545] Thu, 30 October 2003 14:31 Go to previous message
Eclipse UserFriend
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().showVie
w("myview.id");

"Mike McGowan" <mike.mcgowan@lawson.com> wrote in message
news:bnrdrg$kgh$1@eclipse.org...
> As a corollary question to my previous post "Programatic Control of View
> Location?", I would also like to control when the view is visible...i.e.
> events in my plugin dictate when I want to show the view NOW the user
> selecting "Window->Show View->myViewName.
>
> I note that the javadoc for createPartControl in IWorkBenchPart says:
>
> "Clients should not call this method (the workbench calls this method when
> it needs to, which may be never). "
>
> However, IWorkbenchPart also describes the lifecycle of a workbench part.
> Could I roll my own so to speak. This sounds like a rocky road. Has
anyone
> else tried this before I go done this path?
>
> TIA,
> Mike
>
>
>
Previous Topic:Programmatic Import of Project
Next Topic:CVS bug, weird
Goto Forum:
  


Current Time: Fri Apr 25 23:52:42 EDT 2025

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

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

Back to the top