summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-05-04 00:26:01 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-04 12:01:11 +0200
commitbe49d3a25bc867c4f523cc6ff51ed2e8df9211d7 (patch)
tree6cea85729c07375cec0ad3f74a08caafc582a00a
parent345afe7b72fd4f7db2fa7cc4d7d00b4d0a081705 (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.java2
-rw-r--r--odk/examples/java/Inspector/UnoNode.java6
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";