Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MalkContent on December 05, 2009, 09:54:33 pm

Title: Custom QuickLink Problems
Post by: MalkContent on December 05, 2009, 09:54:33 pm
Hello,
I have been messing around with the creation of a new MDG technology to create a new toolbox for myself.
I have defined a set of stereotypes for classes and transitions and wanted to redefine the QuickLink option, following the instructions given in EA's help.

I now have a DocumentArtifact named QuickLink within the Diagram where in I defined both the stereotypes for classes and transitions.
The following lines are the contents of said DocArtifact:

Code: [Select]
Object,MOFSDMElements::mofsdmObject,Object,MOFSDMElements::mofsdmObject,,Object,MOFSDMElements::mofsdmObject,Assosiaction,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
ActivityInitial,MOFSDMElements::mofsdmStart,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
Activity,MOFSDMElements::mofsdmActivity,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,end,,TRUE,TRUE,,TRUE,,0,,,,,
Activity,MOFSDMElements::mofsdmActivity,ActivityFinal,MOFSDMElements::mofsdmStop,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
ActivityFinal,MOFSDMElements::mofsdmStop,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,from,,,TRUE,TRUE,,TRUE,,0,,,,,

Perhaps someone can tell me what I am doing wrong, because at the moment the quicklinks of my stereotypes seemingly are not affected at all.
Title: Re: Custom QuickLink Problems
Post by: Paolo F Cantoni on December 05, 2009, 10:25:32 pm
First of all I'd try seeing if the quicklinks work with ordinary stereotypes.

I suspect (with absolutely no proof -other than many years experience with EA's self inconsistency) that adding the namespace is the problem.

I'd chge one of your current settings to remove the namespace prefix and I'd rename another to an existing stereotype - to see if that activated the QL.

HTH,
Paolo
Title: Re: Custom QuickLink Problems
Post by: Michael Proske on December 07, 2009, 11:38:39 pm
Where did you place the information. First time i put it in the notes property of the document and i got no result. You have to create a linked documemt first and put the information in the linked document.

Maybe that helps. If not i can send you an example of a profile with quick link information.
Title: Re: Custom QuickLink Problems
Post by: MalkContent on January 11, 2010, 09:01:57 pm
Sorry for not answering for so long. Got sidetracked. *cough*
Soooo... I have the QuickLink informations written down in a DocumentArtifact (Artifact with document stereotype).
The info can be seen when rightclicking the DocumentArtifact and choosing "Edit Linked Document".

Do I have to create a standard issue document element, write the info in there and link it to the artifact somehow? :/
Title: Re: Custom QuickLink Problems
Post by: KP on January 12, 2010, 08:55:17 am
Your document artifact named QuickLink has to be saved as part of a UML Profile. If you think you've done this, just check by opening your profile file in a text editor and looking for a <QuickLink> section towards the end of the file. The UML Profile can then be imported into your model or deployed as part of an MDG Technology.
Title: Re: Custom QuickLink Problems
Post by: MalkContent on January 12, 2010, 09:08:47 am
the quicklink part is present:

Code: [Select]
<QuickLink data="Object,MOFSDMElements::mofsdmObject,Object,MOFSDMElements::mofsdmObject,,Object,MOFSDMElements::mofsdmObject,Assosiaction,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
ActivityInitial,MOFSDMElements::mofsdmStart,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
Activity,MOFSDMElements::mofsdmActivity,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,end,,TRUE,TRUE,,TRUE,,0,,,,,
Activity,MOFSDMElements::mofsdmActivity,ActivityFinal,MOFSDMElements::mofsdmStop,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
ActivityFinal,MOFSDMElements::mofsdmStop,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,from,,,TRUE,TRUE,,TRUE,,0,,,,,
"/>

maybe I made an error when adressing the elements to be affected?
Title: Re: Custom QuickLink Problems
Post by: KP on January 12, 2010, 09:20:21 am
You don't want to use fully-qualified stereotypes: Say "mofsdmObject" not "MOFSDMElements::mofsdmObject".
Title: Re: Custom QuickLink Problems
Post by: MalkContent on January 21, 2010, 08:54:16 pm
still not working :/

This is my diagram for the element-profile:
(http://www.sinister-lore.de/elementprofile.png)

The QuickLink Artifact has the same text as stated before, but with not-fully-qualified stereotypes.
Title: Re: Custom QuickLink Problems
Post by: MalkContent on January 22, 2010, 12:23:32 am
little update
I found some typos (wrote Assosiation instead of Association) and inconsistencies (ActivityInitial and ActivityFinal are both referred to as StateNode, at least that's what the addin-debugging tells me).

But it's still not working.
By now I am limiting my efforts to get it working for the mofsdmObject stereotyped objects.

The documentArtifact now says the following:
Code: [Select]
Object,mofsdmObject,Object,mofsdmObject,,,,Associaction,mofsdmLink,to,Link To,,TRUE,,TRUE,TRUE,,0,,,,,
so it's nothing fancy
still, it wont work, i only get the standard object-options

here's a pic of the table, please note that I rly only tried to implent the lower line
(http://www.sinister-lore.de/docArtifact.png)