Revision 31676 branches/v2_0_0_prep/extensions/org.gvsig.annotation/src/main/java/org/gvsig/annotation/AnnotationRecoverExtension.java
AnnotationRecoverExtension.java | ||
---|---|---|
82 | 82 |
|
83 | 83 |
//Registering Annotation extension. |
84 | 84 |
extensionPointManager.add(ACTIVATEANNOTATIONLAYER, "Recover shapefile as annotation layer"); |
85 |
if (annotationManager==null){ |
|
86 |
annotationManager = AnnotationLocator.getAnnotationManager(); |
|
87 |
} |
|
85 | 88 |
} |
86 | 89 |
|
87 | 90 |
/** |
... | ... | |
96 | 99 |
|
97 | 100 |
private void activateAnnotation() { |
98 | 101 |
map.beginAtomicEvent(); |
99 |
annotationManager = AnnotationLocator.getAnnotationManager(); |
|
100 | 102 |
//Only checks the first layer if it is an annotation layer to activate it |
101 | 103 |
FLyrVect layer = (FLyrVect) map.getLayers().getActives()[0]; |
102 | 104 |
FeatureStore store = (FeatureStore) layer.getDataStore(); |
Also available in: Unified diff