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
(Painting with Picasso)
(Replaced content with "= This page is out-of-data, Picasso has been migrated to PDE = See https://bugs.eclipse.org/bugs/show_bug.cgi?id=513366")
 
(13 intermediate revisions by 7 users not shown)
Line 1: Line 1:
=== Work Area ===
+
= This page is out-of-data, Picasso has been migrated to PDE =
  
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.
+
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=513366
 
+
=== Developers ===
+
* Chris Aniszczyk
+
* Simon Archer
+
 
+
=== Plug-ins ===
+
* [http://dev.eclipse.org/viewcvs/index.cgi/pde-incubator/picasso/plugins/org.eclipse.pde.picasso/ org.eclipse.pde.picasso]
+
 
+
=== Painting with Picasso ===
+
 
+
To use Picasso, simply check it out of CVS and then launch with the tracing options enabled:
+
 
+
* <code>paint</code> - Check this option to enable Picasso.  When checked Picasso will paint the workbench.
+
* <code>paint/extraCompositeMargin</code> - The value of this option is used to pad every <code>Composite</code> object's margin width and height.  Typically the default value of <code>0</code> is what you want, but a value of <code>5</code> or <code>10</code> is helpful to <i>explode</i> a view to reveal the child/parent widget relationships.
+
* <code>paint/toolTip</code> - Check this option to enable custom tool tips that describe the layout of each widget.  While useful, it can be helpful to disable tool tips since they are sometimes large and distracting, especially when all you care about is the way the layout looks.
+
<br/>
+
[[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 available 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.
+

Latest revision as of 13:49, 1 December 2017

This page is out-of-data, Picasso has been migrated to PDE

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=513366

Back to the top