Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2011-07-19 21:52:25 +0000
committerChris Goldthorpe2011-07-19 21:52:25 +0000
commit1d0b9170c3128ef67deae4f4a420934516bf4879 (patch)
tree8e6bb21d190cee1c7659cd5ef1b6a1766f6ea0d7 /org.eclipse.help.webapp
parentefba14c9a0db963a4225cc1d8c3afe7fe2b2fa9f (diff)
downloadeclipse.platform.ua-1d0b9170c3128ef67deae4f4a420934516bf4879.tar.gz
eclipse.platform.ua-1d0b9170c3128ef67deae4f4a420934516bf4879.tar.xz
eclipse.platform.ua-1d0b9170c3128ef67deae4f4a420934516bf4879.zip
Bug 304653 - [Webapp][Bidi] Breadcrumbs in Arabic topics display nodes in wrong order
Diffstat (limited to 'org.eclipse.help.webapp')
-rw-r--r--org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/BreadcrumbsFilter.java18
1 files changed, 15 insertions, 3 deletions
diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/BreadcrumbsFilter.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/BreadcrumbsFilter.java
index 9ae199827..ea787ac5a 100644
--- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/BreadcrumbsFilter.java
+++ b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/BreadcrumbsFilter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2009 IBM Corporation and others.
+ * Copyright (c) 2007, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -108,7 +108,12 @@ public class BreadcrumbsFilter implements IFilter {
StringBuffer pathBuf = new StringBuffer();
ITopic topic = HelpPlugin.getTocManager().getTocs(locale)[path[0]].getTopic(null);
pathBuf.append(path[0]);
- buf.append("<div class=\"help_breadcrumbs\">"); //$NON-NLS-1$
+
+ boolean isMirrored = org.eclipse.help.internal.util.ProductPreferences.isRTL();
+ if(isMirrored)
+ buf.append("\u202B"); //$NON-NLS-1$ //append RLE marker at the beginning
+
+ buf.append("<div class=\"help_breadcrumbs\">"); //$NON-NLS-1$
for (int i=0;i<path.length-1;++i) {
@@ -134,7 +139,10 @@ public class BreadcrumbsFilter implements IFilter {
// add separator
if (i < path.length - 2 || path.length == 2) {
// always add if there's only one link
- buf.append(" > "); //$NON-NLS-1$
+ if(isMirrored)
+ buf.append(" \u200F> "); //$NON-NLS-1$ //append RLM marker before >
+ else
+ buf.append(" > "); //$NON-NLS-1$
}
// move to the next topic in the path
@@ -143,6 +151,10 @@ public class BreadcrumbsFilter implements IFilter {
pathBuf.append(path[i + 1]);
}
buf.append("</div>"); //$NON-NLS-1$
+
+ if(isMirrored)
+ buf.append("\u202C"); //$NON-NLS-1$ //append PDF marker at the end
+
return buf.toString();
}
}

Back to the top