Revision 10627 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/selection/LinkSelectionListener.java
LinkSelectionListener.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package com.iver.cit.gvsig.fmap.operations.selection; |
42 | 42 |
|
43 |
import com.hardcode.gdbms.engine.data.driver.DriverException; |
|
44 |
import com.hardcode.gdbms.engine.values.Value; |
|
43 |
import java.util.HashMap; |
|
45 | 44 |
|
45 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
46 |
import com.hardcode.gdbms.engine.values.Value; |
|
46 | 47 |
import com.iver.cit.gvsig.fmap.layers.FBitSet; |
47 | 48 |
import com.iver.cit.gvsig.fmap.layers.SelectableDataSource; |
48 | 49 |
import com.iver.cit.gvsig.fmap.layers.SelectionEvent; |
49 | 50 |
import com.iver.cit.gvsig.fmap.layers.SelectionListener; |
50 | 51 |
|
51 |
import java.util.HashMap; |
|
52 | 52 |
|
53 |
|
|
54 | 53 |
/** |
55 | 54 |
* Listener que est? pendiente de la selecci?n que se haga sobre la tabla para |
56 | 55 |
* poder seleccionar de la tabla linkada los registros oportunos. |
... | ... | |
85 | 84 |
try { |
86 | 85 |
index1 = modelo1.getFieldIndexByName(s1); |
87 | 86 |
index2 = modelo2.getFieldIndexByName(s2); |
88 |
} catch (DriverException e) { |
|
87 |
} catch (ReadDriverException e) {
|
|
89 | 88 |
e.printStackTrace(); |
90 | 89 |
} |
91 | 90 |
|
... | ... | |
99 | 98 |
public void selectionChanged(SelectionEvent e) { |
100 | 99 |
FBitSet bs1 = modelo1.getSelection(); |
101 | 100 |
FBitSet bs2 = new FBitSet(); //(FBitSet)modelo2.getSelection().clone(); |
102 |
HashMap idx = new HashMap((int) bs1.cardinality());
|
|
101 |
HashMap idx = new HashMap(bs1.cardinality()); |
|
103 | 102 |
//int index1 = -1; |
104 | 103 |
//int index2 = -1; |
105 | 104 |
|
... | ... | |
113 | 112 |
idx.put(v, new Integer(i)); |
114 | 113 |
} |
115 | 114 |
} |
116 |
} catch (DriverException e2) { |
|
115 |
} catch (ReadDriverException e2) {
|
|
117 | 116 |
e2.printStackTrace(); |
118 | 117 |
} |
119 | 118 |
|
... | ... | |
126 | 125 |
bs2.set(i); |
127 | 126 |
} |
128 | 127 |
} |
129 |
} catch (DriverException e1) { |
|
128 |
} catch (ReadDriverException e1) {
|
|
130 | 129 |
e1.printStackTrace(); |
131 | 130 |
} |
132 | 131 |
|
Also available in: Unified diff