Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Centered FlowLayout stopped working?
Centered FlowLayout stopped working? [message #244410] Thu, 17 July 2008 12:18
Eclipse UserFriend
Originally posted by: n.n.com

I'm using GMF to generate the EditParts.
It seems FlowLayout with:
setMinorAlignment(FlowLayout.ALIGN_CENTER);
stopped working in the latest GEF/GMF.

I can't get the child figures to appear in the center of a vertical column.

Here is the generated code:
FlowLayout layoutThis = new FlowLayout();
layoutThis.setStretchMinorAxis(false);
layoutThis.setMinorAlignment(FlowLayout.ALIGN_CENTER);

layoutThis.setMajorAlignment(FlowLayout.ALIGN_CENTER);
layoutThis.setMajorSpacing(5);
layoutThis.setMinorSpacing(5);
layoutThis.setHorizontal(false);

this.setLayoutManager(layoutThis);
Previous Topic:Problem saving Draw2d diagram to image from within plugin (works standalone)
Next Topic:Resizing Images
Goto Forum:
  


Current Time: Sun Dec 21 00:37:15 GMT 2014

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

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