Saturday, July 03, 2021

Glimmer DSL for SWT Hello Composite, Layout, ToolBar, and CoolBar!

Glimmer DSL for SWT v4.20.0.1 and v4.20.0.2 bring the following Hello samples aboard:

  • Hello, Composite!
  • Hello, Layout!
  • Hello, Tool Bar!
  • Hello, Cool Bar!
Additionally, they include built-in automation for creating tool_bar and cool_bar widgets, obviating the need for doing complex object wiring when nesting a combo in a tool bar and calculating preferred sizes when adding toolbars to a cool bar.


This sample demonstrates the composite widget, which is simply used as a container for visual layout and organization.



Hello Composite


This sample demonstrates the standard 3 layouts in SWT (though one can write their own for very advanced applications): fill_layout, row_layout, and grid_layout


Hello Layout Tab1

Hello Layout Tab2

Hello Layout Tab3

Hello Layout Tab4

Hello Layout Tab5

Hello Layout Tab6

Hello Layout Tab7


This sample demonstrates the use of tool_bar & tool_item as well as being able to nest combo in a tool_bar.




Hello Tool Bar

Hello Tool Bar Cut

Hello Tool Bar Copy

Hello Tool Bar Paste

Hello Tool Bar Font Size


This sample demonstrates the use of cool_bar that can contain multiple reorganizable tool_bar widgets




Hello Cool Bar

Hello Cool Bar Reorg1

Hello Cool Bar Reorg2

Hello Cool Bar Reorg3

Happy Glimmering!

No comments: