}]]>2006-09-05T20:21:07-00:00Re: Right-justified layout
https://www.eclipse.org/forums/index.php/mv/msg/71147/222464/#msg_222464
Originally posted by: mateu.yabar.justinmind.com
You can use a grid Layout (crete a row with two cells a first one empty and
with grap horizontal and put all the data in the second cell). The grid
Layout can be found at https://bugs.eclipse.org/bugs/show_bug.cgi?id=71684
Mateu Y]]>2006-09-06T07:36:29-00:00Re: Right-justified layout
https://www.eclipse.org/forums/index.php/mv/msg/71147/222477/#msg_222477
Originally posted by: jricker.progess.com
That's fine. I will try that, but it seems a lot for a simple procedure. I
want the items layed out right justified as opposed to left-justified.
Shouldn't a simpler layout do thi? Is the FlowLayout supposed to behave as I
expect? Is this a bug?
"Mateu Y]]>2006-09-06T12:32:56-00:00Re: Right-justified layout
https://www.eclipse.org/forums/index.php/mv/msg/71147/222496/#msg_222496
Originally posted by: none.ibm.com
Try asking on the GMF newsgroup since you are using GMF figures and layouts.
If you were using just GEF, you would create a ToolbarLayout, and call
setMinorAlignment(ALIGN_BOTTOMRIGHT)
"Ricker" <jricker@progess.com> wrote in message
news:edkm87$7of$1@utils.eclipse.org...
>I want to layout the objects in the compartment as a row right-justified. I
>keep getting a stack of objects. What gives?
>
> public IFigure createFigure() {
>
> ResizableCompartmentFigure result = (ResizableCompartmentFigure) super
>
> .createFigure();
>
>
> // ToolbarLayout layout = new ToolbarLayout(true);
>
> // layout.setVertical(false);
>
> // layout.setMinorAlignment(ToolbarLayout.ALIGN_BOTTOMRIGHT);
>
> FlowLayout layout = new FlowLayout(true);
>
> layout.setMajorAlignment(FlowLayout.ALIGN_RIGHTBOTTOM);
>
>
> result.setLayoutManager(layout);
>
> result.setTitleVisibility(false);
>
> return result;
>
> }
>
>]]>2006-09-06T16:44:53-00:00