public class GenerateJavaCodeAction extends Object implements IToolbarAction
Constructor and Description |
---|
GenerateJavaCodeAction() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(Object object) |
org.eclipse.jface.action.Action |
getAction(Object currentObject,
org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
Returns the action to add to the toolbar.
|
protected org.eclipse.emf.codegen.ecore.genmodel.GenModel |
getGenModel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Returns the first
GenModel object found in the first of the given ResourceSet . |
public org.eclipse.jface.action.Action getAction(Object currentObject, org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
IToolbarAction
getAction
in interface IToolbarAction
currentObject
- the currently edited object of the editorselectionProvider
- the selection providerprotected org.eclipse.emf.codegen.ecore.genmodel.GenModel getGenModel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
GenModel
object found in the first of the given ResourceSet
.resourceSet
- the ResourceSet
to checkGenModel
or null
if none was foundpublic boolean canExecute(Object object)
canExecute
in interface IToolbarAction
object
- the currently edited object of the editorCopyright © 2019. All rights reserved.