diff options
Diffstat (limited to 'com.gluster.storage.management.gui/src/com/gluster')
2 files changed, 4 insertions, 4 deletions
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StartVolumeAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StartVolumeAction.java index fff5faa0..70c51119 100644 --- a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StartVolumeAction.java +++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StartVolumeAction.java @@ -42,12 +42,12 @@ public class StartVolumeAction extends AbstractActionDelegate { VolumesClient client = new VolumesClient(modelManager.getSecurityToken()); Status status = client.startVolume(volume.getName()); if (status.isSuccess()) { - new MessageDialog(Display.getDefault().getActiveShell(), action.getDescription(), null, "Volume [" + new MessageDialog(window.getShell(), action.getDescription(), null, "Volume [" + volume.getName() + "] started successfully!", MessageDialog.INFORMATION, new String[] { "OK" }, 0) .open(); modelManager.updateVolumeStatus(volume, VOLUME_STATUS.ONLINE); } else { - new MessageDialog(Display.getDefault().getActiveShell(), action.getDescription(), null, "Volume [" + new MessageDialog(window.getShell(), action.getDescription(), null, "Volume [" + volume.getName() + "] could not be started! Error: [" + status + "]", MessageDialog.ERROR, new String[] { "OK" }, 0).open(); } diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StopVolumeAction.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StopVolumeAction.java index 32a6ce08..a4e2c8d3 100644 --- a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StopVolumeAction.java +++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StopVolumeAction.java @@ -42,12 +42,12 @@ public class StopVolumeAction extends AbstractActionDelegate { VolumesClient client = new VolumesClient(modelManager.getSecurityToken()); Status status = client.stopVolume(volume.getName()); if (status.isSuccess()) { - new MessageDialog(Display.getDefault().getActiveShell(), action.getDescription(), null, "Volume [" + new MessageDialog(window.getShell(), action.getDescription(), null, "Volume [" + volume.getName() + "] stopped successfully!", MessageDialog.INFORMATION, new String[] { "OK" }, 0) .open(); modelManager.updateVolumeStatus(volume, VOLUME_STATUS.OFFLINE); } else { - new MessageDialog(Display.getDefault().getActiveShell(), action.getDescription(), null, "Volume [" + new MessageDialog(window.getShell(), action.getDescription(), null, "Volume [" + volume.getName() + "] could not be stopped! Error: [" + status + "]", MessageDialog.ERROR, new String[] { "OK" }, 0).open(); } |
