Computing help URLs [message #621796] |
Mon, 03 November 2008 22:47 |
Amit Mookerjee Messages: 47 Registered: July 2009 |
Member |
|
|
Hi,
I have made an eclipse plugin and facing the following issues in computing
the URL:
1. URL for documents relative paths : I have a help plugin that appears to
work when the document I refer to is located below the plug-in directory.
So when I compute the 'href' argument in
PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e(href);
in the following way:
href = "/org.eclipse.rtsc.xdctools.help/" + "cdoc/" +
elemName.replace('.', '/') + "/package.html";
help shows the document located in the 'cdoc' sub-directory located in the
plugin directory.
However, if the documents are kept at a level higher, the document does
not showup.
In other words computing 'href' in the following way
href = "/org.eclipse.rtsc.xdctools.help/" + "../docs/cdoc/" +
elemName.replace('.', '/') + "/package.html";
does not work. How do I compute 'href' when my docs are located above the
plugin directory?
2. URL for documents in zipped files: If I have the sub-directory 'cdoc'
mentioned in part 1 zipped up, then the following computation of 'href'
does not work
href = "/org.eclipse.rtsc.xdctools.help/" + "docs.zip!/cdoc/" +
elemName.replace('.', '/') + "/package.html";
What would be the right way to compute the URL for documents residing
within a zipped file?
|
|
|
Powered by
FUDForum. Page generated in 0.01622 seconds