Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2005-02-03 05:04:48 +0000
committerCarolyn MacLeod2005-02-03 05:04:48 +0000
commit18fae616a91cd8038a8d5ddff59560d982fa1958 (patch)
treec9f0bce7cc6c172781d72cea4922a17dde75a86c /examples
parent7932dd59c1cd7400c770686349572884721e8937 (diff)
downloadeclipse.platform.swt-18fae616a91cd8038a8d5ddff59560d982fa1958.tar.gz
eclipse.platform.swt-18fae616a91cd8038a8d5ddff59560d982fa1958.tar.xz
eclipse.platform.swt-18fae616a91cd8038a8d5ddff59560d982fa1958.zip
*** empty log message ***
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TreeTab.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TreeTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TreeTab.java
index 2a0ac15dd5..512ac20eef 100755
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TreeTab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TreeTab.java
@@ -328,12 +328,13 @@ class TreeTab extends ScrollableTab {
}
if (typeName.equals("[Lorg.eclipse.swt.widgets.TreeItem;")) {
String[] values = value.split(",");
- Object[] parameters = new Object[values.length];
+ TreeItem[] items = new TreeItem[values.length];
for (int i = 0; i < values.length; i++) {
TreeItem item = findItem(values[i], ((Tree) control).getItems());
if (item == null) break;
- parameters[i] = item;
+ items[i] = item;
}
+ return new Object[] {items};
}
return super.parametersForType(typeName, value, control);
}

Back to the top