Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » The accelerator does not work
The accelerator does not work [message #1038663] Thu, 11 April 2013 06:27 Go to next message
sakop qq is currently offline sakop qq
Messages: 29
Registered: January 2013
Junior Member
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 10:42 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1592
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 05:54 Go to previous messageGo to next message
sakop qq is currently offline sakop qq
Messages: 29
Registered: January 2013
Junior Member
// 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 06:07 Go to previous messageGo to next message
sakop qq is currently offline sakop qq
Messages: 29
Registered: January 2013
Junior Member
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 06:18 Go to previous messageGo to next message
sakop qq is currently offline sakop qq
Messages: 29
Registered: January 2013
Junior Member
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 12:24 Go to previous message
anudeep arya is currently offline anudeep arya
Messages: 30
Registered: March 2013
Member
Thanks..this helped me:)
Previous Topic:AddFeature in Palette
Next Topic:Loading the contents of a model
Goto Forum:
  


Current Time: Tue Sep 16 05:00:18 GMT 2014

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

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