| Summary: | [Contributions] visible/enabled: bug in SelectionEnabler.verifyClass() | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Michael Yee <michaely> |
| Component: | UI | Assignee: | 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 | ||
Reassigning to Platform-UI-Inbox (I left IBM 18 months ago..) Moving Dougs bugs Assigning to component owner PW 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. 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. |
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