|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAction
org.eclipse.egf.core.ui.workbench.action.navigator.AbstractNavigatorAction
org.eclipse.egf.core.ui.workbench.action.navigator.AbstractModelElementAction
org.eclipse.egf.core.ui.workbench.action.navigator.ValidateElementAction
public class ValidateElementAction
Implement an action to validate the NamedModelElementWithId
selected element.
Constructor Summary | |
---|---|
ValidateElementAction(Shell shell_p,
ISelectionProvider selectionProvider_p,
boolean readOnlyMode_p)
Constructor. |
|
ValidateElementAction(Shell shell_p,
ISelectionProvider selectionProvider_p,
boolean readOnlyMode_p,
boolean reportSuccessfulValidation_p)
Constructor. |
Method Summary | |
---|---|
protected String |
getDefaultErrorDialogTitle()
Return the default error dialog title. |
protected String |
getErrorDialogTitle()
Return the error title to use when reporting validation errors. |
protected Class<?> |
getModelElementClass()
Get the model element class for which this action is enabled for. |
protected Wizard |
getWizardFor(NamedModelElementWithId selectedModelElement_p)
Get the wizard that handles with given model element. |
boolean |
isEnabled()
|
boolean |
isValid()
Return whether or not the validation is successful. |
void |
run()
|
void |
setErrorDialogTitle(String errorDialogTitle_p)
Set the error dialog title with the specified value. |
Methods inherited from class org.eclipse.egf.core.ui.workbench.action.navigator.AbstractModelElementAction |
---|
computeImageDescriptorForModelElement, executeCommand, getEditingDomain, getModelElement, isReadOnly, openWizardDialog, setSelectedElement |
Methods inherited from class org.eclipse.egf.core.ui.workbench.action.navigator.AbstractNavigatorAction |
---|
getSelection, getSelectionProvider, getSharedImages, getShell, isSelectionCompatible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidateElementAction(Shell shell_p, ISelectionProvider selectionProvider_p, boolean readOnlyMode_p)
shell_p
- selectionProvider_p
- readOnlyMode_p
- public ValidateElementAction(Shell shell_p, ISelectionProvider selectionProvider_p, boolean readOnlyMode_p, boolean reportSuccessfulValidation_p)
shell_p
- selectionProvider_p
- readOnlyMode_p
- reportSuccessfulValidation_p
- Method Detail |
---|
protected Wizard getWizardFor(NamedModelElementWithId selectedModelElement_p)
AbstractModelElementAction
getWizardFor
in class AbstractModelElementAction
selectedModelElement_p
- the selected element that triggers this action.
Wizard
instance.AbstractModelElementAction.getWizardFor(org.eclipse.egf.model.NamedModelElementWithId)
protected Class<?> getModelElementClass()
AbstractNavigatorAction
getModelElementClass
in class AbstractNavigatorAction
AbstractNavigatorAction.getModelElementClass()
public void run()
org.eclipse.jface.action.Action#run()
protected String getErrorDialogTitle()
protected String getDefaultErrorDialogTitle()
getErrorDialogTitle()
public boolean isValid()
run()
method.
public boolean isEnabled()
org.eclipse.jface.action.Action#isEnabled()
public void setErrorDialogTitle(String errorDialogTitle_p)
errorDialogTitle_p
- the errorDialogTitle to set
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.