Eclipse 3.8/rap 1.5 helpSystem problem [message #896564] |
Wed, 18 July 2012 22:18 |
Ana Tatavu Messages: 10 Registered: July 2009 |
Junior Member |
|
|
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.
Ana
|
|
|
Re: Eclipse 3.8/rap 1.5 helpSystem problem [message #896607 is a reply to message #896564] |
Thu, 19 July 2012 07:06 |
Ivan Furnadjiev Messages: 2429 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
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/
|
|
|
|
Re: Eclipse 3.8/rap 1.5 helpSystem problem [message #896729 is a reply to message #896709] |
Thu, 19 July 2012 14:05 |
Ivan Furnadjiev Messages: 2429 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Ana,
I didn't investigate what is the problem, but from reading the code of
the proposed attached patch, it modifies *only* the original Eclipse
help bundles (not part of the RAP framework) in order to work correctly
with RAP. Without further investigation, I couldn't say if it's possible
to make the help system works again without these modifications. Are you
using the same Eclipse Help bundles that worked before, but not with 1.5?
Best,
Ivan
On 7/19/2012 4:11 PM, Ana Mising name wrote:
> Do you know when the fix will be incorporated into RAP?
> I am not sure if my company policy allows shipping with a patch
> applied outside of RAP itself development.
> Thank you,
> Ana
>
--
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.03452 seconds