Community
Participate
Working Groups
Two problems 1. It returns incomplete list of classes. See my comment in the code. /** * Returns the class search order starting with <code>extensibleClass</code>. * The search order is defined in this class' comment. */ private List computeCombinedOrder(Class inputClass) { List result = new ArrayList(4); Class clazz = inputClass; while (clazz != null) { // add the class result.add(clazz); // add all the interfaces it implements Class [] interfaces = clazz.getInterfaces(); for (int i=0; i<interfaces.length; i++) { /*********************************** >> Denis: HERE WE NEED TO GET ALL SUPERINTERFACES FOR INTERFACES AND SUPERINTERFACES FOR THEM etc. AND PLACE THEM INTO result. *************************************/ result.add(interfaces[i]); } // get the superclass clazz = clazz.getSuperclass(); } return result; } 2. private Class getCommonClass(List objects) works wrong. Suppose we have 3 objects. First and Second has common class IProjectNature, while all three First, Second and Third has IAdaptable in their inheritance chains. First this method searches for common for First and Second. It finds IProjectNature. Then it starts looking for common in IProjectNature and Third and finds nothing! Actually it is expected to find IAdaptable as the base for this three objects. Then, more complex cases when all objects has not one but several common classes in their inheritance chains. You see First and Second has both IProjectNature and IAdaptable in common, so Object Contributors for both interfaces should apply.
Is your plugin not working properly because of these methods? If so, could you provide an example. Or were you just looking at the code and thought these 2 methods were implemented wrong?
Does it really matters? Yes, my plugins works wrong. I've got a view in which I show resources from workspace (like eclipse Navigator view). Actually objects in tree is some objects inherited from IProject or adaptable to it (adaptable to IResource). And with multiple selection (n>=3) of such objects in my view no contributors can be seen in menu (no "Team" submenu for example).
Yes its matters - if it is breaking a plugin, then its a higher priority item for us to fix. Can you try your plugin using the latest 2.1 integration build. We fixed a problem in 2.1 that looks exactly like what you are experiencing. If it's still a problem, please attach a sample plugin and steps to reproduce the problem.
We are planning moving our product towards 2.1 in the nearest future, after 2.1 final release. We can wait with this bug I think.
After you move your plugin to 2.1, please reopen if the problem is still reproducable. Note, release 2.1 of Eclipse should be today (friday, march 28, 2003)
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.