本文整理汇总了C#中TSF.UmlToolingFramework.Wrappers.EA.Model类的典型用法代码示例。如果您正苦于以下问题:C# Model类的具体用法?C# Model怎么用?C# Model使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Model类属于TSF.UmlToolingFramework.Wrappers.EA命名空间,在下文中一共展示了Model类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: OperationTag
internal OperationTag(Model model, global::EA.MethodTag eaTag):base(model)
{
this.wrappedTaggedValue = eaTag;
}
开发者ID:kimballjohnson,项目名称:Enterprise-Architect-Add-in-Framework,代码行数:4,代码来源:OperationTag.cs
示例17: Attribute
public Attribute(Model model, global::EA.Attribute wrappedAttribute)
: base(model)
{
this.wrappedAttribute = wrappedAttribute;
}
开发者ID:kimballjohnson,项目名称:Enterprise-Architect-Add-in-Framework,代码行数:5,代码来源:Attribute.cs
示例18: Enumeration
public Enumeration(Model model, global::EA.Element elementToWrap)
: base(model, elementToWrap)
{
}
开发者ID:GeertBellekens,项目名称:Enterprise-Architect-Add-in-Framework,代码行数:4,代码来源:Enumeration.cs
示例19: RootPackage
public RootPackage(Model model,global::EA.Package package)
: base(model,package)
{
this.wrappedPackage = package;
}
开发者ID:hugelsb,项目名称:Enterprise-Architect-Add-in-Framework,代码行数:5,代码来源:RootPackage.cs
示例20: ObjectDiagram
public ObjectDiagram(Model model, global::EA.Diagram wrappedDiagram ):base(model,wrappedDiagram)
{
}
开发者ID:kimballjohnson,项目名称:Enterprise-Architect-Add-in-Framework,代码行数:3,代码来源:ObjectDiagram.cs
注:本文中的TSF.UmlToolingFramework.Wrappers.EA.Model类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论