Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2007-02-21 22:49:21 +0000
committerChris Goldthorpe2007-02-21 22:49:21 +0000
commit98345a942071e5c5db98fd9c25790496cb7c48a8 (patch)
tree05934844a88830f7c7848edd7ba69658e96f0d46 /org.eclipse.ui.cheatsheets/src/org
parentc470c03bc8d0112a8280d30c04ad38ee2b6c71c6 (diff)
downloadeclipse.platform.ua-98345a942071e5c5db98fd9c25790496cb7c48a8.tar.gz
eclipse.platform.ua-98345a942071e5c5db98fd9c25790496cb7c48a8.tar.xz
eclipse.platform.ua-98345a942071e5c5db98fd9c25790496cb7c48a8.zip
Bug 137217 - [CheatSheet] Cannot copy and paste text from cheat sheet subitem labels
Diffstat (limited to 'org.eclipse.ui.cheatsheets/src/org')
-rw-r--r--org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CoreItem.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CoreItem.java b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CoreItem.java
index 2c548112b..359c5fb33 100644
--- a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CoreItem.java
+++ b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CoreItem.java
@@ -25,6 +25,7 @@ import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.forms.events.HyperlinkAdapter;
import org.eclipse.ui.forms.events.HyperlinkEvent;
@@ -146,7 +147,8 @@ public class CoreItem extends ViewItem {
} else {
labelText = sub.getLabel();
}
- Label subitemLabel = page.getToolkit().createLabel(buttonComposite, ViewUtilities.escapeForLabel(labelText), SWT.WRAP);
+ Text subitemLabel = new Text(buttonComposite, SWT.WRAP);
+ subitemLabel.setText(labelText);
TableWrapData labelData = new TableWrapData();
labelData.indent = LABEL_MARGIN;
subitemLabel.setLayoutData(labelData);

Back to the top