Adding a view into a perspective without opening the perspective. [message #331826] |
Wed, 24 September 2008 03:23  |
Eclipse User |
|
|
|
Hello,
I want to add a view into a perspective. The view has the 'allowMultiple'
flag set and is opened multiple time within different perspectives.
At the moment I open the view using a IWorkbenchPage received by calling
showPerspective().
IWorkbenchPage page =
PlatformUI.getWorkbench().showPerspective(processor.getId(),
PlatformUI.getWorkbench().getActiveWorkbenchWindow());
...
TaskView processorView = (TaskView)page.showView(TaskView.ID, secondaryId,
IWorkbenchPage.VIEW_CREATE);
This approach has the drawback that the perspective into which a view is
placed has to be shown. I would prefer adding a view 'silently' into a
perspective without having to show the perspective at the same time.
Is this possible?
Thanks,
Jan
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08374 seconds