diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-05-04 00:26:01 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-06-04 12:01:11 +0200 |
commit | be49d3a25bc867c4f523cc6ff51ed2e8df9211d7 (patch) | |
tree | 6cea85729c07375cec0ad3f74a08caafc582a00a | |
parent | 345afe7b72fd4f7db2fa7cc4d7d00b4d0a081705 (diff) |
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
-rw-r--r-- | odk/examples/java/Inspector/Inspector.java | 2 | ||||
-rw-r--r-- | odk/examples/java/Inspector/UnoNode.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/java/Inspector/Inspector.java b/odk/examples/java/Inspector/Inspector.java index 137a08019f70..b1b3851191e6 100644 --- a/odk/examples/java/Inspector/Inspector.java +++ b/odk/examples/java/Inspector/Inspector.java @@ -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. diff --git a/odk/examples/java/Inspector/UnoNode.java b/odk/examples/java/Inspector/UnoNode.java index 76592251405f..7846dbd6a649 100644 --- a/odk/examples/java/Inspector/UnoNode.java +++ b/odk/examples/java/Inspector/UnoNode.java @@ -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"; |