Home » Modeling » UML2 Tools » Changing Association End multiplicity
| |
Re: Changing Association End multiplicity [message #469941 is a reply to message #469939] |
Sun, 25 March 2007 11:26 |
Andy Evans Messages: 61 Registered: July 2009 |
Member |
|
|
Hi Michael,
Thanks. The problem I'm having is selecting the multiplicity editor in the
first
place, as when you create the association they aren't there. Maybe this is
a bug as I guess it should show [0..1] by default? To get around this I am
having
to edit the property end's multiplicity in the browser and it is then
displaying in
the diagram.
How did you edit the multiplicity in your picture?
Cheers,
Andy
"Michael Golubev" <michael.golubev@borland.com> wrote in message
news:80ef434062a08c93b3cb87727e4@news.eclipse.org...
Hello ase,
There should be inplace editor at the both ends of the link (see
screenshot).
Complete notation from Spec v06-04-02 is supported, so there may be up to 3
labels at each side of the link.
However, text of any inplace editor should be the same, code should split
the entered text into different labels automatically.
Regards,
Michael
> Is there a way to change the multiplicity of an association in the
> Class diagram editor. I can't seem to find one.
>
> Thanks,
>
> Andy
>
|
|
|
Re: Changing Association End multiplicity [message #469942 is a reply to message #469941] |
Sun, 25 March 2007 11:43 |
Michael Golubev Messages: 383 Registered: July 2009 |
Senior Member |
|
|
Hello ase,
When association is created, it has at least 3 labels -- the centered one
with assoication name,
and pair of the roles labels at the both sides. By default, the roles are
set to "src" and "dst".
Try to invoke inplace for "src" label and enter text "src [2..*]" here.
It is expected that 2 labels will be created at this side of the link
-- one that shows "src" and another that shows just entered multiplicity
[2..*]
Note, that both of new labels share the same inplace, so would you select
"[2..*]" label and press F2 now,
the text in the editor should be "src [2..*]" -- the same as inplace for
"scr" label.
Just in case, try to invoke this inplace and enter "scr [2..*] {union}" --
there will be 3 labels (role, multiplicity and properties) at this side.
Again, all of them should share the same inplace editor, initialized with
complete association notation from 06-04-02.
Regards,
Michael
> Hi Michael,
>
> Thanks. The problem I'm having is selecting the multiplicity editor in
> the
> first
> place, as when you create the association they aren't there. Maybe
> this is
> a bug as I guess it should show [0..1] by default? To get around this
> I am
> having
> to edit the property end's multiplicity in the browser and it is then
> displaying in
> the diagram.
> How did you edit the multiplicity in your picture?
>
> Cheers,
>
> Andy
>
> "Michael Golubev" <michael.golubev@borland.com> wrote in message
> news:80ef434062a08c93b3cb87727e4@news.eclipse.org...
> Hello ase,
> There should be inplace editor at the both ends of the link (see
> screenshot).
> Complete notation from Spec v06-04-02 is supported, so there may be up
> to 3
> labels at each side of the link.
> However, text of any inplace editor should be the same, code should
> split
> the entered text into different labels automatically.
> Regards,
> Michael
>> Is there a way to change the multiplicity of an association in the
>> Class diagram editor. I can't seem to find one.
>>
>> Thanks,
>>
>> Andy
>>
|
|
|
Re: Changing Association End multiplicity [message #469944 is a reply to message #469942] |
Mon, 26 March 2007 11:22 |
Andy Evans Messages: 61 Registered: July 2009 |
Member |
|
|
Thanks - that works very nicely.
Andy
"Michael Golubev" <michael.golubev@borland.com> wrote in message
news:80ef43406b188c93cfab395b00c@news.eclipse.org...
> Hello ase,
>
> When association is created, it has at least 3 labels -- the centered one
> with assoication name, and pair of the roles labels at the both sides. By
> default, the roles are set to "src" and "dst".
>
> Try to invoke inplace for "src" label and enter text "src [2..*]" here. It
> is expected that 2 labels will be created at this side of the link -- one
> that shows "src" and another that shows just entered multiplicity [2..*]
>
> Note, that both of new labels share the same inplace, so would you select
> "[2..*]" label and press F2 now, the text in the editor should be "src
> [2..*]" -- the same as inplace for "scr" label.
> Just in case, try to invoke this inplace and enter "scr [2..*] {union}" --
> there will be 3 labels (role, multiplicity and properties) at this side.
> Again, all of them should share the same inplace editor, initialized with
> complete association notation from 06-04-02.
>
> Regards, Michael
>
>
>> Hi Michael,
>>
>> Thanks. The problem I'm having is selecting the multiplicity editor in
>> the
>> first
>> place, as when you create the association they aren't there. Maybe
>> this is
>> a bug as I guess it should show [0..1] by default? To get around this
>> I am
>> having
>> to edit the property end's multiplicity in the browser and it is then
>> displaying in
>> the diagram.
>> How did you edit the multiplicity in your picture?
>>
>> Cheers,
>>
>> Andy
>>
>> "Michael Golubev" <michael.golubev@borland.com> wrote in message
>> news:80ef434062a08c93b3cb87727e4@news.eclipse.org...
>> Hello ase,
>> There should be inplace editor at the both ends of the link (see
>> screenshot).
>> Complete notation from Spec v06-04-02 is supported, so there may be up
>> to 3
>> labels at each side of the link.
>> However, text of any inplace editor should be the same, code should
>> split
>> the entered text into different labels automatically.
>> Regards,
>> Michael
>>> Is there a way to change the multiplicity of an association in the
>>> Class diagram editor. I can't seem to find one.
>>>
>>> Thanks,
>>>
>>> Andy
>>>
>
>
|
|
| |
Re: Changing Association End multiplicity [message #584833 is a reply to message #469939] |
Sun, 25 March 2007 11:26 |
Andy Evans Messages: 61 Registered: July 2009 |
Member |
|
|
Hi Michael,
Thanks. The problem I'm having is selecting the multiplicity editor in the
first
place, as when you create the association they aren't there. Maybe this is
a bug as I guess it should show [0..1] by default? To get around this I am
having
to edit the property end's multiplicity in the browser and it is then
displaying in
the diagram.
How did you edit the multiplicity in your picture?
Cheers,
Andy
"Michael Golubev" <michael.golubev@borland.com> wrote in message
news:80ef434062a08c93b3cb87727e4@news.eclipse.org...
Hello ase,
There should be inplace editor at the both ends of the link (see
screenshot).
Complete notation from Spec v06-04-02 is supported, so there may be up to 3
labels at each side of the link.
However, text of any inplace editor should be the same, code should split
the entered text into different labels automatically.
Regards,
Michael
> Is there a way to change the multiplicity of an association in the
> Class diagram editor. I can't seem to find one.
>
> Thanks,
>
> Andy
>
|
|
|
Re: Changing Association End multiplicity [message #587245 is a reply to message #469941] |
Sun, 25 March 2007 11:43 |
Michael Golubev Messages: 383 Registered: July 2009 |
Senior Member |
|
|
Hello ase,
When association is created, it has at least 3 labels -- the centered one
with assoication name,
and pair of the roles labels at the both sides. By default, the roles are
set to "src" and "dst".
Try to invoke inplace for "src" label and enter text "src [2..*]" here.
It is expected that 2 labels will be created at this side of the link
-- one that shows "src" and another that shows just entered multiplicity
[2..*]
Note, that both of new labels share the same inplace, so would you select
"[2..*]" label and press F2 now,
the text in the editor should be "src [2..*]" -- the same as inplace for
"scr" label.
Just in case, try to invoke this inplace and enter "scr [2..*] {union}" --
there will be 3 labels (role, multiplicity and properties) at this side.
Again, all of them should share the same inplace editor, initialized with
complete association notation from 06-04-02.
Regards,
Michael
> Hi Michael,
>
> Thanks. The problem I'm having is selecting the multiplicity editor in
> the
> first
> place, as when you create the association they aren't there. Maybe
> this is
> a bug as I guess it should show [0..1] by default? To get around this
> I am
> having
> to edit the property end's multiplicity in the browser and it is then
> displaying in
> the diagram.
> How did you edit the multiplicity in your picture?
>
> Cheers,
>
> Andy
>
> "Michael Golubev" <michael.golubev@borland.com> wrote in message
> news:80ef434062a08c93b3cb87727e4@news.eclipse.org...
> Hello ase,
> There should be inplace editor at the both ends of the link (see
> screenshot).
> Complete notation from Spec v06-04-02 is supported, so there may be up
> to 3
> labels at each side of the link.
> However, text of any inplace editor should be the same, code should
> split
> the entered text into different labels automatically.
> Regards,
> Michael
>> Is there a way to change the multiplicity of an association in the
>> Class diagram editor. I can't seem to find one.
>>
>> Thanks,
>>
>> Andy
>>
|
|
|
Re: Changing Association End multiplicity [message #587248 is a reply to message #469942] |
Mon, 26 March 2007 11:22 |
Andy Evans Messages: 61 Registered: July 2009 |
Member |
|
|
Thanks - that works very nicely.
Andy
"Michael Golubev" <michael.golubev@borland.com> wrote in message
news:80ef43406b188c93cfab395b00c@news.eclipse.org...
> Hello ase,
>
> When association is created, it has at least 3 labels -- the centered one
> with assoication name, and pair of the roles labels at the both sides. By
> default, the roles are set to "src" and "dst".
>
> Try to invoke inplace for "src" label and enter text "src [2..*]" here. It
> is expected that 2 labels will be created at this side of the link -- one
> that shows "src" and another that shows just entered multiplicity [2..*]
>
> Note, that both of new labels share the same inplace, so would you select
> "[2..*]" label and press F2 now, the text in the editor should be "src
> [2..*]" -- the same as inplace for "scr" label.
> Just in case, try to invoke this inplace and enter "scr [2..*] {union}" --
> there will be 3 labels (role, multiplicity and properties) at this side.
> Again, all of them should share the same inplace editor, initialized with
> complete association notation from 06-04-02.
>
> Regards, Michael
>
>
>> Hi Michael,
>>
>> Thanks. The problem I'm having is selecting the multiplicity editor in
>> the
>> first
>> place, as when you create the association they aren't there. Maybe
>> this is
>> a bug as I guess it should show [0..1] by default? To get around this
>> I am
>> having
>> to edit the property end's multiplicity in the browser and it is then
>> displaying in
>> the diagram.
>> How did you edit the multiplicity in your picture?
>>
>> Cheers,
>>
>> Andy
>>
>> "Michael Golubev" <michael.golubev@borland.com> wrote in message
>> news:80ef434062a08c93b3cb87727e4@news.eclipse.org...
>> Hello ase,
>> There should be inplace editor at the both ends of the link (see
>> screenshot).
>> Complete notation from Spec v06-04-02 is supported, so there may be up
>> to 3
>> labels at each side of the link.
>> However, text of any inplace editor should be the same, code should
>> split
>> the entered text into different labels automatically.
>> Regards,
>> Michael
>>> Is there a way to change the multiplicity of an association in the
>>> Class diagram editor. I can't seem to find one.
>>>
>>> Thanks,
>>>
>>> Andy
>>>
>
>
|
|
|
Goto Forum:
Current Time: Thu Apr 25 02:31:38 GMT 2024
Powered by FUDForum. Page generated in 3.34096 seconds
|