Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » UML2(Create an object property receiving incremental value.)
UML2 [message #1734928] Mon, 13 June 2016 19:53 Go to next message
Rafi Ehrlich is currently offline Rafi EhrlichFriend
Messages: 2
Registered: June 2016
Junior Member
Hi all,
I need to have a property for each object (e.g. Class , Association , UseCase ...)
that when the object is added to the diagram (e.g. Class diagram) the property value will automatically increase - kind of objects counter.

Thanks
rafi
Re: UML2 [message #1734942 is a reply to message #1734928] Tue, 14 June 2016 03:39 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30449
Registered: July 2009
Senior Member
Rafi,

Perhaps you're using Papyrus and should post on their specific forum
(eclipse.papyrus). I doubt such a thing exists though and I doubt it's
even very sensible. I.e., I can have many diagram files and I can
delete one or all of them, in which case the counter is not likely to be
maintained correctly.


On 13.06.2016 22:55, Rafi Ehrlich wrote:
> Hi all,
> I need to have a property for each object (e.g. Class , Association ,
> UseCase ...)
> that when the object is added to the diagram (e.g. Class diagram) the
> property value will automatically increase - kind of objects counter.
>
> Thanks
> rafi
>
Re: UML2 [message #1734985 is a reply to message #1734928] Tue, 14 June 2016 12:52 Go to previous messageGo to next message
Rafi Ehrlich is currently offline Rafi EhrlichFriend
Messages: 2
Registered: June 2016
Junior Member
Thanks Ed,

My aim is that ,when I read the saved diagram file/s with my own code,
this property value gives me indication when each object was added to the diagram relatively to others - kind of a system time stamp.
By the way - system time stamp value would be fine.
So I'm not concerned about deletions.
For example <Call Event> object (appearing in the Tree View of the diagram)
name property value is increasing and kept in the Tree View though its counter part ,the message object, is deleted from the diagram.
I was thinking about two approaches (which so far didn't raise much success):
Via stereotypes or plugin extension.
Can you advise on that ?

Re: UML2 [message #1735098 is a reply to message #1734985] Wed, 15 June 2016 14:14 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30449
Registered: July 2009
Senior Member
It's best to ask about UML2 on the UML2 forum.


On 14.06.2016 14:52, Rafi Ehrlich wrote:
> Thanks Ed,
>
> My aim is that ,when I read the saved diagram file/s with my own code,
> this property value gives me indication when each object was added to
> the diagram relatively to others - kind of a system time stamp.
> By the way - system time stamp value would be fine.
> So I'm not concerned about deletions. For example <Call Event> object
> (appearing in the Tree View of the diagram)
> name property value is increasing and kept in the Tree View though its
> counter part ,the message object, is deleted from the diagram.
> I was thinking about two approaches (which so far didn't raise much
> success):
> Via stereotypes or plugin extension. Can you advise on that ?
>
>
Previous Topic:getline not working for eclipse.
Next Topic:Problem installing new software from Luna
Goto Forum:
  


Current Time: Wed Sep 18 09:01:31 GMT 2019

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

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

Back to the top