Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.swt.examples/Eclipse SWT Examples/common/org/eclipse/swt/examples/controlexample/TreeTab.java')
-rwxr-xr-xexamples/org.eclipse.swt.examples/Eclipse SWT Examples/common/org/eclipse/swt/examples/controlexample/TreeTab.java112
1 files changed, 0 insertions, 112 deletions
diff --git a/examples/org.eclipse.swt.examples/Eclipse SWT Examples/common/org/eclipse/swt/examples/controlexample/TreeTab.java b/examples/org.eclipse.swt.examples/Eclipse SWT Examples/common/org/eclipse/swt/examples/controlexample/TreeTab.java
deleted file mode 100755
index 1f0721ddb3..0000000000
--- a/examples/org.eclipse.swt.examples/Eclipse SWT Examples/common/org/eclipse/swt/examples/controlexample/TreeTab.java
+++ /dev/null
@@ -1,112 +0,0 @@
-package org.eclipse.swt.examples.controlexample;
-
-/*
- * Licensed Materials - Property of IBM,
- * WebSphere Studio Workbench
- * (c) Copyright IBM Corp 2000
- */
-
-import org.eclipse.swt.*;
-import org.eclipse.swt.graphics.*;
-import org.eclipse.swt.widgets.*;
-import org.eclipse.swt.layout.*;
-import org.eclipse.swt.events.*;
-
-class TreeTab extends ScrollableTab {
-
- /* Example widgets and groups that contain them */
- Tree tree1, tree2;
- Group treeGroup, imageTreeGroup;
-/**
-* Creates the "Example" group.
-*/
-void createExampleGroup () {
- super.createExampleGroup ();
-
- /* Create a group for the text tree */
- treeGroup = new Group (exampleGroup, SWT.NULL);
- treeGroup.setLayout (new GridLayout ());
- treeGroup.setLayoutData (new GridData (GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL));
- treeGroup.setText (resControls.getString("Tree"));
-
- /* Create a group for the image tree */
- imageTreeGroup = new Group (exampleGroup, SWT.NULL);
- imageTreeGroup.setLayout (new GridLayout ());
- imageTreeGroup.setLayoutData (new GridData (GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL));
- imageTreeGroup.setText (resControls.getString("Tree_With_Images"));
-}
-/**
-* Creates the "Example" widgets.
-*/
-void createExampleWidgets () {
-
- /* Compute the widget style */
- int style = SWT.NONE;
- if (singleButton.getSelection()) style |= SWT.SINGLE;
- if (multiButton.getSelection()) style |= SWT.MULTI;
- if (borderButton.getSelection()) style |= SWT.BORDER;
-
- /* Create the text tree */
- tree1 = new Tree (treeGroup, style);
- TreeItem node1 = new TreeItem (tree1, SWT.NULL);
- node1.setText (resControls.getString("Node_1"));
- TreeItem node2 = new TreeItem (tree1, SWT.NULL);
- node2.setText (resControls.getString("Node_2"));
- TreeItem node3 = new TreeItem (tree1, SWT.NULL);
- node3.setText (resControls.getString("Node_3"));
- TreeItem node4 = new TreeItem (tree1, SWT.NULL);
- node4.setText (resControls.getString("Node_4"));
- TreeItem node1_1 = new TreeItem (node1, SWT.NULL);
- node1_1.setText (resControls.getString("Node_1_1"));
- TreeItem node2_1 = new TreeItem (node2, SWT.NULL);
- node2_1.setText (resControls.getString("Node_2_1"));
- TreeItem node3_1 = new TreeItem (node3, SWT.NULL);
- node3_1.setText (resControls.getString("Node_3_1"));
- TreeItem node2_2 = new TreeItem (node2, SWT.NULL);
- node2_2.setText (resControls.getString("Node_2_2"));
- TreeItem node2_2_1 = new TreeItem (node2_2, SWT.NULL);
- node2_2_1.setText (resControls.getString("Node_2_2_1"));
-
- /* Create the image tree */
- tree2 = new Tree (imageTreeGroup, style);
- node1 = new TreeItem (tree2, SWT.NULL);
- node1.setText (resControls.getString("Node_1"));
- node1.setImage (Images.CLOSED_FOLDER_IMAGE);
- node2 = new TreeItem (tree2, SWT.NULL);
- node2.setText (resControls.getString("Node_2"));
- node2.setImage (Images.CLOSED_FOLDER_IMAGE);
- node3 = new TreeItem (tree2, SWT.NULL);
- node3.setText (resControls.getString("Node_3"));
- node3.setImage (Images.CLOSED_FOLDER_IMAGE);
- node4 = new TreeItem (tree2, SWT.NULL);
- node4.setText (resControls.getString("Node_4"));
- node4.setImage (Images.CLOSED_FOLDER_IMAGE);
- node1_1 = new TreeItem (node1, SWT.NULL);
- node1_1.setText (resControls.getString("Node_1_1"));
- node1_1.setImage (Images.CLOSED_FOLDER_IMAGE);
- node2_1 = new TreeItem (node2, SWT.NULL);
- node2_1.setText (resControls.getString("Node_2_1"));
- node2_1.setImage (Images.CLOSED_FOLDER_IMAGE);
- node3_1 = new TreeItem (node3, SWT.NULL);
- node3_1.setText (resControls.getString("Node_3_1"));
- node3_1.setImage (Images.CLOSED_FOLDER_IMAGE);
- node2_2 = new TreeItem(node2, SWT.NULL);
- node2_2.setText (resControls.getString("Node_2_2"));
- node2_2.setImage (Images.CLOSED_FOLDER_IMAGE);
- node2_2_1 = new TreeItem (node2_2, SWT.NULL);
- node2_2_1.setText (resControls.getString("Node_2_2_1"));
- node2_2_1.setImage (Images.CLOSED_FOLDER_IMAGE);
-}
-/**
-* Gets the "Example" widget children.
-*/
-Control [] getExampleWidgets () {
- return new Control [] {tree1, tree2};
-}
-/**
-* Gets the text for the tab folder item.
-*/
-String getTabText () {
- return resControls.getString("Tree");
-}
-}

Back to the top