Commit e0d20d19 authored by azara's avatar azara
Browse files

BS-14273 improve generation guidance

change the behavior of finish and add. When performFinish is false it
stay on the current page 
parent b8bb042b
......@@ -69,9 +69,10 @@ public abstract class FinishAndAddCustomWizardDialog extends CustomWizardDialog
protected void buttonPressed(final int buttonId) {
super.buttonPressed(buttonId);
if (buttonId == CREATE_AND_NEW_ID) {
getWizard().performFinish();
close();
actionOnFinishAndAdd();
if (getWizard().performFinish()) {
close();
actionOnFinishAndAdd();
}
}
}
......
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