[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] How to get a pop up doalogue to interact with selected project

I'm trying to create a plugin that integrates into the menu you get when you right click a project in the Resource Navigator. The plug in is intended to open the .cdt project file of the project and modify it. Therefore I need to be able to read the project properties, but I can't seem to get it to work. From what I've gathered I need to access the IWorkspaceRoot, from which these properties should be readable. From one article here I got the suggestion to use

IWorkspaceRoot myWorkspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
IProject myWebProject = myWorkspaceRoot.getProject("ttt");

"ttt" is the name of the project which has been gotten from the name of the selection.
However, this generates this error when running it "Could not create action delegate for id: ProjectPathExpander.addMultiple
Reason:
Internal plug-in action delegate error on creation."


So, two questions:
-Where in my plugin should this go to actually work? I've tried it in the run() method and in the setActivePart() methods with the same results.
-If this doesn't work, what other methods are there to accessing this data?


I'm running Eclipse 3.0.2 on Solaris.