Class MultiDeleteInfo
java.lang.Object
org.eclipse.graphiti.features.context.impl.MultiDeleteInfo
- All Implemented Interfaces:
IMultiDeleteInfo
Can be used to pass the information if a popup shall be shown or of a multi
delete has been cancelled by the user to the next delete steps. See
IDeleteContext.getMultiDeleteInfo().-
Constructor Summary
ConstructorsConstructorDescriptionMultiDeleteInfo(boolean showDialog, boolean deleteCanceled, int number) Creates a new instance with the given settings. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of elements which are selected for deletion.booleanReturns the state whether delete has been canceled or not.booleanReturns whether a dialog can be shown or should be suppressed.voidsetDeleteCanceled(boolean deleteCanceled) Sets the state whether delete has been canceled or not.voidsetShowDialog(boolean showDialog) Sets whether a dialog can be shown or should be suppressed.
-
Constructor Details
-
MultiDeleteInfo
public MultiDeleteInfo(boolean showDialog, boolean deleteCanceled, int number) Creates a new instance with the given settings.- Parameters:
showDialog- Determines if a "Are you sure" popup will be shown or notdeleteCanceled- Determines if cancellation happenednumber- Provides information on the number of objects to delete; the number will be shown in the popup if displayed.
-
-
Method Details
-
isShowDialog
public boolean isShowDialog()Description copied from interface:IMultiDeleteInfoReturns whether a dialog can be shown or should be suppressed.- Specified by:
isShowDialogin interfaceIMultiDeleteInfo- Returns:
- TRUE, a dialog can be shown
-
setShowDialog
public void setShowDialog(boolean showDialog) Description copied from interface:IMultiDeleteInfoSets whether a dialog can be shown or should be suppressed.- Specified by:
setShowDialogin interfaceIMultiDeleteInfo- Parameters:
showDialog- TRUE, a dialog can be shown
-
isDeleteCanceled
public boolean isDeleteCanceled()Description copied from interface:IMultiDeleteInfoReturns the state whether delete has been canceled or not.- Specified by:
isDeleteCanceledin interfaceIMultiDeleteInfo- Returns:
- TRUE if delete canceled; FALSE in all other cases
-
setDeleteCanceled
public void setDeleteCanceled(boolean deleteCanceled) Description copied from interface:IMultiDeleteInfoSets the state whether delete has been canceled or not.- Specified by:
setDeleteCanceledin interfaceIMultiDeleteInfo- Parameters:
deleteCanceled- TRUE, if delete canceled; FALSE in all other cases
-
getNumber
public int getNumber()Description copied from interface:IMultiDeleteInfoReturns the number of elements which are selected for deletion.- Specified by:
getNumberin interfaceIMultiDeleteInfo- Returns:
- the number of selected elements
-