當前位置: 首頁>>代碼示例>>C#>>正文


C# EA.Model類代碼示例

本文整理匯總了C#中TSF.UmlToolingFramework.Wrappers.EA.Model的典型用法代碼示例。如果您正苦於以下問題:C# Model類的具體用法?C# Model怎麽用?C# Model使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Model類屬於TSF.UmlToolingFramework.Wrappers.EA命名空間,在下文中一共展示了Model類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: DiagramLinkWrapper

 public DiagramLinkWrapper(Model model, ConnectorWrapper relation,
                           Diagram diagram){
   this.model = model;
   this.relation = relation;
   this.diagram = diagram;
   this.wrappedDiagramLink = diagram.getDiagramLinkForRelation(relation);
 }
開發者ID:kimballjohnson,項目名稱:Enterprise-Architect-Add-in-Framework,代碼行數:7,代碼來源:DiagramLinkWrapper.cs

示例2: EA_FileOpen

 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;
 }
開發者ID:GeertBellekens,項目名稱:Enterprise-Architect-Toolpack,代碼行數:7,代碼來源:EAMappingAddin.cs

示例3: ContextWrapper

 public ContextWrapper(EA.Repository repository)
 {
     this.model = new Wrapper.Model(repository);
     this.changeService = new ChangeService();
     this.ruleService = new RuleService();
     this.itemTypes = new ItemTypes(repository);
     changesDispatcherThread = new Thread(new ThreadStart(this.changeService.startActivityDispatcher));
     changesDispatcherThread.Start();
 }
開發者ID:JOndik,項目名稱:SmallTEAmsHelper,代碼行數:9,代碼來源:ContextWrapper.cs

示例4: getOutputLogger

 static EAOutputLogger getOutputLogger(Model model, string outputName)
 {
     var logKey = model.projectGUID+outputName;
     if (!outputLogs.ContainsKey(logKey))
     {
         outputLogs.Add(logKey,new EAOutputLogger(model, outputName));
     }
     return outputLogs[logKey];
 }
開發者ID:GeertBellekens,項目名稱:Enterprise-Architect-Add-in-Framework,代碼行數:9,代碼來源:EAOutputLogger.cs

示例5: EAOutputLogger

 /// <summary>
 /// private constructor
 /// </summary>
 /// <param name="model">the model this output applies to</param>
 /// <param name="outputName"></param>
 private EAOutputLogger(Model model, string outputName)
 {
     this.model = model;
     this.name = outputName;
     //make sure the log exists and is visible and cleared
     this.model.wrappedModel.CreateOutputTab(this.name);
     this.model.wrappedModel.EnsureOutputVisible(this.name);
     this.model.wrappedModel.ClearOutput(this.name);
 }
開發者ID:GeertBellekens,項目名稱:Enterprise-Architect-Add-in-Framework,代碼行數:14,代碼來源:EAOutputLogger.cs

示例6: EAImvertorException

 public EAImvertorException(UTF_EA.Model model, string exceptionType, string guid, string step, string construct, string message)
 {
     this._model = model;
     this.exceptionType = exceptionType;
     this.guid = guid;
     this.step = step;
     this.construct = construct;
     this.message = message;
 }
開發者ID:GeertBellekens,項目名稱:Enterprise-Architect-Toolpack,代碼行數:9,代碼來源:EAImvertorException.cs

示例7: EnumerationLiteral

 public EnumerationLiteral(Model model, global::EA.Attribute wrappedAttribute)
     : base(model, wrappedAttribute)
 {
     if (!this.wrappedAttribute.StyleEx.Contains("IsLiteral="))
     {
         this.wrappedAttribute.StyleEx = "IsLiteral=1;" + this.wrappedAttribute.StyleEx;
     }else
     {
         this.wrappedAttribute.StyleEx = this.wrappedAttribute.StyleEx.Replace("IsLiteral=0;","IsLiteral=1;");
     }
 }
開發者ID:GeertBellekens,項目名稱:Enterprise-Architect-Add-in-Framework,代碼行數:11,代碼來源:EnumerationLiteral.cs

示例8: EA_FileOpen

	public override void EA_FileOpen(EA.Repository Repository)
	{
		// initialize the model
        this.model = new UTF_EA.Model(Repository);
		// clear the control
		if (this.navigatorControl != null)
        {
        	this.navigatorControl.clear();
        }
        this.fullyLoaded = true;
	}
開發者ID:Helmut-Ortmann,項目名稱:Enterprise-Architect-Toolpack,代碼行數:11,代碼來源:EAAddin.cs

示例9: TFSConnectorSettingsForm

 public TFSConnectorSettingsForm(EATFSConnectorSettings settings, TSF_EA.Model model )
 {
     //
     // The InitializeComponent() call is required for Windows Forms designer support.
     //
     InitializeComponent();
     this.settings = settings;
     this.model = model;
     this.loadData();
     this.enableDisable();
 }
