Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "PDE/Incubator/Picasso"

< PDE‎ | Incubator
Line 15: Line 15:
  
 
[[Image:Picasso.png]]
 
[[Image:Picasso.png]]
 +
 +
=== Tips ===
 +
 +
By painting the workbench with Picasso you can easily spot layout issues such as:
 +
 +
* Unnecessary margin padding on <code>Composite</code> widgets.  This is typically caused by using <code>GridLayout</code> and not setting the <code>marginWidth</code> and <code>marginHeight</code> fields to <code>0</code>.
 +
* Radio buttons and checkboxes that stretch to consume all avaiable horzontal whitespace. This results in the whitespace to the right of the label being clickable. Doing this can result in the user accidentally selecting a radio button or toggling a checkbox by simply giving focus to the UI.  As with push buttons, radio buttons and checkboxes (they're buttons too) should generally not stretch.
 +
* Inappropriate stretching and whitespace consumption.

Revision as of 11:10, 7 May 2008

Work Area

The goal of Picasso is to provide a utility to help UI debugging. Picasso does this by painting the workbench in a way to aid debugging.

Developers

  • Chris Aniszczyk
  • Simon Archer

Plug-ins

Painting with Picasso

To use Picasso, simply check it out of CVS and then launch with the tracing options enabled:

Picasso.png

Tips

By painting the workbench with Picasso you can easily spot layout issues such as:

  • Unnecessary margin padding on Composite widgets. This is typically caused by using GridLayout and not setting the marginWidth and marginHeight fields to 0.
  • Radio buttons and checkboxes that stretch to consume all avaiable horzontal whitespace. This results in the whitespace to the right of the label being clickable. Doing this can result in the user accidentally selecting a radio button or toggling a checkbox by simply giving focus to the UI. As with push buttons, radio buttons and checkboxes (they're buttons too) should generally not stretch.
  • Inappropriate stretching and whitespace consumption.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.