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 - xhanness

Pages: [1] 2 3
1
General Board / Re: EA Models: Mass Diagram ElementsTransformation
« on: April 19, 2009, 04:44:47 am »
I do not think so, there is something like this in EA. You will have to use API :-P

2
General Board / Re: How to Hide Elements in a Class
« on: April 19, 2009, 04:49:32 am »
OR

you can click on diagram, choose Copy from context menu, go to another package, choose Paste from context menu and choose option "Type of copy: DEEP". But may be, u do not want copy them ... :)

3
General Board / Re: UML profile and packages
« on: March 04, 2009, 01:05:22 am »
Thank you guys for your sugestions and comments.
I did not know, that profile package serves as a "namespace" for stereotypes.
On the the other hand, why could not namespace be considered as a "nested namespace". I think of Java's packages as a nested namespaces... it works there fine and I can create perfect logical structure for my Classes.
However, it seems that there is no way in EA how to achieve this. I will use the idea with grouping stereotypes into several diagrams ....

thanks again !

4
General Board / UML profile and packages
« on: February 28, 2009, 02:00:11 am »
Hi,

I have created a UML profile, which contains quite a lot elements. Then I put them into a subpackages (so the profile had several packages with elements), but the import of this profile load no elements
When I put all elements from packages back directly into the profile package, the import proceeded.
The problem is, that I have many elements belonging to to different scopes (logically) and I would like to separate them.

Do you have any suggestions how to achieve this?


thanks

5
General Board / I am missing textlabels in user interface model
« on: February 19, 2009, 10:31:07 pm »
Hello,

when I am designing a screen in user interface model, I am always missing UI constrol representing text labes or simple text and I use "new text element" from UML elements toolbar. This text element I cannot see in Project Browser.

any ideas how to get around it?

thanks !

6
Hi gyus !

thanks for your helpful answers ... I got the elements sychnronized with my profile and tagged values are present.


The right solution was THIS

Code: [Select]
aRepository.CustomCommand("Repository", "SynchProfile", "Profile=PPP;Stereotype=SSS");

The stereotype name is enough to provide without namespace.

thanks !
 :)


7
Hi everybody,

I have developed a profile. Some profile's classes have attributes. I saved it into xml and imported it.

When I click on a profile element (Resources window) and drag it into the diagram, I get a element with all tagged values, corresponding to the original attributes. It works fine ...

However, when I try to generate elements via Automation interface, the tagged values do not appear...

I call the following method:
Code: [Select]
       public static EA.Element createElement(EA.Package aParentPackage, string aElementName,
string aElementType, string [highlight]aElementStereotype[/highlight])
        {
            EA.Element newElement = (EA.Element)aParentPackage.Elements.AddNew(aElementName, aElementType);                        
            newElement.Stereotype = aElementStereotype;
            newElement.Update();
            aParentPackage.Elements.Refresh();

            return newElement;
        }

and I provide the name of the class from the profile package as a "[highlight]aElementStereotype[/highlight]"

Could someone give me a hint, why tagged values do not appear in this case?

... May be the EA does not map my generated elements to the profile correctly ...




8
this is meant as double colon  :D

9
David, thanks for your reply. I did not use any validation rules until now, sinice my plugin is not "packed" into MDG package.

Anyway, could you be more detail please with the note about that kind of "namespaces" you mentioned? I refer to stereotypes with the use of "Stereotype" property (e.g. myElement.Stereotype in c#). I have not met any stereotypes of zzz::yyy:MyStereotype form. Is this format used on the level of MDG or can I meet with this during c# or java programming?


thanks

10
Well, I have created a profile consisting of stereotypes. I created also associations between stereotypes within the profile. For instance, I have a stereotype <<Parent>>, which inherits from the meta-association and I have two stereotypes <<Directory>> and <<File>>, which inherit from the meta-class. Finally (still in profile defition), I created an association between stereotypes <<Directory>> and <<File>>, which is supposed to check, that you can put the <<Parent>> association only and only on classes decorated by <<Directory>> and <<File>> during application of this profile.

Thus, in order to perform such checking with use of a EA plugin, I would like to have this information - about associations in the profile, since I need to avoid to wrong usage of my stereotypes.

Hmm, I hope I wrote it clearly. Sorry for my English  ;) and thanks for reading.

/Jan

11
Hi David !

thanks fro your advice !  :)
I did not about that this feature. I have created my own QuickLink rules and it seems to be working fine.

However, I would still appreciate to have a reasonable way how to get information about those meta-associatons.

Jan

12
During working on a profile I created some associations between some stereotype classes. Unfortunately, these are not exported with stereotypes after I "Save Package as Profile". These "meta-associations" should serve me as rules for creating models, but they are not present in profile.XML file.

is there any way how to include them?
Of course, I can create hard-code bit, read them and export  them in mine own format... but this is the very last solution.

thanks for all hints !

13
Automation Interface, Add-Ins and Tools / Re: repository issues
« on: August 12, 2009, 05:01:03 am »
Hello Mike,

thanks for the right hint. Yes, I forgot to set up the new repository with an empty project. Now it works fine !  :D

However, if anybody have an idea how to solve the first issue ...

14
Automation Interface, Add-Ins and Tools / repository issues
« on: August 12, 2009, 01:50:20 am »
Hi,

I have been struggeling for two days with two issues:

ISSUE 1
1) I created "Microsoft Access Driver" in Windows data sources
2) The source is referencing an EAP in file on my disk
3) With use of Aqua data studio, I am able to connect this data source, but the schema is empty
:-/ I do not see any tables ... no data.

ISSUE 2
1) I created a schema on a MySql server and run the script provided by Sparx for creating all necessary tables
2) I set up a connection to the database in EA according to steps on Sparx web.
3) when I click open the project, there is a "Loading project" label in left bottom corner of the window. When it disappears, nothing happen - the project is not open.
:'-(

Any hints are warmly welcome :)


PS: I have the Corporate edition


15
Automation Interface, Add-Ins and Tools / Re: detail info about element
« on: August 11, 2009, 06:30:55 am »
what do you mean Midnight?

Pages: [1] 2 3