Eclipse 3.8/rap 1.5 helpSystem problem [message #896564] |
Wed, 18 July 2012 18:18  |
Eclipse User |
|
|
|
I switched recently from RAP 1.4(Eclipse 3.7,jvm 1.6) to RAP 1.5 (eclipse 3.8, jvm 1.7)
In the 1.4 version of our RAP product help system is working fine, in 1.5 doesn't work anymore.
The help files are organized..
Plugin...
-src
-help
- html
Toc.xml
The extension point
<extension
point="org.eclipse.help.toc">
<toc
file="help/toc.xml"
primary="true">
</toc>
</extension>
The help is invoked by opening a browser:
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchBrowserSupport browserSupport = workbench.getBrowserSupport();
try
{
IWebBrowser browser = browserSupport.createBrowser("helpBrowser"); //$NON-NLS-1$
browser.openURL(getUrl());
}
catch (PartInitException e)
{
Activator.getDefault().logError(getClass(), e);
}
private static URL getUrl()
{
StringBuffer sb = RWT.getRequest().getRequestURL();
String urlString = sb.toString();
urlString = StringUtils.removeEnd(urlString, ApplicationConstants.APPLICATION_ROOT);
urlString = urlString + "/index.jsp";//$NON-NLS-1$
try
{
return new URL(urlString);
}
catch (MalformedURLException e)
{
throw new IllegalArgumentException("Failed to construct URL.");
}
}
When opening the url we got 404 message in RAP 1.5 only.
What can I do about it,
Thank you.
|
|
|
Re: Eclipse 3.8/rap 1.5 helpSystem problem [message #896607 is a reply to message #896564] |
Thu, 19 July 2012 03:06   |
Eclipse User |
|
|
|
Hi Ana,
we have a bug opened for this issue:
383867: The eclipse help system (helpSupport) UI does not work properly
in RAP 1.5
https://bugs.eclipse.org/bugs/show_bug.cgi?id=383867
Austin provided a help bundle patch in comment#2.
HTH,
Ivan
On 7/19/2012 1:18 AM, Ana Mising name wrote:
> I switched recently from RAP 1.4(Eclipse 3.7,jvm 1.6) to RAP 1.5
> (eclipse 3.8, jvm 1.7)
> In the 1.4 version of our RAP product help system is working fine, in
> 1.5 doesn't work anymore.
> The help files are organized..
> Plugin...
> -src
> -help
> - html
> Toc.xml
> The extension point <extension
> point="org.eclipse.help.toc">
> <toc
> file="help/toc.xml"
> primary="true">
> </toc>
>
> </extension>
> The help is invoked by opening a browser:
> IWorkbench workbench = PlatformUI.getWorkbench();
> IWorkbenchBrowserSupport browserSupport =
> workbench.getBrowserSupport();
> try
> {
> IWebBrowser browser =
> browserSupport.createBrowser("helpBrowser"); //$NON-NLS-1$
> browser.openURL(getUrl());
> }
> catch (PartInitException e)
> {
> Activator.getDefault().logError(getClass(), e);
> }
> private static URL getUrl()
> {
> StringBuffer sb = RWT.getRequest().getRequestURL();
> String urlString = sb.toString();
> urlString = StringUtils.removeEnd(urlString,
> ApplicationConstants.APPLICATION_ROOT);
> urlString = urlString + "/index.jsp";//$NON-NLS-1$
> try
> {
> return new URL(urlString);
> }
> catch (MalformedURLException e)
> {
> throw new IllegalArgumentException("Failed to construct
> URL."); }
> }
>
> When opening the url we got 404 message in RAP 1.5 only.
>
> What can I do about it,
> Thank you.
>
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04907 seconds