Skip to main content



      Home
Home » Modeling » Graphiti » The accelerator does not work
The accelerator does not work [message #1038663] Thu, 11 April 2013 02:27 Go to next message
Eclipse UserFriend
Hi,I found that the accelerator does not work in my project,for example, ctrl+z doesn't undo a command any more.

I think some guys in the team may have overriden graphiti's default accelerator machanism, can sb tell me where to check it?

Thanks.
Re: The accelerator does not work [message #1039602 is a reply to message #1038663] Fri, 12 April 2013 06:42 Go to previous messageGo to next message
Eclipse UserFriend
Sakop,

hm, on ething comes to my mind: maybe you have added an own subclass of
DiagramEditor. In that case you should check that there is also suitable
ActionBarContributor registered.

HTH,
Michael
Re: The accelerator does not work [message #1041452 is a reply to message #1039602] Mon, 15 April 2013 01:54 Go to previous messageGo to next message
Eclipse UserFriend
// new actions (there is no specific refresh-action).
		if (getEditorSite().getActionBarContributor() != null)
			getEditorSite().getActionBarContributor().setActiveEditor(this);


getActionBarContributor returns null, can you tell me the details how to amend this problem? Thanks
Re: The accelerator does not work [message #1041460 is a reply to message #1039602] Mon, 15 April 2013 02:07 Go to previous messageGo to next message
Eclipse UserFriend
My class extends DiagramEditor, it is supposed to inherit everything diagramEditor provides, why do we lose the acclerator functions?
Re: The accelerator does not work [message #1041465 is a reply to message #1038663] Mon, 15 April 2013 02:18 Go to previous messageGo to next message
Eclipse UserFriend
The problem is solved, I set the actionContributor attribute in plugin.xml
Re: The accelerator does not work [message #1061661 is a reply to message #1041465] Mon, 03 June 2013 08:24 Go to previous message
Eclipse UserFriend
Thanks..this helped me:)
Previous Topic:AddFeature in Palette
Next Topic:Loading the contents of a model
Goto Forum:
  


Current Time: Wed Jul 23 03:24:09 EDT 2025

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

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

Back to the top