Skip to main content

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 hFriend
Messages: 60
Registered: February 2011
Location: Grenoble, France
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

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


Eclipse Helios 3.6.2
Papyrus 0.7.2.v201101191114
Previous Topic:How to create stereotype
Next Topic:How to generate Papyrus diagrams programmatically?
Goto Forum:

Current Time: Fri May 07 13:44:39 GMT 2021

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

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

Back to the top