Revision 7572

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/TableRowsOperations.java
62 62
    private void invertSelection(Table table) {
63 63
    	SelectableDataSource sds = table.getModel().getModelo().getRecordset(); 
64 64
    	FBitSet selectedRows=sds.getSelection();
65
    	selectedRows.flip(0, selectedRows.length()+1);
65
    	try {
66
			selectedRows.flip(0, (int)sds.getRowCount());
67
		} catch (DriverException e) {
68
			e.printStackTrace();
69
			NotificationManager.addError(e);
70
		}
66 71
    	sds.setSelection(selectedRows);
67 72
	}
68 73

  
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ViewSelectionControls.java
43 43
 *
44 44
 * $Id$
45 45
 * $Log$
46
 * Revision 1.12  2006-09-20 13:17:40  jaume
46
 * Revision 1.13  2006-09-25 16:54:12  caballero
47
 * invert selection
48
 *
49
 * Revision 1.12  2006/09/20 13:17:40  jaume
47 50
 * *** empty log message ***
48 51
 *
49 52
 * Revision 1.11  2006/09/20 10:56:56  sbayarri
......
147 150
					try {
148 151
						sds = lyrVect.getRecordset();
149 152
						FBitSet selectedRows = sds.getSelection();
150
						selectedRows.flip(0, selectedRows.length()+1);
153
						selectedRows.flip(0, (int)sds.getRowCount());
151 154
						sds.setSelection(selectedRows);
152 155
					} catch (DriverException e) {
153 156
						e.printStackTrace();
154 157
						NotificationManager.addError(e);
158
					} catch (com.hardcode.gdbms.engine.data.driver.DriverException e) {
159
						e.printStackTrace();
160
						NotificationManager.addError(e);
155 161
					}
156 162

  
157 163
				}

Also available in: Unified diff