Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2009-12-08 20:46:03 +0000
committerChris Goldthorpe2009-12-08 20:46:03 +0000
commitdd6747c647ab6ae467c9a08e6d8eeb8a545a551d (patch)
tree810060fc8ecbd379506af75e0c063d79d7d9e55f
parent76065bc2fd0563e85c435a1a2a29952c8a53ccd6 (diff)
downloadeclipse.platform.ua-dd6747c647ab6ae467c9a08e6d8eeb8a545a551d.tar.gz
eclipse.platform.ua-dd6747c647ab6ae467c9a08e6d8eeb8a545a551d.tar.xz
eclipse.platform.ua-dd6747c647ab6ae467c9a08e6d8eeb8a545a551d.zip
Bug 297245 – [Help] Remote Error Page does not honor RTL
-rw-r--r--org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/StatusProducer.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/StatusProducer.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/StatusProducer.java
index 5624f33a7..b76e5c04f 100644
--- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/StatusProducer.java
+++ b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/StatusProducer.java
@@ -25,6 +25,7 @@ import org.eclipse.help.IHelpContentProducer;
import org.eclipse.help.internal.base.HelpBasePlugin;
import org.eclipse.help.internal.base.remote.RemoteStatusData;
import org.eclipse.help.internal.protocols.HelpURLStreamHandler;
+import org.eclipse.help.internal.util.ProductPreferences;
import org.eclipse.help.internal.webapp.data.WebappPreferences;
@@ -48,8 +49,6 @@ public class StatusProducer implements IHelpContentProducer {
+ tab(2)+"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n"; //$NON-NLS-1$
private static final String END_HEAD_HTML = tab(1)+"</head>\n"; //$NON-NLS-1$
-
- private static final String BEGIN_BODY_HTML = tab(1)+"<body>\n"; //$NON-NLS-1$
private static final String END_BODY_HTML = tab(2)+"</div>\n"+tab(1)+"</body>\n</html>"; //$NON-NLS-1$ //$NON-NLS-2$
@@ -220,7 +219,15 @@ public class StatusProducer implements IHelpContentProducer {
*/
private String getBeginHtmlBody()
{
- return BEGIN_BODY_HTML + '\n'
+ String body = tab(1);
+
+ if (ProductPreferences.isRTL())
+ body += "<body dir=\"rtl\">"; //$NON-NLS-1$
+ else
+ body += "<body>"; //$NON-NLS-1$
+
+
+ return body + '\n'
+ tab(2) + "<div id=\"banner\"><img src=\"PLUGINS_ROOT/org.eclipse.help.base/doc/help_banner.jpg\" alt=\"Help banner\" width=\"1600\" height=\"36\"></div>\n" //$NON-NLS-1$
+ tab(2) + "<div id=\"content\">\n"; //$NON-NLS-1$
}

Back to the top