summaryrefslogtreecommitdiff
path: root/qpid/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/queue/QueueOperationsTabControl.java
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/queue/QueueOperationsTabControl.java')
-rw-r--r--qpid/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/queue/QueueOperationsTabControl.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/qpid/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/queue/QueueOperationsTabControl.java b/qpid/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/queue/QueueOperationsTabControl.java
index 5623c3cb51..d04884102d 100644
--- a/qpid/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/queue/QueueOperationsTabControl.java
+++ b/qpid/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/queue/QueueOperationsTabControl.java
@@ -25,6 +25,7 @@ import static org.apache.qpid.management.ui.Constants.RESULT;
import java.util.ArrayList;
import java.util.Collection;
+import java.util.Collections;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;
@@ -829,6 +830,7 @@ public class QueueOperationsTabControl extends TabControl
}
else
{
+ Collections.sort(queueList);
destinationCombo.setItems(queueList.toArray(new String[0]));
}
destinationCombo.select(0);
@@ -880,6 +882,8 @@ public class QueueOperationsTabControl extends TabControl
shell.setDefaultButton(okButton);
shell.pack();
+ ViewUtility.centerChildInParentShell(parent, shell);
+
shell.open();
}
@@ -949,6 +953,8 @@ public class QueueOperationsTabControl extends TabControl
shell.setDefaultButton(okButton);
shell.pack();
+ ViewUtility.centerChildInParentShell(parent, shell);
+
shell.open();
}