Revision 24031
trunk/extensions/extJCRS/src/org/gvsig/crs/gui/panels/wizard/DefinirDatum.java | ||
---|---|---|
315 | 315 |
if (cbLong==null){ |
316 | 316 |
ArrayList units = obtenerItemsUnidadesAngle(); |
317 | 317 |
String[] items = new String[units.size()]; |
318 |
String[] tooltips = new String[units.size()]; |
|
318 | 319 |
for (int i=0;i<units.size();i++){ |
319 |
items[i] = units.get(i).toString(); |
|
320 |
items[i] = tooltips[i] = units.get(i).toString();
|
|
320 | 321 |
} |
321 | 322 |
cbLong=new JComboBox(items); |
323 |
cbLong.setRenderer(new ComboBoxTootipRenderer(tooltips)); |
|
322 | 324 |
cbLong.setPreferredSize(new Dimension(230, 25)); |
323 | 325 |
/*Seleccionar un item por defecto*/ |
324 | 326 |
cbLong.setSelectedIndex(1); |
... | ... | |
342 | 344 |
cbSemMay=new JComboBox(items); |
343 | 345 |
cbSemMay.setRenderer(new ComboBoxTootipRenderer(tooltips)); |
344 | 346 |
cbSemMay.setPreferredSize(new Dimension(230, 25)); |
345 |
for (int i=0;i<units.size();i++){ |
|
346 |
items[i] = units.get(i).toString(); |
|
347 |
} |
|
348 |
cbSemMay=new JComboBox(items); |
|
349 | 347 |
/*Seleccionar un item por defecto*/ |
350 | 348 |
cbSemMay.setSelectedIndex(0); |
351 | 349 |
cbSemMay.addItemListener(this); |
... | ... | |
416 | 414 |
|
417 | 415 |
String sentence = "SELECT unit_of_meas_name " + |
418 | 416 |
"FROM epsg_unitofmeasure " + |
419 |
"WHERE unit_of_meas_type = 'angle'"; |
|
417 |
"WHERE unit_of_meas_type = 'angle' and factor_b is not null and factor_c is not null";
|
|
420 | 418 |
EpsgConnection connect = new EpsgConnection(); |
421 | 419 |
connect.setConnectionEPSG(); |
422 | 420 |
ResultSet result = Query.select(sentence,connect.getConnection()); |
Also available in: Unified diff