Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » 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 #334556] Tue, 17 February 2009 20:12 Go to next message
Sergej Alekseev is currently offline Sergej AlekseevFriend
Messages: 4
Registered: July 2009
Junior Member
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?
Re: 3.5M5 [viewContribution] action activation by the object selection doesn't work [message #334621 is a reply to message #334556] Fri, 20 February 2009 15:26 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Sergej Alekseev wrote:
>
> 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?

If it works in 3.4 but not in 3.5, something has obviously changed :-)
I suggest you open a bug at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI

Later,
PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: 3.5M5 [viewContribution] action activation by the object selection doesn't work [message #334645 is a reply to message #334621] Mon, 23 February 2009 07:49 Go to previous message
Sergej Alekseev is currently offline Sergej AlekseevFriend
Messages: 4
Registered: July 2009
Junior Member
Thank you Paul!

I wrote a bug report.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=265790

Sergej
Previous Topic:Tutorials, Examples, Articles, etc on Eclipse Text Compare functionality?
Next Topic:How to create a plug-in that uses reflection to find files with annotations ?
Goto Forum:
  


Current Time: Wed Jul 17 18:25:02 GMT 2024

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

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

Back to the top