Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/FeatureLayerReader.java @ 180:f4eb506499f5
Done some code styling and removed TODOs.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 11 Jul 2011 12:11:08 +0200 |
parents | f3a91cd7440b |
children | 0bde090506f9 |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/FeatureLayerReader.java Fri Jul 08 16:32:05 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/FeatureLayerReader.java Mon Jul 11 12:11:08 2011 +0200 @@ -140,9 +140,10 @@ } try { - AnnotateLayerPropertiesCollection annotation= - (AnnotateLayerPropertiesCollection)layer.getAnnotationProperties(); - + AnnotateLayerPropertiesCollection annotation = + (AnnotateLayerPropertiesCollection) + layer.getAnnotationProperties(); + if (layer.isDisplayAnnotation() && annotation.getCount() > 0){ for(int i = 0; i < annotation.getCount(); i++) { IAnnotateLayerProperties prop = annotation.getProperties(0); @@ -203,7 +204,8 @@ } else if(layer.getWorkspace().getType() == 2) { - IPropertySet set = layer.getWorkspace().getConnectionProperties(); + IPropertySet set = + layer.getWorkspace().getConnectionProperties(); Object names[] = new Object[set.getCount()]; Object prop[] = new Object[set.getCount()]; set.getAllProperties(names, prop);