oldDrawingAttributes.setTo(drawingAttributes);
}
protected void loadCurrentFeatures(Enumeration treeEnum, String featureName, LayerGraphicWarehouseSupport warehouse) {
while (treeEnum.hasMoreElements()) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode) treeEnum.nextElement();
Object obj = node.getUserObject();
// Debug.output(node.getUserObject().getClass().getName()
// + ", " + node.getUserObject());
if (obj instanceof FeatureInfo) {
FeatureInfo fi = (FeatureInfo) obj;
if (fi.featureName.equals(featureName)) {
currentFeature = node;
if (warehouse instanceof VPFFeatureGraphicWarehouse) {
FeatureDrawingAttributes fda = ((VPFFeatureGraphicWarehouse) warehouse).getAttributesForFeature(featureName);
if (fda != null) {
fda.setTo(drawingAttributes);
}
}
actionPerformed(new ActionEvent(this, 0, AddFeatureCmd));
}
} else {
loadCurrentFeatures(node.children(), featureName, warehouse);
}
}
}