Skip to main content



      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 16:45 Go to next message
Eclipse UserFriend
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 17:08 Go to previous message
Eclipse UserFriend
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 Jul 08 18:01:30 EDT 2025

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

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

Back to the top