Code snippet:
URI resolvedFile = CommonPlugin.resolve(uri);
String fileString = resolvedFile.toFileString();
File file = new File(fileString);
Thats it. You have got the File now.
org.eclipse.emf.common.CommonPlugin - Include this in your import and manifest.
No comments:
Post a Comment