Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » LifeLine Figure - Sequence Diagram
LifeLine Figure - Sequence Diagram [message #213515] Sat, 13 December 2008 16:38 Go to next message
Danilo is currently offline DaniloFriend
Messages: 6
Registered: July 2009
Junior Member
Hello,

My problem is... i am developing a sequence Diagram and i need build a
complete LifeLine figure.
I have this facts:

i have a LifeLine Figure how Figure 1.

http://img90.imageshack.us/img90/4543/lifeline1zd3.th.jpg
Figure 1;

I need put a "Activate Bar" how show the figure 2.

http://img142.imageshack.us/my.php?image=lifelinewy1.jpg
FIGURE 2

Details: The Lifeline figure is a rectangule Geral, with 2 rectangule
inside, one for "head and name" other custimized for "Line".
rectangule Geral has: border Layout.
Rectangule "head and name" has Stack Layout and Border Layout Data
Beggining. Rectangule "Line" has Stack Layout and Border Layout Data
Center.

The Rectangule "Activate Bar" is normal rectangule with minimium and
maximun dimension size features seted.

In the Mapping, i try to put a child reference of "Activate Bar" inside
node mapping of Lifeline, then this error is showed when i try paint the
Activate Bar.
"Could not open the editor: org.eclipse.draw2d.geometry.Rectangle cannot
be cast to java.lang.Integer"


ps.: I dont have problem with LifeLine figure, but with activate Bar
figure.

Any help is appreciate.

Greetings,
Danilo
Re: LifeLine Figure - Sequence Diagram [message #213545 is a reply to message #213515] Mon, 15 December 2008 11:14 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Danilo,

> "Could not open the editor: org.eclipse.draw2d.geometry.Rectangle
> cannot be cast to java.lang.Integer"
Any more information in .log file? (exception trace?)

-----------------
Alex Shatalin
Re: LifeLine Figure - Sequence Diagram [message #213560 is a reply to message #213545] Mon, 15 December 2008 11:46 Go to previous messageGo to next message
Danilo is currently offline DaniloFriend
Messages: 6
Registered: July 2009
Junior Member
Hello Alex,


Its all information in .log;

the .log archive is in:
http://www.comp.ufscar.br/~daniloao/erro.log

I will try descrive better my idea to stay clear...
The activate bar need to stay fixes in Line of LifeLine figure, then i
need customize the GMF for this...

Greetings,
Danilo
Re: LifeLine Figure - Sequence Diagram [message #213567 is a reply to message #213560] Mon, 15 December 2008 12:02 Go to previous messageGo to next message
Danilo is currently offline DaniloFriend
Messages: 6
Registered: July 2009
Junior Member
hello,

Complementary information...
I can paint a Lifeline Figure in diagram, but when i try put the "Activate
Bar" in LifeLine figure, the Diagram brakes... and if i try close and open
the diagram, the error above is showed...

[]s,
Danilo
Re: LifeLine Figure - Sequence Diagram [message #213590 is a reply to message #213560] Mon, 15 December 2008 13:25 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Danilo,

>java.lang.ClassCastException: org.eclipse.draw2d.geometry.Rectangle cannot
be cast to java.lang.Integer
> at org.eclipse.draw2d.BorderLayout.setConstraint(BorderLayout.j ava:273)
The problem is – you are trying to add child element into the figure with
BorderLayout (“Geral” rectangle).

By default Rectangle instance is used as a constraint in
>at org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeEditPart.r efreshBounds(ShapeEditPart.java:177)

So, you have to either modify refreshBounds() of the EditPart representing
parent element (object on sequence diagram) or specify no layout managers
for the figure used as a container of child elements (I think you can compose
“lifeline” from several transparent rectangles securing the line drawn in
the center of figure and providing one more empty rectangle filling whole
space without any layout manager inside to be used as a child container).

-----------------
Alex Shatalin
Previous Topic:Problem with semantic container of a connection
Next Topic:Compartment Size
Goto Forum:
  


Current Time: Fri Apr 26 16:20:56 GMT 2024

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

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

Back to the top