|
Re: Get workbench part instance. [message #482586 is a reply to message #482564] |
Thu, 27 August 2009 07:57 |
Eclipse User |
|
|
|
Originally posted by: msp.informatik.uni-kiel.de
Matthias Treitler wrote:
> Hi!
> How can I programmatically access a view part instance? I have only
> found this API:
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().getActivePart();
>
> Unfortunately I use this method in a Handler an get only the view part
> where the command has been executed. I need to get the instance of an
> other view part, specified by its id. (of course only if it has been
> already opened).
>
> Is this basically possible?
> Cheers,
> Matthias
IWorkbenchPage has a method
IViewPart findView(String viewId)
Miro
|
|
|
|
Powered by
FUDForum. Page generated in 0.03115 seconds