Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How to access the ModelExplorerView
How to access the ModelExplorerView [message #662406] Wed, 30 March 2011 14:54
nicolas h is currently offline 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
Previous Topic:How to create stereotype
Next Topic:Message order in UML 2.0 sequence diagrams
Goto Forum:
  


Current Time: Thu Oct 30 13:11:56 GMT 2014

Powered by FUDForum. Page generated in 0.03078 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software