Revision 2759
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java | ||
---|---|---|
460 | 460 |
* De esta forma, podr?s poner leyendas basadas en el nuevo |
461 | 461 |
* recordset |
462 | 462 |
* @param newSds |
463 |
* @throws DriverException |
|
464 |
* @throws FieldNotFoundException |
|
465 |
* @throws FieldNotFoundException |
|
463 | 466 |
*/ |
464 |
public void setRecordset(SelectableDataSource newSds) |
|
467 |
public void setRecordset(SelectableDataSource newSds) throws DriverException, FieldNotFoundException
|
|
465 | 468 |
{ |
466 | 469 |
sds = newSds; |
467 | 470 |
sds.setSelectionSupport(selectionSupport); |
468 |
try { |
|
469 |
legend.setDataSource(sds); |
|
470 |
} catch (FieldNotFoundException e) { |
|
471 |
// TODO Auto-generated catch block |
|
472 |
e.printStackTrace(); |
|
473 |
} catch (DriverException e) { |
|
474 |
// TODO Auto-generated catch block |
|
475 |
e.printStackTrace(); |
|
476 |
} |
|
471 |
legend.setDataSource(sds); |
|
477 | 472 |
logger.debug("Recordset cambiado a " + sds.getName()); |
478 | 473 |
} |
479 | 474 |
|
... | ... | |
621 | 616 |
throw new XMLException(e1); |
622 | 617 |
} catch (DriverException e1) { |
623 | 618 |
throw new XMLException(e1); |
624 |
} catch (com.hardcode.gdbms.engine.data.driver.DriverException e) { |
|
625 |
// TODO Auto-generated catch block |
|
619 |
} catch (com.hardcode.gdbms.engine.data.driver.DriverException e1) { |
|
620 |
throw new XMLException(e1); |
|
621 |
} catch (DriverLoadException e1) { |
|
622 |
throw new XMLException(e1); |
|
623 |
} catch (FieldNotFoundException e) { |
|
626 | 624 |
e.printStackTrace(); |
627 |
} catch (DriverLoadException e) { |
|
628 |
// TODO Auto-generated catch block |
|
629 |
e.printStackTrace(); |
|
625 |
throw new XMLException(e); |
|
630 | 626 |
} |
631 | 627 |
// Si tiene una uni?n, lo marcamos para que no se cree la leyenda hasta el final |
632 | 628 |
// de la lectura del proyecto |
Also available in: Unified diff