Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrodt2014-08-05 08:34:13 -0400
committerrbrodt2014-08-05 08:34:13 -0400
commitc8afa353b7b27e8a054c5755d95d172bba8f6096 (patch)
tree1835cd47c332650bce65e60ad03243e6a5d115b7
parent3415b8cea5804c0558924f337a373e1c8bfd9c0d (diff)
downloadorg.eclipse.bpmn2-modeler-c8afa353b7b27e8a054c5755d95d172bba8f6096.tar.gz
org.eclipse.bpmn2-modeler-c8afa353b7b27e8a054c5755d95d172bba8f6096.tar.xz
org.eclipse.bpmn2-modeler-c8afa353b7b27e8a054c5755d95d172bba8f6096.zip
Forgot the ShowHideDialog class.
-rw-r--r--plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/property/dialogs/ShowHideElementsDialog.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/property/dialogs/ShowHideElementsDialog.java b/plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/property/dialogs/ShowHideElementsDialog.java
new file mode 100644
index 00000000..2a4855d2
--- /dev/null
+++ b/plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/property/dialogs/ShowHideElementsDialog.java
@@ -0,0 +1,50 @@
+package org.eclipse.bpmn2.modeler.ui.property.dialogs;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.jface.viewers.IStructuredContentProvider;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.dialogs.ListSelectionDialog;
+
+public class ShowHideElementsDialog extends ListSelectionDialog {
+ static private List<String> elements = new ArrayList<String>();
+ static {
+ elements.add(Messages.ShowHideElementsDialog_Message_Labels);
+ elements.add(Messages.ShowHideElementsDialog_Message_Icons);
+ elements.add(Messages.ShowHideElementsDialog_Message_Flows);
+ elements.add(Messages.ShowHideElementsDialog_Gateway_Labels);
+ elements.add(Messages.ShowHideElementsDialog_Event_Labels);
+ elements.add(Messages.ShowHideElementsDialog_SequenceFlow_Labels);
+ }
+ static private IStructuredContentProvider contentProvider = new IStructuredContentProvider() {
+
+ @Override
+ public void dispose() {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void inputChanged(Viewer viewer, Object oldInput,
+ Object newInput) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public Object[] getElements(Object inputElement) {
+ return elements.toArray();
+ }
+
+ };
+ static private LabelProvider labelProvider = new LabelProvider();
+
+ public ShowHideElementsDialog(Shell shell) {
+ super(shell, elements, contentProvider, labelProvider,
+ Messages.ShowHideElementsDialog_Prompt);
+ setTitle(Messages.ShowHideElementsDialog_Title);
+ }
+}

Back to the top