開發者ID:GeertBellekens,項目名稱:Enterprise-Architect-Toolpack,代碼行數:11,代碼來源:TFSConnectorSettingsForm.cs

示例10: EASearchOutput

 public EASearchOutput(string name,List<string> fields,List<UML.Extended.UMLModelOutPutItem> output, UTF_EA.Model model)
 {
     this.name = name;
     //add the default fields for EA Searches
     this.fields = new List<string> { "CLASSGUID", "CLASSTYPE" };
     this.fields.AddRange(fields);
     this.output = output;
     if (this.output == null)
     {
         this.output = new List<UML.Extended.UMLModelOutPutItem>();
     }
     this._model = model;
 }
開發者ID:GeertBellekens,項目名稱:Enterprise-Architect-Add-in-Framework,代碼行數:13,代碼來源:EASearchOutput.cs

示例11: EA_MenuClick

        /// <summary>
        /// EA_MenuClick events are received by an Add-In in response to user selection of a menu option.
        /// The event is raised when the user clicks on a particular menu option. When a user clicks on one of your non-parent menu options, your Add-In receives a MenuClick event, defined as follows:
        /// Sub EA_MenuClick(Repository As EA.Repository, ByVal MenuName As String, ByVal ItemName As String)
        /// Notice that your code can directly access Enterprise Architect data and UI elements using Repository methods.
        /// Also look at EA_GetMenuItems.
        /// </summary>
        /// <param name="Repository">An EA.Repository object representing the currently open Enterprise Architect model.
        /// Poll its members to retrieve model data and user interface status information.</param>
		/// <param name="MenuLocation">String representing the part of the user interface that brought up the menu. 
        /// Can be TreeView, MainMenu or Diagram.</param>
        /// <param name="MenuName">The name of the parent menu for which sub-items must be defined. In the case of the top-level menu it is an empty string.</param>
        /// <param name="ItemName">The name of the option actually clicked, for example, Create a New Invoice.</param>
		public override void EA_MenuClick(EA.Repository Repository, string MenuLocation, string MenuName, string ItemName)
		{
			//initialize model
			this.model = new UTF_EA.Model(Repository);
			//get all users
			List<User> allUsers = this.model.users;
			//get current user
			User currentUser = this.model.currentUser;
			//debug
			//currentUser = new User(this.model,"login1","firstname1","lastname1");
			//get all workingsets
			List<WorkingSet> allWorkingSets = this.model.workingSets;
			//open window
			WorkingSetSharingWindow window	= new WorkingSetSharingWindow(allWorkingSets,allUsers,currentUser);
			window.Show();
		}
開發者ID:Helmut-Ortmann,項目名稱:Enterprise-Architect-Toolpack,代碼行數:29,代碼來源:EAWorksetSharingAddin.cs

示例12: log

 /// <summary>
 /// log a message to the EA output window. If requested the message will also be logged to the logfile
 /// </summary>
 /// <param name="model">the model on which to show the output</param>
 /// <param name="outputName">the name of the output window</param>
 /// <param name="message">the message to show</param>
 /// <param name="elementID">the element ID to associate with the message. Can be used by add-ins when they implement EA_OnOutput...</param>
 /// <param name="logType">the type of logging to the logfile</param>
 public static void log(Model model,string outputName, string message, int elementID = 0,LogTypeEnum logType = LogTypeEnum.none)
 {
     var logger = getOutputLogger(model, outputName);
     logger.logToOutput(message,elementID);
     //log to logfile if needed
     switch (logType)
     {
         case LogTypeEnum.log:
             Logger.log(message);
             break;
         case LogTypeEnum.warning:
             Logger.logWarning(message);
             break;
         case LogTypeEnum.error:
             Logger.logError(message);
             break;
     }
 }
開發者ID:GeertBellekens,項目名稱:Enterprise-Architect-Add-in-Framework,代碼行數:26,代碼來源:EAOutputLogger.cs

示例13: EADatabaseTransformer

 public EADatabaseTransformer(DatabaseFactory factory, UTF_EA.Model model,NameTranslator nameTranslator)
     : base(nameTranslator)
 {
     this._factory = factory;
     this._model = model;
 }
開發者ID:GeertBellekens,項目名稱:Enterprise-Architect-Add-in-Framework,代碼行數:6,代碼來源:EADatabaseTransformer.cs

示例14: TaggedValue

 internal TaggedValue(Model model)
 {
     this.model = model;
 }
開發者ID:jzarca01,項目名稱:ZamiGen_addin,代碼行數:4,代碼來源:TaggedValue.cs

示例15: DiagramObjectWrapper

 public DiagramObjectWrapper(Model model, ElementWrapper element,
                             Diagram diagram) 
   : this(model, diagram.getdiagramObjectForElement(element)) 
 {}
開發者ID:kimballjohnson,項目名稱:Enterprise-Architect-Add-in-Framework,代碼行數:4,代碼來源:DiagramObjectWrapper.cs


注:本文中的TSF.UmlToolingFramework.Wrappers.EA.Model類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。