From be49d3a25bc867c4f523cc6ff51ed2e8df9211d7 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Sat, 4 May 2013 00:26:01 +0200 Subject: 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 --- odk/examples/java/Inspector/Inspector.java | 2 +- 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 (__writeRegistryServiceInfo). */ 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"; -- cgit v1.2.3