[jbosstools-issues] [JBoss JIRA] (JBIDE-20028) Import wizard: cloning and import operation is executed in modal (wizard) dialog, blocks me from doing anything.

Viacheslav Kabanovich (JIRA) issues at jboss.org
Wed Sep 9 17:48:00 EDT 2015


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

Viacheslav Kabanovich edited comment on JBIDE-20028 at 9/9/15 5:47 PM:
-----------------------------------------------------------------------

I looked into it, and found that setBlockOnOpen(false) allows the calling thread continue, but indeed does not prevent application window from being frozen. Here is code example that unfreezes it: 
{code}
		Dialog w = new MessageDialog(shell, "Non Modal", null, "", 0, new String[]{"OK"},0) {
			public void setShellStyle(int i) {
				super.setShellStyle(i & ~SWT.APPLICATION_MODAL);
			}
		};
		w.setBlockOnOpen(false);
		w.open();
{code}
But I have not found examples of this solution used anywhere.

So, now technically we can change WizardUtils to open truly non-modal import wizard, but is it really so badly needed to do what nobody else does?


was (Author: scabanovich):
I looked into it, and found that setBlockOnOpen(false) allows the calling thread continue, but indeed does not prevent application window from being frozen. Here is code example that unfreezes it: 
{code}
		Dialog w = new MessageDialog(shell, "Non Modal", null, "", 0, new String[]{"OK"},0) {
			public void setShellStyle(int i) {
				super.setShellStyle(i & ~SWT.APPLICATION_MODAL);
			}
		};
		w.setBlockOnOpen(false);
		w.open();
{code}
But I have not found examples of this solution used anywhere.

> Import wizard: cloning and import operation is executed in modal (wizard) dialog, blocks me from doing anything.
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-20028
>                 URL: https://issues.jboss.org/browse/JBIDE-20028
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: openshift
>    Affects Versions: 4.3.0.Beta1
>            Reporter: Andre Dietisheim
>            Assignee: Viacheslav Kabanovich
>              Labels: openshift_v3
>             Fix For: 4.3.x
>
>         Attachments: modal-dialog-blocks-me.png
>
>




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


More information about the jbosstools-issues mailing list