Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-sysml/org/eclipse/papyrus/sysml/diagram/common/commands/CreateConstraintPropertyWithTypeConfigureCommandFactory.java.rej')
-rw-r--r--plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-sysml/org/eclipse/papyrus/sysml/diagram/common/commands/CreateConstraintPropertyWithTypeConfigureCommandFactory.java.rej30
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-sysml/org/eclipse/papyrus/sysml/diagram/common/commands/CreateConstraintPropertyWithTypeConfigureCommandFactory.java.rej b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-sysml/org/eclipse/papyrus/sysml/diagram/common/commands/CreateConstraintPropertyWithTypeConfigureCommandFactory.java.rej
new file mode 100644
index 00000000000..b38fb2c614a
--- /dev/null
+++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-sysml/org/eclipse/papyrus/sysml/diagram/common/commands/CreateConstraintPropertyWithTypeConfigureCommandFactory.java.rej
@@ -0,0 +1,30 @@
+@@ -105,29 +99,6 @@
+ ICommand newConstraintCreateCommand = commandService.getEditCommand(createTypeRequest);
+ if (newConstraintCreateCommand.canExecute()) {
+ newConstraintCreateCommand.execute(monitor, info);
+- Object newObject = newConstraintCreateCommand.getCommandResult().getReturnValue();
+- // Create the constraint specification
+- if (newObject instanceof EObject) {
+- final EObject newElement = (EObject)newObject;
+- final IDirectEditorConfiguration configuration = initExtendedEditorConfiguration(newElement);
+- try {
+- Dialog dialog = new ConstraintExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), newElement, configuration.getTextToEdit(newElement), configuration);
+- final Dialog finalDialog = dialog;
+- if(Window.OK == dialog.open()) {
+- TransactionalEditingDomain domain = getEditingDomain();
+- RecordingCommand command = new RecordingCommand(domain, "Edit Constraint specification") {
+- @Override
+- protected void doExecute() {
+- configuration.postEditAction(newElement, ((ILabelEditorDialog)finalDialog).getValue());
+- }
+- };
+- domain.getCommandStack().execute(command);
+- }
+- } catch (Exception e) {
+- Activator.log.error("Problem during editing Constaint", e);
+- }
+- }
+-
+ }
+ }
+ }

Back to the top