[104700] Header message hardcoded :
diff --git a/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/Messages.properties b/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/Messages.properties
index 5fdfe87..6678e7d 100644
--- a/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/Messages.properties
+++ b/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/Messages.properties
@@ -30,7 +30,7 @@
# --------------- RequestResponse Viewers ---------------
-headerLabel=Header
+headerLabel=Header: {0}
imageViewInvalid=<Not a valid image file>
xmlViewInvalid=<Not a valid XML file>
htmlViewInvalid=<Not a valid HTML file>
diff --git a/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/viewers/HeaderViewer.java b/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/viewers/HeaderViewer.java
index c8fe413..9edfbc1 100644
--- a/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/viewers/HeaderViewer.java
+++ b/plugins/org.eclipse.wst.internet.monitor.ui/monitorui/org/eclipse/wst/internet/monitor/ui/internal/viewers/HeaderViewer.java
@@ -11,6 +11,7 @@
package org.eclipse.wst.internet.monitor.ui.internal.viewers;
import org.eclipse.jface.resource.JFaceResources;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -168,21 +169,20 @@
}
}
- if (displayHeader) {
+ if (displayHeader)
headerText.setText(out);
- } else {
+ else {
String lineSeparator = System.getProperty("line.separator");
int index = out.indexOf(lineSeparator);
- if(index > 0)
- headerLabel.setText(Messages.headerLabel + ": " + out.substring(0, index));
+ if (index > 0)
+ headerLabel.setText(NLS.bind(Messages.headerLabel, out.substring(0, index)));
else
- headerLabel.setText(Messages.headerLabel + ": " + out);
+ headerLabel.setText(NLS.bind(Messages.headerLabel, out));
}
}
/**
- * Dispose the
- *
+ * Dispose the header.
*/
public void dispose() {
headerComp.dispose();