Kaydet (Commit) be49d3a2 authored tarafından Michael Stahl's avatar Michael Stahl

odk: fix odd Java example that creates URLs to IDL documentation

... and even does it wrongly by appending the fragment part too early.

Change-Id: I05c790113cb219f422a9650db85c04943cde28a3
üst 345afe7b
......@@ -70,7 +70,7 @@ import com.sun.star.util.XCloseable;
* registry key (<CODE>__writeRegistryServiceInfo</CODE>).
*/
public class Inspector{
public static final String sIDLDOCUMENTSUBFOLDER = "docs/common/ref/";
public static final String sIDLDOCUMENTSUBFOLDER = "docs/idl/ref/";
/** This class implements the method of the interface XInstanceInspector.
......
......@@ -146,18 +146,18 @@ public class UnoNode{
sIDLUrl += "/";
}
if (_sClassName.equals("")){
sIDLUrl += "com/sun/star/module-ix";
sIDLUrl += "index";
sAnchor = "";
}
else{
sIDLUrl += _sClassName.replace('.', '/');
sIDLUrl += _sClassName.replace(".", "_1_1");
}
sIDLUrl += ".html";
if (sAnchor != null){
if (!sAnchor.equals("")){
sIDLUrl += "#" + sAnchor;
}
}
sIDLUrl += ".html";
URL openHyperlink = getDispatchURL(".uno:OpenHyperlink");
PropertyValue pv = new PropertyValue();
pv.Name = "URL";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment