how to check the current workspace of Eclipse and the project on that workspace using java program?
how to check the 开发者_开发知识库current workspace of Eclipse and the project on that workspace using java program?
you can try this code to get the current workspace.
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IWorkspaceRoot root = workspace.getRoot();
IPath location = root.getLocation();
精彩评论