Error reading manifest for gmf plugin [message #514717] |
Tue, 16 February 2010 12:56 |
Robert Wloch Messages: 109 Registered: July 2009 |
Senior Member |
|
|
Hi,
recently I ran into this bug. In tabbed properties views of GMF editors you can break the combobox cell editors by trying to select items with the keyboard using incremental search (typing the start pattern of an entry and select it with return key). That bug might not occur for small entry lists.
Anyways, I followed comment 11 to solve the issue with the following steps:
1) import the plugin org.eclipse.gmf.runtime.emf.ui.properties as source project into your workspace
2) open the class UndoableModelPropertySheetEntry
3) navigate to the method applyEditorValue()
4) replace the first if-block with:
if (editor == null || !editor.isActivated()) {
return;
}
This works well in test runtime workspaces when I load the patched plugin with my own plugins. Then I exported the patched plugin to a JAR with a slightly different version and added it to my development Eclipse's dropins folder. However, the plugin is not loaded. Instead I still see the old one. Then I realized, that a lot of GMF plugins have hard coded dependencies to the fixed version of the unpatched plugin. So I changed the version of the patched plugin to be exactly the same as the original one. Then I deleted the original JARs (source+bin) from the plugin folder and added the patched ones to the dropins folder (dropins/gmfpatch/eclipse/plugins/).
Since the version string has not changed at all, just the location, I expected this to work. However, still the patched plugin is not loaded and the ErrorLog has no entry about it what so ever. So I tried to look into the target platform under preferences. And there I could see instead of an entry in the list the following error messages:
Error reading manifest for D:\eclipse\plugins\org.eclipse.gmf.runtime.emf.ui.properties _1.2.0.v20090501-1750.jar
Error reading manifest for D:\eclipse\plugins\org.eclipse.gmf.runtime.emf.ui.properties .source_1.2.0.v20090501-1750.jar
Any body has an idea why Eclipse (Galileo Modeling SR1) is not looking and loading these plugins from the dropins folder?
The plugins are loaded however, if I put them into my Eclipse's plugins folder. This is extremely ugly, though, as the patched plugins have to use the same version number and are hardly distinguishable as a patch.
Might this be a bug somewhere in Eclipse's plugin loading mechanism?
Thanks for answers!
Rob
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04268 seconds