[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Arrange all without an editor

Thank you Alex!

With LayoutService.getInstance().layout(diagram, LayoutType.DEFAULT); it works.

But if there are unvisible nodes in a diagram, there will be a nullpointer exception in LayoutService.getLayoutNodes(DiagramEditPart,List). This is why, such nodes don't have a GraphicalEditPart (I think :-)).

And an other little thing: In the Javadoc comment of layout() stands "ILayoutType". But there is no such class or interface. It should be "LayoutType", which exists.

regards
Sebastian