*
* Contributors:
* Mik Kersten initial implementation
+ * Andy Clement incremental support and switch on/off state
* ******************************************************************/
protected IHierarchy hierarchy;
private List structureListeners = new ArrayList();
private IRelationshipMap mapper;
+ private static boolean creatingModel = false;
public static boolean attemptIncrementalModelRepairs = false;
AsmManager.getDefault().getRelationshipMap());
}
}
+
+ /**
+ * Set to indicate whether we are currently building a structure model, should
+ * be set up front.
+ */
+ public static void setCreatingModel(boolean b) {
+ creatingModel = b;
+ }
+
+ /**
+ * returns true if we are currently generating a structure model, enables
+ * guarding of expensive operations on an empty/null model.
+ */
+ public static boolean isCreatingModel() { return creatingModel;}
+
}