I'm writing a plugin for eclipse (mars), and I'm trying to read the current file that's being edited. To do so, I need to use FileEditorInput class. I tried to add org.eclipse.ui.ide to the plugin's dependencies (As I saw it was advised in various forums), but it I can't find it. I tried importing a jar of org.eclipse.ui.ide to the project, didn't help.
Does anybody have a solution?
org.eclipse.ui.ide
is the correct dependency, it must be listed in your MANIFEST.MF
Open the editor for the MANIFEST.MF of your plugin. Go to the 'Dependencies' tab. On the 'Required Plug-ins' section click 'Add...' and you should be able to add 'org.eclipse.ui.ide'
You must use this method for plug-in dependencies. Do not try just adding to the Java Build Path or including plugin jars directly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.