How to read relationships in Eclipse UML Designer's class diagram? - eclipse

I doesn't understand how to read relationships in class diagrams in Eclipse UML Designer. I have a simple diagram with relationship properties displayed.
I removed navigable from 'legs' and owned from 'bodys' and received above picture which surprised me. Why class Body now have attribute bodys? I expected that Body would rather have legs attribute added. Is this some kind of error in Eclipse?

The arrow points FROM the Leg TO the body. That means that the leg knows who the body is. The body doesn't specifically knows who the leg is, because there is no arrow to it.
I would recomment other UML tools (like Dia) for a stricter usage of the UML conventions.

Related

UML class diagram when templated forms are involved

I'm learning UML diagramming and I am bit confused how to draw the class diagram for my problem
A Firm has many users
A User can belong to many firms
A Firm has many templated forms
A User can't create their own forms but can clone and use a Firm's templated forms
My questions:
It this UML diagram right?
Is Form split into 2 classes or is that unnecessary?
Or is there a better way of doing this?
This diagram is not wrong. I wonder however if there shouldn't be an association between the user form and the cloned template form.
There is an open question about whether a form template is also a form. Your short narrative seems to assume this. Another alternative could be to not let inherit FormTemplate from Form, but to prefer composition, by associating a Form to the FormTemplate. The cloning of a user form would then clone only the form information of the template and not the metadata that is only relevant for the template.

DisplayWecpofUI() missing

I tried the example in the CapableObjects document "Doing MVC with CapableObjects – a white paper in 4 parts" (http://www.new.capableobjects.com/xdownloads/Doing%20MVC%20with%20CapableObjects.pdf).
Most of it worked as described, but when I came to part 3 I could not modify the file Edit.cshtml. "#Html.DisplayWecpofUI()" causes an error.
EDIT: I searched for „DisplayWecpofUI“ in the Object Explorer... it doesn’t exist...
What am I missing here?
Wecpof enclosed the whole application including the main menu. This has subsequently been redesigned and is now part of the MDriven Turnkey product offering.
With MDriven Turnkey you provide model at the minimum. The Viewmodels in the model may be tagged as MVC or angular. You can inject your own model based code into turnkey with codedress, and styles and fashion with css and view overrides.

Papyrus: Hide/remove base_Class property from stereotypes

Is there a way to hide or remove the various base_Class properties that appear together with the properties defined for a stereotype? I am close to deploy a profile and I am pretty sure this will generate some confusion among the users.
Actually you really don't want to remove the 'base_*' properties as these indicate the meta class that your stereotypes extend. When a user goes to apply your profile, the meta class extension allows the UML editor e.g. Papyrus to display appropriate stereotypes for the target UML element. So if a user wants to apply your profile to a UML Class element, without the 'base_Class' property, nothing will show up. These extensions are linked to other elements within your profile so just removing them will cause your profile to "break" elsewhere. Other typical meta class extensions might be Property i.e. a 'base_Property' will show up. There are many others.
Oh ok cool. So when your users apply the profile to a model this takes place, as you know, primarily under the Profile->Applied stereotypes area of the Properties editor. The meta class extension properties are definitely not visible there, at least on my Papyrus version. Using Modeling Luna 4.4.0

How to make a depending relation between a class and a component in Enterprise Architect

I'm updating the existing documentation of a project I've done. In short, I have to add a new library to communicate the application with a new hardware the client wants to use. So far so good.
So in EA I went to the existing diagram and added a new component. I have a class that acts as controller for the actions this new hardware is going to do, so in the new implementation of the system, this class depends on the new component.
I tried to create a new dependency relationship between them, but when I release the mouse, a popup appears telling me that the connector used between origin and destination elements is not permitted. It prompts me with valid relationships between a class and a component. In that list I can see the dependency relationship, which is the one I'm trying to set up.
This is the popup:
Any ideas of what am I doing wrong?
Thank you in advance.
To me, it looks like some other Model validation is in place. What MDG Technologies do you have enabled? Which Toolbox / diagram are you using.
Go to Settings -> MDG Technologies and try to unselect the ones that are not standard with EA and try again, it must work.
PS - Works fine for me.

Adding Attributes to Visio UML Interface Like a Class

Is it possible to add attributes to a Visio (in my case 2007) UML diagram Interface object? It shows operations in its properties dialog, but alas no Attributes section. I am really hoping someone has thought of a way around this (without looking at third-party apps).
It is possible to achieve the same visual Effect: An interface is represented like a class with a stereotype <<interface>>. So you can go to UML/Stereotypes/New and enter "interface" as Stereotype name, then select Class as base. Now you can Create a new Class, edit it and select the new interface stereotype. After doing so you have a visual representation of an interface which can hold attributes.
Maybe this suites your needs. Still the internal representation of these models is not UML 2 compliant (but Visio has other flaws regarding that either way).