Revision 12179
branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/EditableAdapter.java | ||
---|---|---|
1216 | 1216 |
protected boolean fireBeforeRemoveRow(int index, int sourceType) { |
1217 | 1217 |
Cancel cancel = new Cancel(); |
1218 | 1218 |
String fid=null; |
1219 |
IRow row=null; |
|
1219 | 1220 |
try { |
1220 |
fid = getRow(index).getID(); |
|
1221 |
row=getRow(index); |
|
1222 |
fid = row.getID(); |
|
1221 | 1223 |
} catch (DriverIOException e) { |
1222 | 1224 |
e.printStackTrace(); |
1223 | 1225 |
} catch (IOException e) { |
... | ... | |
1228 | 1230 |
for (int i = 0; i < editionListeners.size(); i++) { |
1229 | 1231 |
IEditionListener listener = (IEditionListener) editionListeners |
1230 | 1232 |
.get(i); |
1231 |
listener.beforeRowEditEvent(null, event);
|
|
1233 |
listener.beforeRowEditEvent(row, event);
|
|
1232 | 1234 |
if (cancel.isCanceled()) |
1233 | 1235 |
return true; |
1234 | 1236 |
} |
Also available in: Unified diff