public override void EA_FileOpen(EA.Repository Repository) { // initialize the model this.model = new TSF_EA.Model(Repository); // indicate that we are now fully loaded this.fullyLoaded = true; }
/// returns the singleton instance of the factory public static SchemaBuilderFactory getInstance(UML.Extended.UMLModel model) { SchemaBuilderFactory instance = null; instances.TryGetValue(model, out instance); return(instance); }
private static void addFactory(UML.Extended.UMLModel model, SchemaBuilderFactory factory) { if (!instances.ContainsKey(model)) { instances.Add(model, factory); } }
/// returns the singleton instance for the given model. public static new EASchemaBuilderFactory getInstance(UML.Extended.UMLModel model) { EASchemaBuilderFactory factory = SBF.SchemaBuilderFactory.getInstance(model) as EASchemaBuilderFactory; if (factory == null) { factory = new EASchemaBuilderFactory((UTF_EA.Model)model); } return(factory); }
public GlossaryManagerSettings(UML.Extended.UMLModel model) { this.model = model; }
/// <summary> /// initialize the add-in class /// </summary> /// <param name="Repository"></param> private void initialize(EA.Repository Repository) { //initialize the model this.model = new TSF_EA.Model(Repository); this.schemaFactory = EASchemaBuilderFactory.getInstance(this.model); }
protected SchemaBuilderFactory(UML.Extended.UMLModel model) { this.model = model; addFactory(model, this); }