summaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authormkersten <mkersten>2003-07-25 15:13:55 +0000
committermkersten <mkersten>2003-07-25 15:13:55 +0000
commit819bf9673845f57d744df90c6944ad86a6acba46 (patch)
tree5707d3f2300b3c4f11b175e17dabb5ebe17065f4 /asm
parentff93d3438218b803b0b6af80e27aec884f54f3bf (diff)
downloadaspectj-819bf9673845f57d744df90c6944ad86a6acba46.tar.gz
aspectj-819bf9673845f57d744df90c6944ad86a6acba46.zip
Refactored singleton reference to be accessed via getDefault() in order to be consistent with the rest of AJDE.
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/StructureModelManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/asm/src/org/aspectj/asm/StructureModelManager.java b/asm/src/org/aspectj/asm/StructureModelManager.java
index 1dbf2981d..59f32b98d 100644
--- a/asm/src/org/aspectj/asm/StructureModelManager.java
+++ b/asm/src/org/aspectj/asm/StructureModelManager.java
@@ -27,7 +27,7 @@ public class StructureModelManager {
/**
* Singleton instance.
*/
- public static StructureModelManager INSTANCE = new StructureModelManager();
+ private static StructureModelManager INSTANCE = new StructureModelManager();
private boolean shouldSaveModel = true;
protected StructureModel model = new StructureModel();
private List structureListeners = new ArrayList();
@@ -165,5 +165,9 @@ public class StructureModelManager {
public void setShouldSaveModel(boolean shouldSaveModel) {
this.shouldSaveModel = shouldSaveModel;
}
+
+ public static StructureModelManager getDefault() {
+ return INSTANCE;
+ }
}