Results 1 to 2 of 2
Thread: Accessing eclipse workspace
- 07-20-2009, 03:47 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 42
- Rep Power
- 0
Accessing eclipse workspace
I want to access the projects of my workspace using Iworkspace and Iprojects but I am unable to do so as workspace it returning no projects I am using this code:
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IProject[] projects = workspace.getRoot().getProjects();
but it is retuning 0 projects although , i am having projects in my workspace.
Can someone tell me where i am going wrong
Thanks in advance
Trax
- 08-04-2009, 10:37 PM #2
Member
- Join Date
- Aug 2009
- Location
- Heidelberg
- Posts
- 47
- Rep Power
- 0
Hm... I have the feeling that I answered that question already but I do not see my reply.
Anyhow: Your question is described here, please see the first example Eclipse JDT - Abstract Syntax Tree (AST) and the Java Model - Tutorial
Similar Threads
-
Accessing libraries in Eclipse
By JL4 in forum New To JavaReplies: 0Last Post: 12-26-2008, 03:11 PM -
Problems with accessing my workspace
By Manoeuvre in forum EclipseReplies: 0Last Post: 11-24-2008, 10:40 AM -
Using CVS in Eclipse for files outside the workspace
By babs in forum EclipseReplies: 0Last Post: 08-07-2008, 01:29 AM -
Opening a workspace twice
By javaplus in forum EclipseReplies: 0Last Post: 01-08-2008, 09:56 AM -
Smilehouse Workspace 1.8.3
By Jamie in forum Java SoftwareReplies: 0Last Post: 06-14-2007, 02:53 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks