CopyableLabel: Allow setting the preview text for the label

When Gerrit Code Review puts the entire SSH host key into the
copyable label it causes the entire layout to fall apart as
the text is simply too wide for the screen, and the Clippy
Flash movie runs off the edge.

Instead allow the application to provide its own abbreviation
string for the preview you click on.

Change-Id: I5aaaa7b4b41c2f461671955a7d82f09107e0e0a5
Signed-off-by: Shawn O. Pearce <>
1 file changed
tree: 3537431b96a7690cc38dc8c3f92a0bdaf64e78bd
  1. .gitignore
  2. .settings/
  4. GoogleFormat.xml
  5. pom.xml
  6. src/