Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2014-11-24 22:45:09 +0000
committerAngel Avila2014-11-24 22:45:09 +0000
commit0231a07d0cf082032f8f1b959873065c932d55a5 (patch)
tree2cf5e6b177d6f18c3bb8382500546ecd48acc6ea
parenta1e1637024f8d787fdb507b0a489a87719121b9c (diff)
downloadorg.eclipse.osee-0231a07d0cf082032f8f1b959873065c932d55a5.tar.gz
org.eclipse.osee-0231a07d0cf082032f8f1b959873065c932d55a5.tar.xz
org.eclipse.osee-0231a07d0cf082032f8f1b959873065c932d55a5.zip
feature[ats_ATS119815]: Change dialogs to use active shell
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/FilteredCheckboxTreeDialog.java5
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/FilteredTreeDialog.java5
2 files changed, 6 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/FilteredCheckboxTreeDialog.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/FilteredCheckboxTreeDialog.java
index 9dbf7913f9..32052d787f 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/FilteredCheckboxTreeDialog.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/FilteredCheckboxTreeDialog.java
@@ -38,7 +38,6 @@ import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.dialogs.PatternFilter;
public class FilteredCheckboxTreeDialog extends MessageDialog {
@@ -61,7 +60,9 @@ public class FilteredCheckboxTreeDialog extends MessageDialog {
}
public FilteredCheckboxTreeDialog(String dialogTitle, String dialogMessage, IContentProvider contentProvider, IBaseLabelProvider labelProvider, ViewerSorter viewerSorter) {
- super(new Shell(), dialogTitle, null, dialogMessage, MessageDialog.NONE, new String[] {"OK", "Cancel"}, 0);
+ super(Displays.getActiveShell(), dialogTitle, null, dialogMessage, MessageDialog.NONE, new String[] {
+ "OK",
+ "Cancel"}, 0);
this.contentProvider = contentProvider;
this.labelProvider = labelProvider;
this.viewerSorter = viewerSorter;
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/FilteredTreeDialog.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/FilteredTreeDialog.java
index 6c3bb27ae6..cf0ca9ddd9 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/FilteredTreeDialog.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/FilteredTreeDialog.java
@@ -30,7 +30,6 @@ import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.dialogs.PatternFilter;
public class FilteredTreeDialog extends MessageDialog {
@@ -52,7 +51,9 @@ public class FilteredTreeDialog extends MessageDialog {
}
public FilteredTreeDialog(String dialogTitle, String dialogMessage, IContentProvider contentProvider, IBaseLabelProvider labelProvider, ViewerSorter viewerSorter) {
- super(new Shell(), dialogTitle, null, dialogMessage, MessageDialog.NONE, new String[] {"OK", "Cancel"}, 0);
+ super(Displays.getActiveShell(), dialogTitle, null, dialogMessage, MessageDialog.NONE, new String[] {
+ "OK",
+ "Cancel"}, 0);
this.contentProvider = contentProvider;
this.labelProvider = labelProvider;
this.viewerSorter = viewerSorter;

Back to the top