Revision 25074 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/VectorialUniqueValue.java
VectorialUniqueValue.java | ||
---|---|---|
321 | 321 |
FLyrVect m = (FLyrVect) layer; |
322 | 322 |
|
323 | 323 |
try { |
324 |
String fieldType = m.getFeatureStore().getDefaultFeatureType()
|
|
324 |
int fieldType = m.getFeatureStore().getDefaultFeatureType()
|
|
325 | 325 |
.getAttributeDescriptor(cmbFields.getSelectedIndex()) |
326 |
.getName();
|
|
326 |
.getDataType();
|
|
327 | 327 |
// int fieldType = m.getSource().getRecordset().getFieldType((int)cmbFields.getSelectedIndex()); |
328 |
auxLegend.setClassifyingFieldTypes(new String[] {fieldType});
|
|
328 |
auxLegend.setClassifyingFieldTypes(new int[] { fieldType });
|
|
329 | 329 |
} catch (DataException e) { |
330 | 330 |
NotificationManager.addError(PluginServices.getText(this, "could_not_setup_legend"), e); |
331 | 331 |
} |
Also available in: Unified diff