Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Accessing the project from within a GEF editor
Accessing the project from within a GEF editor [message #185926] Thu, 30 June 2005 20:45 Go to next message
Matt is currently offline MattFriend
Messages: 40
Registered: July 2009
Member
Hi,

Every project has an important ColorRegistry, and I'd like to access the
active project from within my editor. Is there any series of methods that
can do this?

I'd thought of getting the Workspace with ResourcesPlugin.getWorkspace(),
but you need the name of the project. I also considered using the
IEditorInput, but I couldn't find anything.

Any thoughts?
Re: Accessing the project from within a GEF editor [message #185935 is a reply to message #185926] Thu, 30 June 2005 21:08 Go to previous message
Matt is currently offline MattFriend
Messages: 40
Registered: July 2009
Member
Never mind. To get the currently-opened project, you need to cast the
IEditorInput into IFileEditorInput and access getFile().getParent().
Previous Topic:Tabs in TextFlows
Next Topic:Icon selectable for connections
Goto Forum:
  


Current Time: Tue Apr 23 14:10:47 GMT 2024

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

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

Back to the top