Revision 30038 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/FLayerFileVectorial.java
FLayerFileVectorial.java | ||
---|---|---|
8 | 8 |
import org.gvsig.fmap.dal.DALLocator; |
9 | 9 |
import org.gvsig.fmap.dal.exception.ReadException; |
10 | 10 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
11 |
import org.gvsig.fmap.mapcontext.MapContextException; |
|
12 | 11 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
13 | 12 |
import org.gvsig.fmap.mapcontext.exceptions.DriverLayerException; |
14 | 13 |
import org.gvsig.fmap.mapcontext.exceptions.FileLayerException; |
... | ... | |
21 | 20 |
import org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend; |
22 | 21 |
import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy; |
23 | 22 |
import org.gvsig.tools.dynobject.exception.DynMethodException; |
24 |
import org.gvsig.tools.exception.BaseException; |
|
25 |
import org.gvsig.tools.locator.LocatorException; |
|
26 | 23 |
import org.gvsig.utils.XMLEntity; |
27 | 24 |
import org.gvsig.utils.XMLException; |
28 | 25 |
|
... | ... | |
126 | 123 |
this.setAvailable(false); |
127 | 124 |
throw new DriverLayerException(getName(),null); |
128 | 125 |
} |
129 |
} catch (ReadException e2) { |
|
130 |
throw new LoadLayerException(getName(),e2); |
|
131 | 126 |
} catch (DriverLayerException e2) { |
132 | 127 |
throw new LoadLayerException(getName(),e2); |
133 | 128 |
} |
... | ... | |
158 | 153 |
if (this.getLegend() == null) { |
159 | 154 |
// this.getFeatureStore().getMetadata(). |
160 | 155 |
Object obj=null; |
161 |
try { |
|
162 |
// FIXME arreglar esto |
|
163 |
obj = this.getFeatureStore().getDynValue( |
|
164 |
"WithDefaultLegend"); |
|
165 |
} catch (BaseException e1) { |
|
166 |
throw new ReadException(getName(), e1); |
|
167 |
} |
|
156 |
// FIXME arreglar esto |
|
157 |
obj = this.getFeatureStore().getDynValue( |
|
158 |
"WithDefaultLegend"); |
|
168 | 159 |
if (obj!=null && ((Boolean)obj).booleanValue()) { |
169 | 160 |
ILegend legend = null; |
170 | 161 |
try { |
Also available in: Unified diff