Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348906

Summary: MigLayout: add support for docking
Product: z_Archived Reporter: Konstantin Scheglov <Konstantin.Scheglov>
Component: WindowBuilderAssignee: Konstantin Scheglov <Konstantin.Scheglov>
Status: CLOSED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: clayberg
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Scheglov CLA 2011-06-09 10:35:01 EDT
Some thoughts.

  MigLayout combines features of many layout managers, such as "grid", "absolute" and BorderLayout.
  We have some support for docking in our MigLayout model, but this support is not used yet in MigLayoutEditPolicy.
  As you understand, in compare to "grid" features, docking is very easy to implement, problem is only in the way how to tell policy that now we want to use docking, or "absolute", instead of "grid". May be some string should be pressed, such as "`A" (tilde A) for "absolute", "`D" for docking and "`G" for grid. We can not use just A/D/G because D is used in "grid" to set default constraints. This mode (if not default - grid) can be displayed somewhere (for example in top-left corner of container). Of course this mode will be lost after undo or reopening editor, it is temporary, but I think that this is enough...
Comment 1 Konstantin Scheglov CLA 2011-06-09 10:35:30 EDT
> Yes. A small indicator showing the mode that can be clicked on to change it.
> Mode keys are good, but there should always be a graphical backup.

 Alexander suggests to put this indication into top-left corner of
_headers_ part of design canvas.
 Currently this corner is empty. I will try to put there FigureCanvas
and allow LayoutEditPolicy to put any Figure on this FigureCanvas.
 If this will not work, I will put this indicator just at top-left
corner of Container with MigLayout (outside of Container). not so
nice, but easy.
Comment 2 Wim Jongman CLA 2021-02-27 12:56:57 EST
Closing. Please reopen if this is still an issue.