|
Re: (Zest] Save/persist positions [message #244526 is a reply to message #244458] |
Wed, 23 July 2008 11:38  |
Eclipse User |
|
|
|
Hi.
I've the same problem.
It's possible to "freeze" the position of a node, during layout
updating, using ContraintAdapter ...
it's a little bit of code:
@Override
public void populateConstraint(Object object, LayoutConstraint constraint) {
if (constraint instanceof BasicEntityConstraint) {
BasicEntityConstraint basicEntityConstraint = (BasicEntityConstraint)
constraint;
GraphNode graphnode = (GraphNode) object;
Object data = graphnode.getData();
basicEntityConstraint.hasPreferredLocation =
!getApplyLayoutSet().contains(data);
}
}
where "!getApplyLayoutSet().contains(data);" it's my "freeze/not freeze"
condition.
Well ...
How can catch the "move node" event?? ...
The problem is same as the just signaled bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=236528
Cheers
Marco
Simon Bernard ha scritto:
> Hi,
>
> After have moved the nodes manualy, does it exist a way to persist the
> position of node in the graph ?
>
> thx.
|
|
|
Powered by
FUDForum. Page generated in 0.05307 seconds