[jbosstools-issues] [JBoss JIRA] (JBIDE-22386) Server Editor: Select different service takes too long

Viacheslav Kabanovich (JIRA) issues at jboss.org
Thu May 19 17:17:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-22386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240271#comment-13240271 ] 

Viacheslav Kabanovich commented on JBIDE-22386:
-----------------------------------------------

I suggest to enhance WizardUtils class that has methods WizardUtils.runInWizard(... IWizardContainer ...) by adding to it new methods WizardUtils.runInUI(... IRunnableContext ...). Old methods may be implemented by calls to the new ones because IWizardContainer extends IRunnableContext. Then we may call runInUI from editors using the application window as the runnable context.

For this issue, call WizardUtils.runInUI(new UIJob("Select a wiard") { /* call dialog here*/ }, PlatformUI.getWorkbench().getActiveWorkbenchWindow()) will disable the button while the dialog is starting, and show progress for the job.
 

> Server Editor: Select different service takes too long
> ------------------------------------------------------
>
>                 Key: JBIDE-22386
>                 URL: https://issues.jboss.org/browse/JBIDE-22386
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.4.0.Alpha1
>            Reporter: Marián Labuda
>              Labels: openshift_v3, server_editor
>
> Trying to select a different service for an OpenShift 3 Server Adapter in Server Editor takes too long. After click on the Select... button it takes ~2-3 seconds to open dialog to select a different service. It would be ok to take it that time if there would be some indication that something is happening, but there is no job while "something" is happening.
> Also clicking on the button multiple times (if it is not responsible, I clicked again and again and again), it takes a bit longer and open multiple dialogs.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jbosstools-issues mailing list