Create and show my custom View [message #735587] |
Wed, 12 October 2011 09:49 |
Eclipse User |
|
|
|
Hi,
I have a question about programmatically create and display custom
View (DiagnosticView) with custom GUI elements.
1st I have an xml file where are defined by my own GUI elements (type,
location, size, etc.)
2nd programmatically creating multiple instances of the same View
(DiagnosticView) using:
IWorkbenchWindow window =
PlatformUI.getWorkbench().getActiveWorkbenchWindow();
DiagnosticView diagnosticView = (DiagnosticView)
window.getActivePage().showView(DiagnosticView.ID, secondaryID,
IWorkbenchPage.VIEW_ACTIVATE);
3rd after loading the xml elements and displays them in its own View
This works, but I do not always possible to create and show a View and
then to insert elements.
I would like to create a View (instance), load into him the elements and
to show View for some action. So I do not show the View already created,
but only for some action.
Is this possible? And if so, how?
Thanks.
Martin
|
|
|
Powered by
FUDForum. Page generated in 0.08026 seconds