Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Geert Bellekens

Pages: 1 ... 473 474 [475] 476 477 ... 544
7111
Isn't that just stored in the name?

Geert

7112
I've seen a number of forum topics about the same issue, but I don't recall seeing a solution.

Geert

7113
Automation Interface, Add-Ins and Tools / Re: Add menu to execute script
« on: February 29, 2012, 12:32:08 am »
I don't know.
I've never used MDG before.

Geert

7115
Automation Interface, Add-Ins and Tools / Re: ScenarioStep.LinkedElements
« on: February 29, 2012, 05:07:59 pm »
You're welcome Ian  ;)

Geert

7116
Automation Interface, Add-Ins and Tools / Re: Using EA as CMDB Repository
« on: February 29, 2012, 03:58:46 pm »
Quote
Maybe we should all speak Nederlandse instead?
Now that's a suggestion! Lets have a Dutch day ;D
and then a French, German, Spanish,...

Geert

7117
Automation Interface, Add-Ins and Tools / Re: Using EA as CMDB Repository
« on: February 29, 2012, 02:37:44 pm »
Quote
Quote
I stand corrected ;)

Geert
Does that mean I stand erected?  ;D

Paolo

I don't get it. According to this site: http://idioms.thefreedictionary.com/I+stand+corrected that was that was the correct phrasing.
Or am I missing a subtle language joke?

Me confused :-[

Geert

7118
Automation Interface, Add-Ins and Tools / Re: Using EA as CMDB Repository
« on: February 28, 2012, 07:47:12 pm »
Quote
Quote
EA scales pretty good, as long as you don't add too many features (1000+) to an element.
But the question is: what it this information you are trying to load into EA and does this type of information belong in a UML modelling tool?

Geert
In a modelling tool...  As you know Geert, EA goes way past UML...

In a tool based on vertices, arcs and properties (the equivalent of E-R-A).

Paolo
I stand corrected ;)

Geert

7119
Automation Interface, Add-Ins and Tools / Re: Using EA as CMDB Repository
« on: February 28, 2012, 05:25:27 pm »
EA scales pretty good, as long as you don't add too many features (1000+) to an element.
But the question is: what it this information you are trying to load into EA and does this type of information belong in a UML modelling tool?

Geert

7120
You mean the operation on the class in a class diagram?
I don't think so.
I managed to make my addin select a message in a sequence diagram, but that's about as it goes I'm afraid.

Geert

7121
Automation Interface, Add-Ins and Tools / Re: Callback mechanism
« on: February 24, 2012, 11:12:02 pm »
The starting point is here:
https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/blob/master/EANavigator/EAAddin.cs
On line 345
Code: [Select]
     public override void EA_OnContextItemChanged(global::EA.Repository Repository, string GUID, global::EA.ObjectType ot)
    {
        if (fullyLoaded && this.model != null )
        {      
            if (this.model.selectedItem != null)
            {
                  this.navigate(this.model.selectedItem) ;
            }
        }
    }

      private void navigate(UML.UMLItem item)
      {
            if (fullyLoaded)
        {
            if (this.navigatorControl == null)
            {
                this.navigatorControl = this.model.addWindow("Navigate", "TSF.UmlToolingFramework.EANavigator.NavigatorControl") as NavigatorControl;
                this.navigatorControl.BeforeExpand += new TreeViewCancelEventHandler(this.NavigatorTreeBeforeExpand);
                this.navigatorControl.NodeDoubleClick += new TreeNodeMouseClickEventHandler(this.NavigatorTreeNodeDoubleClick);
            }
            if (this.navigatorControl != null && this.model != null)
            {
                if (item != null)
                {
                    this.navigatorControl.setElement(item);
                }

            }
        }
      }

Geert

7122
Automation Interface, Add-Ins and Tools / Re: Callback mechanism
« on: February 24, 2012, 10:38:52 pm »
I don't think a custom tooltip is possible, but a custom window certainly is.
I use that feature to for the  EA Navigator.
The complete code can be found here:
https://github.com/GeertBellekens/Enterprise-Architect-Toolpack
https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework
https://github.com/GeertBellekens/UML-Tooling-Framework

Geert

7123
The EA Navigator does that for you, and since it's open source you can borrow the code for it.
You can find the operation here:
https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework/blob/master/EAAddinFramework/EAWrappers/Operation.cs at line 265
Code: [Select]
   /// <summary>
    /// returns all CallOperationActions that call this operation
    /// </summary>
    /// <returns>all CallOperationActions that call this operation</returns>
    public HashSet<UML.Actions.BasicActions.CallOperationAction> getDependentCallOperationActions()
    {
          string sqlCallOperationActions =
                @"SELECT a.Object_ID FROM t_operation op
                  inner join t_object a on op.ea_guid = a.Classifier_guid
                  where op.OperationID = " +this.wrappedOperation.MethodID;
          return new HashSet<UML.Actions.BasicActions.CallOperationAction>(this.model.getElementWrappersByQuery(sqlCallOperationActions).Cast<UML.Actions.BasicActions.CallOperationAction>());
    }

Geert

7124
Murat,

AFAIK there nothing in the EA API that could help you with that. So I guess EA behaves like any other application. If you manage to run any other application in your own window you should be able to do the same with EA.

Geert

7125
Murat,

There's nothing there that says you can run the EA as a plugin in another application.

You can create your own plugin into EA, but I don't think you can do it the other way round.

see here: http://geertbellekens.wordpress.com/2011/01/29/tutorial-create-your-first-c-enterprise-architect-addin-in-10-minutes/ for more info on how to create add-ins.

Geert

Pages: 1 ... 473 474 [475] 476 477 ... 544