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; ...@@ -70,7 +70,7 @@ import com.sun.star.util.XCloseable;
* registry key (<CODE>__writeRegistryServiceInfo</CODE>). * registry key (<CODE>__writeRegistryServiceInfo</CODE>).
*/ */
public class Inspector{ 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. /** This class implements the method of the interface XInstanceInspector.
......
...@@ -146,18 +146,18 @@ public class UnoNode{ ...@@ -146,18 +146,18 @@ public class UnoNode{
sIDLUrl += "/"; sIDLUrl += "/";
} }
if (_sClassName.equals("")){ if (_sClassName.equals("")){
sIDLUrl += "com/sun/star/module-ix"; sIDLUrl += "index";
sAnchor = ""; sAnchor = "";
} }
else{ else{
sIDLUrl += _sClassName.replace('.', '/'); sIDLUrl += _sClassName.replace(".", "_1_1");
} }
sIDLUrl += ".html";
if (sAnchor != null){ if (sAnchor != null){
if (!sAnchor.equals("")){ if (!sAnchor.equals("")){
sIDLUrl += "#" + sAnchor; sIDLUrl += "#" + sAnchor;
} }
} }
sIDLUrl += ".html";
URL openHyperlink = getDispatchURL(".uno:OpenHyperlink"); URL openHyperlink = getDispatchURL(".uno:OpenHyperlink");
PropertyValue pv = new PropertyValue(); PropertyValue pv = new PropertyValue();
pv.Name = "URL"; 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