How to get resources path from an Eclipse plugin
问题 I am developing an Eclipse plugin using Eclipse Plugin-in-project where it will add a menu item in the toolbar. My plugin project is depending on one file which is located in the same plugin project I want the path of that file. Below is the sample code I have used to get the path: Bundle bundle = Platform.getBundle("com.feat.eclipse.plugin"); URL fileURL = bundle.getEntry("webspy/lib/file.txt"); File file = null; String path=null; try { file = new File(FileLocator.resolve(fileURL).toURI());