diff options
author | Shireesh Anjal <shireesh@gluster.com> | 2011-09-08 20:07:06 +0530 |
---|---|---|
committer | Shireesh Anjal <shireesh@gluster.com> | 2011-09-12 11:12:34 +0530 |
commit | 35efcd3b07f1cc445da9abc19227aa35bb5f439b (patch) | |
tree | ed679820a0ead7d17d3a4e9562d38dd40dd1c181 /src/com.gluster.storage.management.console/src | |
parent | 0cbd8c21223b21d941e4f83599b0c08ed14293f5 (diff) |
Moved to eclipse 3.7 (indigo)
Diffstat (limited to 'src/com.gluster.storage.management.console/src')
2 files changed, 2 insertions, 17 deletions
diff --git a/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/AbstractActionDelegate.java b/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/AbstractActionDelegate.java index 9a5a3437..0893952f 100644 --- a/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/AbstractActionDelegate.java +++ b/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/AbstractActionDelegate.java @@ -46,25 +46,12 @@ public abstract class AbstractActionDelegate implements IWorkbenchWindowActionDe @Override public void run(final IAction action) { - // Real action code must be executed using Display#asyncExec. - // Otherwise the system can hang when opening new dialog boxes on linux platform try { - Display.getDefault().asyncExec(new Runnable() { - @Override - public void run() { - performAction(action); - } - }); + performAction(action); } catch (final Exception e) { final String actionDesc = action.getDescription(); logger.error("Exception while running action [" + actionDesc + "]", e); - - Display.getDefault().asyncExec(new Runnable() { - @Override - public void run() { - showErrorDialog(actionDesc, e.getMessage()); - } - }); + showErrorDialog(actionDesc, e.getMessage()); } } diff --git a/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/DownloadVolumeLogsAction.java b/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/DownloadVolumeLogsAction.java index 8a42951a..edf09f33 100644 --- a/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/DownloadVolumeLogsAction.java +++ b/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/DownloadVolumeLogsAction.java @@ -20,8 +20,6 @@ package com.gluster.storage.management.console.actions; import org.eclipse.jface.action.IAction; import org.eclipse.swt.SWT; -import org.eclipse.swt.custom.BusyIndicator; -import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.FileDialog; import com.gluster.storage.management.client.VolumesClient; |