[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] 3.5M5 [viewContribution] action activation by the object selection doesn't work
|
- From: sergej.alekseev@xxxxxxxx (Sergej Alekseev)
- Date: Tue, 17 Feb 2009 20:12:58 +0000 (UTC)
- Newsgroups: eclipse.platform
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
I'd like to have my own action in the debug view. The action has to be
activated when an element of the java stack frame is selected.
I defined the following extension point and created the class
my.test.DebugAction implements IViewActionDelegate.
<extension
point="org.eclipse.ui.viewActions">
<viewContribution
id="my.test.viewDebugContribution"
targetID="org.eclipse.debug.ui.DebugView">
<action
class="my.test.DebugAction"
id="my.test.DebugAction"
label="Test Action"
toolbarPath="additions">
enablesFor="+"
<selection
class="org.eclipse.jdt.debug.core.IJavaStackFrame">
</selection>
</action>
</viewContribution>
</extension>
This solution works fine for eclipse 3.4 (ganymede) but doesn't work for
3.5M5 (galileo) any more. The action is visible in the debug view but
disabled. If I remove the enablesFor="+" parameter then the action is
always enabled.
What is wrong in my extension point implementation or may be is it an
eclipse bug?