How to get secondary id of active view (multiple instances of same view)? [message #1708194] |
Mon, 14 September 2015 09:12  |
Eclipse User |
|
|
|
I am new to Eclipse RCP framework.
I have created multiple instances of the same view by appending secondary id in the primary id of the view using following code:
folderLayout1.addPlaceholder(DiagramWindow.ID + ":*");
IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
activePage.showView(DiagramWindow.ID, Integer.toString(DiagramList.viewIndex++),
IWorkbenchPage.VIEW_ACTIVATE);
Now when I try to get the id of the active view, then I get only the primary id of the view. I did not find any way to get the secondary id of the view. Due to this I always get the reference of the last opened view in the folderLayout.
Please provide some solution. I am stuck in this problem.
Thanks in advance.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04053 seconds