Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Project Path in the target directory(To find the paths of the opened projects in the Project Explorer)
Project Path in the target directory [message #658581] Wed, 09 March 2011 01:16 Go to next message
Niddhi  is currently offline Niddhi
Messages: 5
Registered: September 2010
Junior Member
Hi,

Please help me..i m stuck for almost a week now..

I am developing a Eclipse Plugin in Java which has 2 options:
1. To open a new project through code.
2. To do some processing on the project already opened.
First part is done.
For the second option, if the user directly chooses this option, then i must know the path of the opened project in the Project Explorer through java code.

Kindly let me know how to find the path of the projects opened in the Project Explorer Window of the running Workbench through the java code...

Any help/hint is appreciated..

Thanks,
Niddhi
Re: Project Path in the target directory [message #658671 is a reply to message #658581] Wed, 09 March 2011 07:45 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6850
Registered: July 2009
Location: Ottawa
Senior Member

On 03/09/2011 01:16 AM, Niddhi wrote:
> Kindly let me know how to find the path of the projects opened in the
> Project Explorer Window of the running Workbench through the java code...

See
http://www.eclipse.org/articles/Article-WorkbenchSelections/ article.html
for getting the selection.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Highlighting text
Next Topic:Main menu drop down event .
Goto Forum:
  


Current Time: Sun Apr 20 23:05:12 EDT 2014

Powered by FUDForum. Page generated in 0.02529 seconds