Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » 3.5M5 [viewContribution] action activation by the object selection doesn't work
3.5M5 [viewContribution] action activation by the object selection doesn't work [message #258743] Wed, 18 February 2009 02:28 Go to next message
Eclipse UserFriend
Hallo,

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?

Many thanks
Sergej
Re: 3.5M5 [viewContribution] action activation by the object selection doesn't work [message #258827 is a reply to message #258743] Mon, 23 February 2009 02:52 Go to previous message
Eclipse UserFriend
I wrote an eclipse bug report
https://bugs.eclipse.org/bugs/show_bug.cgi?id=265790
Previous Topic:compile ecj natively
Next Topic:How to find specific .java files
Goto Forum:
  


Current Time: Fri Apr 18 09:19:14 EDT 2025

Powered by FUDForum. Page generated in 0.03151 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top