Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Node command
Node command [message #669705] Wed, 11 May 2011 08:35 Go to next message
Kapusta Missing name is currently offline Kapusta Missing nameFriend
Messages: 48
Registered: March 2011
Member
hi,

Is it possible, with xText, to execute a command when we double click on outline node ?

How to configure the plugin.xml to add this option? We 've seen that it's possible with the handler but our tries are not very concluding Smile

Thanks

Max&Yo

[Updated on: Wed, 11 May 2011 13:49]

Report message to a moderator

Re: Node command [message #669961 is a reply to message #669705] Thu, 12 May 2011 08:02 Go to previous message
Kapusta Missing name is currently offline Kapusta Missing nameFriend
Messages: 48
Registered: March 2011
Member
hi,

In fact, we would like to replace the pop-up menu (menuContribution) by a simple command.
This command will be launch by double click.

Actually in our plugin.xml, we have :

<extension 
		point="org.eclipse.ui.menus">
		<menuContribution 
			locationURI="popup:org.eclipse.xtext.ui.outline?after=additions">
			<command 
				commandId="fr.univartois.cril.xtext.ui.editor.outline.SampleOutlineCommand" 
				label="Execute command">
				<visibleWhen checkEnabled="true" >
				
					<iterate>
						<or>
  						<adapt type="fr.univartois.cril.xtext.als.CheckCommand" />
  						<adapt type="fr.univartois.cril.xtext.als.RunCommand" /> 
  						</or>
  					</iterate>
  				</visibleWhen>
  			</command>
  			
  		</menuContribution>
  		
  	</extension>



How do we do to execute this commande by double click?

Thanks,

Max&Yo
Previous Topic:Re: xtext problem for definition terminal string
Next Topic:xtend2 - super, operator overloading?
Goto Forum:
  


Current Time: Thu Sep 26 18:51:25 GMT 2024

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

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

Back to the top