This patch makes the ontology editor OilEd from Manchester to work.
2006-05-16 Audrius Meskauskas <[EMAIL PROTECTED]>
* javax/swing/JList.java (getSelectedValues):
Ask the value for the indexed array element.
Index: JList.java
===================================================================
RCS file: /sources/classpath/classpath/javax/swing/JList.java,v
retrieving revision 1.54
diff -u -r1.54 JList.java
--- JList.java 3 May 2006 16:21:12 -0000 1.54
+++ JList.java 16 May 2006 14:08:02 -0000
@@ -1475,19 +1475,18 @@
}
/**
- * Returns all the values in the list's [EMAIL PROTECTED] #model} property which
- * are selected, according to the list's [EMAIL PROTECTED] #selectionModel} property.
- *
+ * Returns all the values in the list's [EMAIL PROTECTED] #model} property which are
+ * selected, according to the list's [EMAIL PROTECTED] #selectionModel} property.
+ *
* @return An array containing all the selected values
- *
* @see #setSelectedValue
*/
public Object[] getSelectedValues()
{
- int [] idx = getSelectedIndices();
- Object [] v = new Object[idx.length];
+ int[] idx = getSelectedIndices();
+ Object[] v = new Object[idx.length];
for (int i = 0; i < idx.length; ++i)
- v[i] = getModel().getElementAt(i);
+ v[i] = getModel().getElementAt(idx[i]);
return v;
}