Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Properties/Parts with Ports
Properties/Parts with Ports [message #473373] Mon, 10 March 2008 16:24 Go to next message
Joel Greenyer is currently offline Joel GreenyerFriend
Messages: 170
Registered: July 2009
Senior Member
Hi,
I checked out the examples from the CVS and discovered the "Port examples" composite structure diagram (in
org.eclipse.uml2.diagram.examples.clazz\diagram\07-02-03\09 Composite Structures\). Actually, I want to draw diagrams
just like these but this seems to be yet difficult:
- How can I draw parts/properties inside classes (not as a list). Okay, I could/would use Components here.
- How can I show/draw ports on the parts/properties?

The example suggest that this should be possible somehow. Is it?

Thanks

Joel
Re: Properties/Parts with Ports [message #473374 is a reply to message #473373] Mon, 10 March 2008 19:56 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Joel,

> - How can I draw parts/properties inside classes (not as a list).
Palette entry was mixed up here. I submitted #222108 'Allow to create elements
inside expanded Class'. So, first update your source code and after that:
Create Class, invoke 'Show as->Expanded Class' action. Create inner property
by using Attribute palette entry.
(Or Create Class, invoke _'Show as->Class3'_ action. Create inner property
by using _Class_ palette entry if you still use old sources.)

> - How can I show/draw ports on the parts/properties?
There are quite sophisticated rules here. Let's look at them in the context
of the given example.
These port are just one more presentation of the ports of typing classifier.
Look, there is a 'e' attribute inside Car class. 'p' port is shown on its
boundary, this p port is the same port that is located on boundary of Engine.
Engine is a typing classifier for 'e' property.
These ports are shown if there is a connector link going to them. It means,
that ConnectorEnd has 'partWithPort' referencing to appropriate property.
In our example there is a Connector from Car::rear to Engine::p, this Connector
referencing Car::e in its partWithPort property.
Bugzilla #209651 'Port on the boundary of Part' has some implementation
details. Note, #215245 'Refresh connector when PartWithPort changes' which
is still open.

Good luck,
Tatiana.
Re: Properties/Parts with Ports [message #473375 is a reply to message #473374] Tue, 11 March 2008 07:12 Go to previous messageGo to next message
Joel Greenyer is currently offline Joel GreenyerFriend
Messages: 170
Registered: July 2009
Senior Member
Tatiana Fesenko wrote:
> Hi Joel,
>
>> - How can I draw parts/properties inside classes (not as a list).
> Palette entry was mixed up here. I submitted #222108 'Allow to create
> elements inside expanded Class'. So, first update your source code and
> after that:
> Create Class, invoke 'Show as->Expanded Class' action. Create inner
> property by using Attribute palette entry. (Or Create Class, invoke
> _'Show as->Class3'_ action. Create inner property by using _Class_
> palette entry if you still use old sources.)
>
>> - How can I show/draw ports on the parts/properties?
> There are quite sophisticated rules here. Let's look at them in the
> context of the given example. These port are just one more presentation
> of the ports of typing classifier. Look, there is a 'e' attribute inside
> Car class. 'p' port is shown on its boundary, this p port is the same
> port that is located on boundary of Engine. Engine is a typing
> classifier for 'e' property.
> These ports are shown if there is a connector link going to them. It
> means, that ConnectorEnd has 'partWithPort' referencing to appropriate
> property. In our example there is a Connector from Car::rear to
> Engine::p, this Connector referencing Car::e in its partWithPort
> property. Bugzilla #209651 'Port on the boundary of Part' has some
> implementation details. Note, #215245 'Refresh connector when
> PartWithPort changes' which is still open.
> Good luck,
> Tatiana.
>

Tatiana,
I actually think that by default all ports from the classifier should be shown on the borders of the parts of this type.
At least there should be some context menu way to "make them appear" so that the parts can be connected the way you want
to connect them.

Thanks for helping

Joel
Re: Properties/Parts with Ports [message #473376 is a reply to message #473375] Tue, 11 March 2008 11:26 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Joel,

I agree with you. There should be a mechanizm to show/hide required port
on a part. However, I don't think such ports should be displayed always,
it could litter the diagram.
I submitted bugzilla #222211 'Port on Part visibility'.

Best wishes,
Tatiana.

> Tatiana,
>
> I actually think that by default all ports from the classifier should
> be shown on the borders of the parts of this type.
>
> At least there should be some context menu way to "make them appear"
> so that the parts can be connected the way you want
>
> to connect them.
>
> Thanks for helping
>
> Joel
>
Re: Properties/Parts with Ports [message #473377 is a reply to message #473376] Tue, 11 March 2008 14:50 Go to previous message
Joel Greenyer is currently offline Joel GreenyerFriend
Messages: 170
Registered: July 2009
Senior Member
Tatiana Fesenko wrote:
> Hi Joel,
>
> I agree with you. There should be a mechanizm to show/hide required port
> on a part. However, I don't think such ports should be displayed always,
> it could litter the diagram. I submitted bugzilla #222211 'Port on Part
> visibility'.

Hi Tatiana,
sounds good, thanks.
These features should be the same for the Component Diagram, too. Do you agree?

Cheers

Joel

> Best wishes,
> Tatiana.
>
>> Tatiana,
>>
>> I actually think that by default all ports from the classifier should
>> be shown on the borders of the parts of this type.
>>
>> At least there should be some context menu way to "make them appear"
>> so that the parts can be connected the way you want
>>
>> to connect them.
>>
>> Thanks for helping
>>
>> Joel
>>
>
>
Re: Properties/Parts with Ports [message #618483 is a reply to message #473373] Mon, 10 March 2008 19:56 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Joel,

> - How can I draw parts/properties inside classes (not as a list).
Palette entry was mixed up here. I submitted #222108 'Allow to create elements
inside expanded Class'. So, first update your source code and after that:
Create Class, invoke 'Show as->Expanded Class' action. Create inner property
by using Attribute palette entry.
(Or Create Class, invoke _'Show as->Class3'_ action. Create inner property
by using _Class_ palette entry if you still use old sources.)

> - How can I show/draw ports on the parts/properties?
There are quite sophisticated rules here. Let's look at them in the context
of the given example.
These port are just one more presentation of the ports of typing classifier.
Look, there is a 'e' attribute inside Car class. 'p' port is shown on its
boundary, this p port is the same port that is located on boundary of Engine.
Engine is a typing classifier for 'e' property.
These ports are shown if there is a connector link going to them. It means,
that ConnectorEnd has 'partWithPort' referencing to appropriate property.
In our example there is a Connector from Car::rear to Engine::p, this Connector
referencing Car::e in its partWithPort property.
Bugzilla #209651 'Port on the boundary of Part' has some implementation
details. Note, #215245 'Refresh connector when PartWithPort changes' which
is still open.

Good luck,
Tatiana.
Re: Properties/Parts with Ports [message #618486 is a reply to message #473374] Tue, 11 March 2008 07:12 Go to previous message
Joel Greenyer is currently offline Joel GreenyerFriend
Messages: 170
Registered: July 2009
Senior Member
Tatiana Fesenko wrote:
> Hi Joel,
>
>> - How can I draw parts/properties inside classes (not as a list).
> Palette entry was mixed up here. I submitted #222108 'Allow to create
> elements inside expanded Class'. So, first update your source code and
> after that:
> Create Class, invoke 'Show as->Expanded Class' action. Create inner
> property by using Attribute palette entry. (Or Create Class, invoke
> _'Show as->Class3'_ action. Create inner property by using _Class_
> palette entry if you still use old sources.)
>
>> - How can I show/draw ports on the parts/properties?
> There are quite sophisticated rules here. Let's look at them in the
> context of the given example. These port are just one more presentation
> of the ports of typing classifier. Look, there is a 'e' attribute inside
> Car class. 'p' port is shown on its boundary, this p port is the same
> port that is located on boundary of Engine. Engine is a typing
> classifier for 'e' property.
> These ports are shown if there is a connector link going to them. It
> means, that ConnectorEnd has 'partWithPort' referencing to appropriate
> property. In our example there is a Connector from Car::rear to
> Engine::p, this Connector referencing Car::e in its partWithPort
> property. Bugzilla #209651 'Port on the boundary of Part' has some
> implementation details. Note, #215245 'Refresh connector when
> PartWithPort changes' which is still open.
> Good luck,
> Tatiana.
>

Tatiana,
I actually think that by default all ports from the classifier should be shown on the borders of the parts of this type.
At least there should be some context menu way to "make them appear" so that the parts can be connected the way you want
to connect them.

Thanks for helping

Joel
Re: Properties/Parts with Ports [message #618488 is a reply to message #473375] Tue, 11 March 2008 11:26 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hi Joel,

I agree with you. There should be a mechanizm to show/hide required port
on a part. However, I don't think such ports should be displayed always,
it could litter the diagram.
I submitted bugzilla #222211 'Port on Part visibility'.

Best wishes,
Tatiana.

> Tatiana,
>
> I actually think that by default all ports from the classifier should
> be shown on the borders of the parts of this type.
>
> At least there should be some context menu way to "make them appear"
> so that the parts can be connected the way you want
>
> to connect them.
>
> Thanks for helping
>
> Joel
>
Re: Properties/Parts with Ports [message #618491 is a reply to message #473376] Tue, 11 March 2008 14:50 Go to previous message
Joel Greenyer is currently offline Joel GreenyerFriend
Messages: 170
Registered: July 2009
Senior Member
Tatiana Fesenko wrote:
> Hi Joel,
>
> I agree with you. There should be a mechanizm to show/hide required port
> on a part. However, I don't think such ports should be displayed always,
> it could litter the diagram. I submitted bugzilla #222211 'Port on Part
> visibility'.

Hi Tatiana,
sounds good, thanks.
These features should be the same for the Component Diagram, too. Do you agree?

Cheers

Joel

> Best wishes,
> Tatiana.
>
>> Tatiana,
>>
>> I actually think that by default all ports from the classifier should
>> be shown on the borders of the parts of this type.
>>
>> At least there should be some context menu way to "make them appear"
>> so that the parts can be connected the way you want
>>
>> to connect them.
>>
>> Thanks for helping
>>
>> Joel
>>
>
>
Previous Topic:Properties/Parts with Ports
Next Topic:listening for UML2 creation/deletion events
Goto Forum:
  


Current Time: Fri Apr 19 05:31:28 GMT 2024

Powered by FUDForum. Page generated in 0.02488 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top