Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/IUGeneralInfoPropertyPage.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/IUGeneralInfoPropertyPage.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/IUGeneralInfoPropertyPage.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/IUGeneralInfoPropertyPage.java
index 37f70c2c6..9be99dd25 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/IUGeneralInfoPropertyPage.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/IUGeneralInfoPropertyPage.java
@@ -111,13 +111,12 @@ public class IUGeneralInfoPropertyPage extends IUPropertyPage {
}
private void addField(Composite parent, String property, String value) {
-
if (value != null && value.length() > 0) {
Label label = new Label(parent, SWT.NONE);
label.setText(property);
Text text = new Text(parent, SWT.WRAP | SWT.READ_ONLY);
- text.setText(getEscapedString(value));
+ text.setText(value);
// Needed to get the right color on the Mac.
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=258112
text.setBackground(text.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
@@ -125,17 +124,4 @@ public class IUGeneralInfoPropertyPage extends IUPropertyPage {
text.setLayoutData(gd);
}
}
-
- private String getEscapedString(String value) {
- StringBuffer result = new StringBuffer(value.length() + 10);
- for (int i = 0; i < value.length(); ++i) {
- char c = value.charAt(i);
- if ('&' == c) {
- result.append("&&"); //$NON-NLS-1$
- } else {
- result.append(c);
- }
- }
- return result.toString();
- }
}

Back to the top