I want to create an IFile interface to open a file that defines an external project or workspace.
How to get IFile interface?
Regards, Simon
http://wiki.eclipse.org/FAQ_How_do_I_open_an_editor_on_a_file_outside_the_workspace%3F
You can create a related resource:
IPath location = new Path(name); IFile file = project.getFile(location.lastSegment()); file.createLink(location, IResource.NONE, null);
Or, if you can use the EFS interface (with Eclipse 3.3), you can use this instead of IFile.
Source: https://habr.com/ru/post/1704421/More articles:Do you use AOP to manage database transactions? - javaSpit Bit - bit-manipulationHow to get MP3 length from its URL? - javaRisks of hosting a public website directly on my network? - windows-xpWhat are the limitations (gotchas and) when using POI to create Excel workbooks? - java.NET эквивалент методов java.util.Arrays.toString(...) в Java - javaLINQ для разных множеств - c#How to pass a system property using Wrapper.exe - javaSubquery to return the last record for each parent id - sqlWebMethod response format - jsonAll Articles