Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » To obtain the instance of editor.
To obtain the instance of editor. [message #181051] Sat, 05 April 2008 14:32
sowmya Mising name is currently offline sowmya Mising nameFriend
Messages: 51
Registered: July 2009
Member
Hi.
Can i get the instance of the editor from the EditPart. When i try to
get the instance using the platformUI as below :

PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage().getActiveEditor( )

This line throws a nullPointerException when the editor is opened for the
first time as there is no active window for the first time.
Previous Topic:Default location for figures on creation
Next Topic:How to customize the visibility of edges?
Goto Forum:
  


Current Time: Fri Apr 26 22:54:58 GMT 2024

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

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

Back to the top