How to access the ModelExplorerView [message #662406] |
Wed, 30 March 2011 14:54 |
nicolas h Messages: 60 Registered: February 2011 Location: Grenoble, France |
Member |
|
|
Hi all,
I found on this forum a code to access the ModelExplorerPageBookView.
I would like to access the ModelExplorerView from it but I can't :
workbench.getDisplay().syncExec(new Runnable() {
public void run() {
try {
ModelExplorerPageBookView modelExplorerPageBookView = (ModelExplorerPageBookView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(EXPLORER_ID);
ModelExplorerView modelExplorerView = (ModelExplorerView)modelExplorerPageBookView.getActiveView();
} catch (PartInitException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
Quote: | Access restriction: The method getActiveView() from the type MultiViewPageBookView is not accessible due to restriction on required library /home/niko/eclipse/plugins/org.eclipse.papyrus.modelexplorer _0.7.2.v201101191114.jar
|
Is exist a way to access the ModelExplorerView please ?
Best regards
--
Nicolas
Eclipse Helios 3.6.2
Papyrus 0.7.2.v201101191114
|
|
|
Powered by
FUDForum. Page generated in 0.03345 seconds