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.


Topics - lopata

Pages: [1]
1
General Board / How to import "realization" from XMI?
« on: March 09, 2004, 09:32:56 am »
I can't manage to import a "realization" link from XMI UML class model - that is a "dependency" with stereotype "realize".
Here is the sample XMI data:

Code: [Select]

<UML:Dependency client=".STANDARD.FILES.C_BUFFERED_FILE_INPUT_STREAM" supplier=".STANDARD.STREAMS.C_INPUT_STREAM" xmi.id=".STANDARD.FILES.C_BUFFERED_FILE_INPUT_STREAM_.STANDARD.STREAMS.C_INPUT_STREAM_7EBC376B-892E-41f6-A780-735E12C94DBF" visibility="public">
 <UML:ModelElement.stereotype>
   <UML:Stereotype name="realize"/>
 </UML:ModelElement.stereotype>
 <UML:ModelElement.taggedValue>
   <UML:TaggedValue tag="style" value="3"/>
   <UML:TaggedValue tag="ea_type" value="Realisation"/>
   <UML:TaggedValue tag="direction" value="Source -> Destination"/>
   <UML:TaggedValue tag="linemode" value="3"/>
   <UML:TaggedValue tag="seqno" value="0"/>
   <UML:TaggedValue tag="stereotype" value="realize"/>
   <UML:TaggedValue tag="headStyle" value="0"/>
   <UML:TaggedValue tag="lineStyle" value="0"/>
   <UML:TaggedValue tag="conditional" value="Ğrealizeğ"/>
   <UML:TaggedValue tag="mb" value="Ğrealizeğ"/>
 </UML:ModelElement.taggedValue>
</UML:Dependency>


I tried to insert EA's specific Tagged Values, but it seems that EA succesfully ignores them.

Thanks for help.

Best regards,
Hynek Cihlar, http://www.flexlanguage.com

2
General Board / Troubles with XMI import
« on: March 09, 2004, 09:24:28 am »
Hello EA team!

When importing UML class model through XMI, some data isn't imported at all. So far I've found that not all links survive the import. IMHO it depends solely on the number of elements in the source XMI file. The links get imported when I reduce the number of elements in the source - I emphasize that it doesn't matter which elements are deleted from the XMI.

Any idea?

Best regards,
Hynek Cihlar
www.flexlanguage.com


3
General Board / Data types
« on: March 07, 2004, 11:45:58 am »
I'm looking for a way to define a data type in a package of a logical or class model. Am I just stupid or there is no such way and the only data types good for use are the classes themselves and the "language data types" defined in the EA's configuration?
Thanks for help.

Lopata

4
General Board / Better support for XMI
« on: March 08, 2004, 05:05:58 am »
Hello,
are there plans for better support of XMI?
For example lots of meta-information is put in nondescriptive "taggedValue" elements, which brings the XMI usability down to its knees.

Thanks,
HC

5
Automation Interface, Add-Ins and Tools / Diagram Automation
« on: March 30, 2004, 01:16:13 am »
Hi again!
Is it possibly possible :-) to layout a diagram through the automation interface?
Also, I would like to somehow control the "Parameter Detail".

Any plans to add these features in the following releases?

Thanks guys!

Hynek Cihlar, www.alsoft.cz

6
Hello folks!
I would like to perform a simple task. I have a package with elements which I'd like to copy to a newly created or an existing diagram.
First I thought this would be a simple task - the documentation includes an example where a similiar task is performed, I'm quoting:

Add and Manage Diagrams
     
public Object  

 
''an example of how to create a diagram and add an element to it  

''note the optional use of element rectangle setting using  

''left,right,top and bottom dimensions in AddNew call  

 

Sub DiagramLifeCycle  

 

    Dim diagram as object  

    Dim v as object  

    Dim o as object  

    Dim package as object  

     

    Dim idx as Integer  

    Dim idx2 as integer  

     

    package = m_Repository.GetPackageByID(5)  

     

    diagram = package.Diagrams.AddNew("Logical Diagram","Logical")  

    If not diagram.Update Then  

        Console.WriteLine(diagram.GetLastError)  

    End if  

     

    diagram.Notes = "Hello there this is a test"  

    diagram.update()  

     

    o = package.Elements.AddNew("ReferenceType","Class")  

    o.Update  

     

    '' add element to diagram - supply optional rectangle co-ordinates  

 

    v = diagram.DiagramObjects.AddNew("l=200;r=400;t=200;b=600;","")  

    v.ElementID = o.ElementID  

    v.Update  

     

    Console.WriteLine(diagram.DiagramID)  

     

 

End Sub  
-- end of example

 
This looks very promising, however to my surprise this example is simply wrong! The attribute ElementID of the Element interface is read-only, which means that the assigment from the example will not work!

So, my question is, how to add an existing element from a package to a diagram? Do I have to deepcopy all the writeable attributes and collections from the package-element to a newly cerated diagram-element? Would it even work this way?

Thanks for help.

Hynek Cihlar
A && L Soft
www.alsoft.cz
www.flexlanguage.com



Pages: [1]