I\'d like to write a plugin that does something with the currently edited file in Eclipse. But I\'m not sure how to properly get the file\'s full path.
This is what I do
IWorkspace ws = ResourcesPlugin.getWorkspace(); IProject project = ws.getRoot().getProject("*project_name*"); IPath location = new Path(editor.getTitleToolTip()); IFile file = project.getFile(location.lastSegment()); into file.getLocationURI() it's the absolute path