Author: Grid.Qian
Date: 2009-06-16 05:49:43 -0400 (Tue, 16 Jun 2009)
New Revision: 15981
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/BrowseSelectorDialog.java
Log:
JBIDE-4481: a error occured:java.lang.ArrayIndexOutOfBoundsException: 0 when switch from
From worksapce button to From Project button
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/BrowseSelectorDialog.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/BrowseSelectorDialog.java 2009-06-16
08:01:43 UTC (rev 15980)
+++
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/BrowseSelectorDialog.java 2009-06-16
09:49:43 UTC (rev 15981)
@@ -636,7 +636,13 @@
@Override
protected void handleEmptyList() {
- fTreeViewer.setInput ( null );
+ fTreeViewer.setInput ( null );
+
+ // added by Grid.Qian
+ // the tree view's input is null, but the selection maybe not 0
+ // for example the input is a list and we select a element, then
+ // set the input = null, this time, the selection is not 0
+ fFilteredList.setSelection(new int[0]);
super.handleEmptyList();
}
Show replies by date