[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: Paintorder of editparts?

Pratik Shah wrote:
Wow.  I hope this is not production-level code.  You don't actually expect
us to read and make sense of all that you've posted, do you?

Nope, but i came to the conclusion, that that is the minmal part, where everything is covered.


I took a quick look and here are a few things that caught my eye:
1) You're setting XYLayout on a Polyline and then adding other figures to
that Polyline.  Polyline is not meant to be used this way.  Look at its
Javadoc.

I will check it out.

2) In your post you said you're using a border, but I didn't see one being
used anywhere.  You're just placing children figures at desired locations,
but not actually using a Border.

Well the Edge Model are children figures of the Edges (the s is impoprtant) model and the Editpart of the edges are using the polyine to
draw a lines between the edgees (# of edge model).


Actual what i want to to is make a polyline shape, wehre each edge can
be moved removed. And what you see was my solution. But any hints on how
to do it right are welcome

regards

Max