Skip to main content
summaryrefslogtreecommitdiffstats
blob: 299c4f59b2763893e6022df72b2e4a39b63d07cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<%@ jet package="org.eclipse.e4.tools.emf.editor3x.templates" class="HandlerTemplate" imports="org.eclipse.e4.tools.emf.editor3x.wizard.NewHandlerClassWizard.HandlerClass" %>
<% HandlerClass domainClass = (HandlerClass)argument; %> 
package <%= domainClass.getPackageFragment().getElementName() %>;

import org.eclipse.e4.core.di.annotations.Execute;
<% if( domainClass.isUseCanExecute() )  { %>
import org.eclipse.e4.core.di.annotations.CanExecute;
<% } %>

public class <%= domainClass.getName() %> {
	@Execute
	public void <%= domainClass.getExecuteMethodName() %>() {
		//TODO Your code goes here
	}
	<% if( domainClass.isUseCanExecute() )  { %>
	
	@CanExecute
	public boolean <%= domainClass.getCanExecuteMethodName() %>() {
		//TODO Your code goes here
	}
	<% } %>	
}

Back to the top