}
}
- name.setText(lastFeatureAdded);
- source.setText(lastFeatureGroupAdded);
+ if(newFeatures)
+ {
+ name.setText(lastFeatureAdded);
+ source.setText(lastFeatureGroupAdded);
+ }
+ else
+ {
+ name.setText(features[0].getType());
+ source.setText(features[0].getFeatureGroup());
+ }
+
start.setValue(new Integer(features[0].getBegin()));
end.setValue(new Integer(features[0].getEnd()));
- colour.setBackground( getColour(lastFeatureAdded) );
description.setText(features[0].getDescription());
+ colour.setBackground(getColour(name.getText()));
Object[] options;