summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.console/src
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-09-08 20:07:06 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-09-08 20:08:41 +0530
commit21ef1b2d60f3a483dc32f1aeefd62fcb71753ba0 (patch)
tree7d896c78ced360c60ca4c5fcec7e86599c0e0fc6 /src/com.gluster.storage.management.console/src
parentbea47ce6d9a6015bce0e29fdbc166992d2384dab (diff)
Moved to eclipse 3.7 (indigo)
Diffstat (limited to 'src/com.gluster.storage.management.console/src')
-rw-r--r--src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/AbstractActionDelegate.java17
-rw-r--r--src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/DownloadVolumeLogsAction.java2
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 752954e8..81abb01f 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;