Revision 20626 trunk/libraries/libFMap_dataFile/src/org/gvsig/data/datastores/vectorial/file/dgn/DGNStore.java
DGNStore.java | ||
---|---|---|
79 | 79 |
protected IMetadata metadata; |
80 | 80 |
private DGNStoreParameters dgnParameters=null; |
81 | 81 |
private File dgnFile; |
82 |
private DGNReader m_DgnReader; |
|
83 | 82 |
private AttrInTableLabelingStrategy labeling; |
84 | 83 |
private VectorialUniqueValueLegend defaultLegend; |
85 | 84 |
|
... | ... | |
298 | 297 |
return DATASTORE_NAME; |
299 | 298 |
} |
300 | 299 |
|
301 |
public void open() throws OpenException { |
|
302 |
this.observable.notifyObservers(this, |
|
303 |
new FeatureStoreNotification(this,FeatureStoreNotification.BEFORE_OPEN) |
|
304 |
); |
|
300 |
protected void doOpen() throws OpenException { |
|
305 | 301 |
float heightText = 10; |
306 | 302 |
// attr.setLoadedInMemory(true); |
307 | 303 |
initializeFeatureType(); |
304 |
DGNReader m_DgnReader; |
|
308 | 305 |
try { |
309 | 306 |
m_DgnReader = new DGNReader(dgnFile.getAbsolutePath()); |
310 | 307 |
} catch (ReadException e) { |
... | ... | |
851 | 848 |
// } |
852 | 849 |
|
853 | 850 |
|
854 |
this.observable.notifyObservers(this, |
|
855 |
new FeatureStoreNotification(this,FeatureStoreNotification.AFTER_OPEN) |
|
856 |
); |
|
857 |
|
|
858 | 851 |
} |
859 | 852 |
|
860 |
public void close() throws CloseException { |
|
861 |
this.observable.notifyObservers(this, |
|
862 |
new FeatureStoreNotification(this,FeatureStoreNotification.BEFORE_CLOSE) |
|
863 |
); |
|
864 |
super.close(); |
|
865 |
this.observable.notifyObservers(this, |
|
866 |
new FeatureStoreNotification(this,FeatureStoreNotification.AFTER_CLOSE) |
|
867 |
); |
|
853 |
protected void doClose() throws CloseException { |
|
854 |
super.doClose(); |
|
868 | 855 |
|
869 | 856 |
} |
870 | 857 |
|
871 |
public void dispose() throws CloseException { |
|
872 |
this.observable.notifyObservers(this, |
|
873 |
new FeatureStoreNotification(this,FeatureStoreNotification.BEFORE_DISPOSE) |
|
874 |
); |
|
858 |
protected void doDispose() throws CloseException { |
|
875 | 859 |
close(); |
876 |
this.observable.notifyObservers(this, |
|
877 |
new FeatureStoreNotification(this,FeatureStoreNotification.AFTER_DISPOSE) |
|
878 |
); |
|
860 |
this.metadata=null; |
|
861 |
this.featureType=null; |
|
862 |
this.defaultLegend=null; |
|
863 |
super.doDispose(); |
|
864 |
|
|
879 | 865 |
} |
880 | 866 |
|
881 | 867 |
public boolean isEditable() { |
Also available in: Unified diff