Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBIDE-20751 Wizard closing dialog shown upon canceling a creation of a project in process of creating a new OpenShift 3 application #939

Closed
wants to merge 1 commit into from

Conversation

scabanovich
Copy link
Contributor

It was the original idea to close New Application wizard entirely
if user cancelled creation of required project. There was bug in it, it is fixed.

Logic for when wizard should be closed or not is enhanced to consider these 3 cases:

  1. File-> New -> OpenShift Application or JBoss Central -> OpenShift Application started;
    user selects connection and after Next, Select Template page is opened
    and dialog New Project is opened automatically (when project list is empty).
    In this case, New Application wizard should not be closed on project creation cancel
    because user has the option to push Back and select another connection.
  2. Context menu on connection New -> Application is started;
    dialog New Project is opened automatically (when project list is empty).
    In this case New Application wizard should be closed on project creation cancel.
  3. New Project dialog is started through Manage Projects link.
    In this case, no matter how New Application wizard is started,
    it should not be closed if project creation is cancelled.

…a project in process of creating a new OpenShift 3 application

It was the original idea to close New Application wizard entirely
if user cancelled creation of required project. There was bug in it, it is fixed.

Logic for when wizard should be closed or not is enhanced to consider these 3 cases:

1. File-> New -> OpenShift Application or JBoss Central -> OpenShift Application started;
user selects connection and after Next, Select Template page is opened
and dialog New Project is opened automatically (when project list is empty).
In this case, New Application wizard should not be closed on project creation cancel
because user has the option to push Back and select another connection.

2. Context menu on connection New -> Application is started;
dialog New Project is opened automatically (when project list is empty).
In this case New Application wizard should be closed on project creation cancel.

3. New Project dialog is started through Manage Projects link.
In this case, no matter how New Application wizard is started,
it should not be closed if project creation is cancelled.
@@ -785,6 +786,13 @@ public IStatus runInUIThread(IProgressMonitor monitor) {
}
}).build();
WizardUtils.runInWizard(jobs, getContainer());
if(closeAfter[0]) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't that be called before the jobs have a chance to finish?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, other jobs go in ui thread and should be completed before this method continues.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add that as a comment in the code, someone else might find it suspicious too

@fbricon
Copy link
Member

fbricon commented Feb 2, 2016

Applied in master / 4.3.x

@fbricon fbricon closed this Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants