summaryrefslogtreecommitdiffstats
path: root/com.gluster.storage.management.gui/src
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-03-23 19:05:38 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-03-23 19:10:00 +0530
commit397e4da1097d75e56d15edd494d9765ff58329b6 (patch)
tree21d07d533857ab458185f5ec34d4c2424cd62bf4 /com.gluster.storage.management.gui/src
parent195695e266bc0cdd00c183760d0501e0d6c9114a (diff)
introducing subresource defaultoptions under volumes resource
Diffstat (limited to 'com.gluster.storage.management.gui/src')
-rw-r--r--com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StartVolumeAction.java4
-rw-r--r--com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/actions/StopVolumeAction.java4
-rw-r--r--com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/VolumeSummaryView.java2
3 files changed, 5 insertions, 5 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 70c51119..66a8b232 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(window.getShell(), action.getDescription(), null, "Volume ["
+ new MessageDialog(Display.getCurrent().getActiveShell(), action.getDescription(), null, "Volume ["
+ volume.getName() + "] started successfully!", MessageDialog.INFORMATION, new String[] { "OK" }, 0)
.open();
modelManager.updateVolumeStatus(volume, VOLUME_STATUS.ONLINE);
} else {
- new MessageDialog(window.getShell(), action.getDescription(), null, "Volume ["
+ new MessageDialog(Display.getCurrent().getActiveShell(), 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 a4e2c8d3..5eff2d5d 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(window.getShell(), action.getDescription(), null, "Volume ["
+ new MessageDialog(Display.getCurrent().getActiveShell(), action.getDescription(), null, "Volume ["
+ volume.getName() + "] stopped successfully!", MessageDialog.INFORMATION, new String[] { "OK" }, 0)
.open();
modelManager.updateVolumeStatus(volume, VOLUME_STATUS.OFFLINE);
} else {
- new MessageDialog(window.getShell(), action.getDescription(), null, "Volume ["
+ new MessageDialog(Display.getCurrent().getActiveShell(), action.getDescription(), null, "Volume ["
+ volume.getName() + "] could not be stopped! Error: [" + status + "]", MessageDialog.ERROR,
new String[] { "OK" }, 0).open();
}
diff --git a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/VolumeSummaryView.java b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/VolumeSummaryView.java
index c56ba71f..798c2a40 100644
--- a/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/VolumeSummaryView.java
+++ b/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/VolumeSummaryView.java
@@ -20,7 +20,6 @@ import com.gluster.storage.management.client.GlusterDataModelManager;
import com.gluster.storage.management.core.model.DefaultClusterListener;
import com.gluster.storage.management.core.model.Event;
import com.gluster.storage.management.core.model.Event.EVENT_TYPE;
-import com.gluster.storage.management.core.model.GlusterServer;
import com.gluster.storage.management.core.model.Volume;
import com.gluster.storage.management.core.model.Volume.NAS_PROTOCOL;
import com.gluster.storage.management.core.model.Volume.VOLUME_TYPE;
@@ -231,6 +230,7 @@ public class VolumeSummaryView extends ViewPart {
lblStatusValue.setText(volume.getStatusStr());
lblStatusValue.setImage(volume.getStatus() == Volume.VOLUME_STATUS.ONLINE ? guiHelper
.getImage(IImageKeys.STATUS_ONLINE) : guiHelper.getImage(IImageKeys.STATUS_OFFLINE));
+ lblStatusValue.redraw();
}
private void createTransportTypeField(Composite section) {