Commit defd9cc7 authored by azara's avatar azara
Browse files

BS-14074 As Dave, when I delete a contract input, I need a clearer

warning message
parent 1fb46d61
......@@ -23,7 +23,8 @@ processInstantiationInputs=Process instantiation inputs
inputTabLabel=Inputs
constraintsTabLabel=Constraints
contractInputTypeLabel=Contract Input
removeInputConfirmationMessage=Are you sure you want to remove the following input?\nIf this input is COMPLEX it will remove all children.\nIf this input is a single reference of a constraint, this constraint will be removed.
removeInputConfirmationMessagePart1=Are you sure you want to remove the following input?
removeInputConfirmationMessagesPart2=\nIf this input is COMPLEX it will remove all children.\nIf this input is a single reference of a constraint, this constraint will be removed.
removeInputConfirmationTitle=Are you sure you want to remove contract input?
removeConstraintConfirmationTitle=Are you sure you want to remove contract constraint(s)?
removeConstraintConfirmationMessage=Are you sure you want to remove following constraint(s)?
......@@ -84,4 +85,4 @@ deselectAll=Deselect all
preview=Preview >
selectMandatories=Mandatory attributes
mandatoryFieldsNotSelectedWarning=Mandatory attribute(s) {0} is/are not selected. Either select it/them or initialize it/them manually.
mandatoryFieldsNotSelectedStepWarning=Mandatory attribute(s) {0} is/are not selected. Either select it/them or create storage and update operations.
mandatoryFieldsNotSelectedStepWarning=Mandatory attribute(s) {0} is/are not selected. Either select it/them or create storage and update operations.
\ No newline at end of file
......@@ -48,7 +48,8 @@ public class Messages extends NLS {
public static String constraintsTabLabel;
public static String contractInputTypeLabel;
public static String addChild;
public static String removeInputConfirmationMessage;
public static String removeInputConfirmationMessagePart1;
public static String removeInputConfirmationMessagesPart2;
public static String removeInputConfirmationTitle;
public static String returnType;
public static String up;
......
......@@ -225,10 +225,12 @@ public class ContractInputController implements IViewerController {
}
protected boolean openConfirmation(final List<?> selectedInput) {
final StringBuilder message = new StringBuilder(Messages.removeInputConfirmationMessage);
final StringBuilder message = new StringBuilder(Messages.removeInputConfirmationMessagePart1);
for (final Object input : selectedInput) {
message.append(SWT.CR);
message.append("- " + ((ContractInput) input).getName());
message.append(SWT.CR);
message.append(Messages.removeInputConfirmationMessagesPart2);
}
return FileActionDialog.getDisablePopup() ? true : MessageDialog.openConfirm(Display.getDefault().getActiveShell(),
Messages.removeInputConfirmationTitle, message.toString());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment