Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 42111

Summary: [Contributions] visible/enabled: bug in SelectionEnabler.verifyClass()
Product: [Eclipse Project] Platform Reporter: Michael Yee <michaely>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P5 Keywords: helpwanted
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard: stalebug

Description Michael Yee CLA 2003-08-27 09:40:11 EDT
The implementation of org.eclipse.ui.internal.SelectionEnabler.verifyClass() 
does not recursively test against a _superinterface_ of an interface.

For example, if I have the following hierarchy:

package foo.bar
interface a
interface b extends a
class c implements b

And in my plugin.xml has the following extension:
   <extension
         ...
         point="org.eclipse.ui.actionSets">
      <actionSet
         ...>
         <action
         ...>
            <selection
               class="foo.bar.a">
            </selection>
         </action>
      </actionSet>
   </extension>

Then the action enablement fails if the selection is an instance of foo.bar.c. 

Or, in pseudocode:

c element = new c();
...
SelectionEnabler.verifyClass(element, "foo.bar.a"); // returns false - bug
SelectionEnabler.verifyClass(element, "foo.bar.b"); // returns true
Comment 1 Chris McLaren CLA 2005-12-12 16:57:34 EST
Reassigning to Platform-UI-Inbox (I left IBM 18 months ago..)
Comment 2 Michael Van Meekeren CLA 2006-04-21 13:56:44 EDT
Moving Dougs bugs
Comment 3 Paul Webster CLA 2007-04-05 19:02:40 EDT
Assigning to component owner
PW
Comment 4 Eclipse Webmaster CLA 2019-09-06 16:09:27 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 5 Eclipse Genie CLA 2021-12-28 15:14:28 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.