Community
Participate
Working Groups
The RuntimeValuesAdviceEditHelperAdvice checks whether the incoming advice has the parameter allowing cancellation of the dialog (why is this even an option? Every dialog asking for user input should be cancellable) but then just ignores the possibility that the dialog was cancelled. In the doExecuteWithResult(...) method of the after-configure command is: Set<View> viewsToDisplay = getViewsToDisplay(); if (!viewsToDisplay.isEmpty()) { EditionDialog dialog = new EditionDialog(...); dialog.setTitle("Edit " + EMFCoreUtil.getName(elementToConfigure)); dialog.setViews(viewsToDisplay); dialog.setInput(elementToConfigure); dialog.open(); } return CommandResult.newOKCommandResult(elementToConfigure); So, we unconditionally complete the command, regardless of the dialog's return code.
New Gerrit change created: https://git.eclipse.org/r/70425
Gerrit change https://git.eclipse.org/r/70425 was merged to [master]. Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=5f7e110b3bfb1fc1d917bd988a1b67c42e2c6ad1
Fixed for Neon M7.