Consider Java
Jay's Tech Blog
2006-04-27
获得一个文件真是麻烦
IPath path = new Path("org.jbpm.ui/gpd.xml");
IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
IFile file = workspaceRoot.getFile(path);
文件只能通过workspace范围内,那个org.jbpm.ui是project名,看着挺别扭的...
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment