summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-04-04 08:23:07 +0000
committerRüdiger Timm <rt@openoffice.org>2007-04-04 08:23:07 +0000
commit533a9afb753ad72ae962169fe1c29f41ab25a985 (patch)
treea25b4cdf74f7d73d74c255c477aaaa7f0395e76d /odk
parent77d976bf97f3c55a6e0df006ad26d9cc482a8e2c (diff)
INTEGRATION: CWS sdkinspector3 (1.3.6); FILE MERGED
2007/02/20 18:24:48 bc 1.3.6.3: #i74649# Code with isPopupTrigger() improved 2007/02/20 11:17:58 bc 1.3.6.2: #i74649#several changes 2007/02/19 09:43:48 bc 1.3.6.1: #i74649#SourceCode generation improved
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/java/Inspector/UnoNode.java28
1 files changed, 17 insertions, 11 deletions
diff --git a/odk/examples/java/Inspector/UnoNode.java b/odk/examples/java/Inspector/UnoNode.java
index af56de681d1d..98f1eb3ab6b6 100644
--- a/odk/examples/java/Inspector/UnoNode.java
+++ b/odk/examples/java/Inspector/UnoNode.java
@@ -2,9 +2,9 @@
*
* $RCSfile: UnoNode.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2007-01-30 08:14:43 $
+ * last change: $Author: rt $ $Date: 2007-04-04 09:23:07 $
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
@@ -139,28 +139,34 @@ public class UnoNode{
sLabel = _sLabel;
}
- public void openIdlDescription(String _sClassName){
+ public void openIdlDescription(String _sIDLUrl, String _sClassName, String _sAnchor){
try{
- String sAnchor = getAnchor();
- String sFallbackUrl = "http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix";
- String sIdlUrl = "http://api.openoffice.org/docs/common/ref/";
+ String sIDLUrl = _sIDLUrl;
+ String sAnchor = ""; // TODO find out how the Anchor may be set at the html file; //_sAnchor;
+ boolean bExists = Introspector.getIntrospector().getXSimpleFileAccess().exists(sIDLUrl);
+ if (sIDLUrl.equals("") || (!bExists)){
+ sIDLUrl = "http://api.openoffice.org/" + Inspector.sIDLDOCUMENTSUBFOLDER;
+ }
+ if (!sIDLUrl.endsWith("/")){
+ sIDLUrl += "/";
+ }
if (_sClassName.equals("")){
- sIdlUrl = sFallbackUrl;
+ sIDLUrl += "com/sun/star/module-ix";
sAnchor = "";
}
else{
- sIdlUrl += _sClassName.replace('.', '/');
+ sIDLUrl += _sClassName.replace('.', '/');
}
- sIdlUrl += ".html";
if (sAnchor != null){
if (!sAnchor.equals("")){
- sIdlUrl += "#" + sAnchor;
+ sIDLUrl += "#" + sAnchor;
}
}
+ sIDLUrl += ".html";
URL openHyperlink = getDispatchURL(".uno:OpenHyperlink");
PropertyValue pv = new PropertyValue();
pv.Name = "URL";
- pv.Value = sIdlUrl;
+ pv.Value = sIDLUrl;
getXDispatcher(openHyperlink).dispatch(openHyperlink, new PropertyValue[] {pv});
} catch(Exception exception) {
exception.printStackTrace(System.out);