summaryrefslogtreecommitdiff
path: root/extensions/qa
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-12-13 10:55:21 +0000
committerKurt Zenker <kz@openoffice.org>2006-12-13 10:55:21 +0000
commita15ab18936c8d06086a8f0ba35482bce4e70acaa (patch)
tree5dc836f9f33b6d3d83bdb68fdbb360a03ef953c9 /extensions/qa
parent420e82254efd8427eb5ca84079cb0a2d168a5405 (diff)
INTEGRATION: CWS oihelp (1.2.138); FILE MERGED
2006/11/16 08:58:14 fs 1.2.138.1: #i71485# show a help section
Diffstat (limited to 'extensions/qa')
-rw-r--r--extensions/qa/integration/extensions/ObjectInspector.java20
1 files changed, 12 insertions, 8 deletions
diff --git a/extensions/qa/integration/extensions/ObjectInspector.java b/extensions/qa/integration/extensions/ObjectInspector.java
index 4b3879ae1284..9887c0d285f7 100644
--- a/extensions/qa/integration/extensions/ObjectInspector.java
+++ b/extensions/qa/integration/extensions/ObjectInspector.java
@@ -4,9 +4,9 @@
*
* $RCSfile: ObjectInspector.java,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: vg $ $Date: 2006-03-31 12:17:53 $
+ * last change: $Author: kz $ $Date: 2006-12-13 11:55:21 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -115,18 +115,22 @@ public class ObjectInspector extends complexlib.ComplexTestCase
inspectorFrame.initialize( floatingWindow );
m_desktop.getFrames().append( inspectorFrame.getXFrame() );
- // create the ObjectInspector
- XObjectInspector inspector = (XObjectInspector)UnoRuntime.queryInterface(
- XObjectInspector.class, m_orb.createInstance( "com.sun.star.inspection.ObjectInspector" ) );
-
// handler factories:
Object[] handlerFactories = new Object[] {
"com.sun.star.inspection.GenericPropertyHandler",
new ComponentFactory( ServicesHandler.class ),
new ComponentFactory( MethodHandler.class )
};
- // knit a default model to the inspector
- inspector.setInspectorModel( ObjectInspectorModel.createWithHandlerFactories( m_context, handlerFactories ) );
+ // a model
+ XObjectInspectorModel model = ObjectInspectorModel.createWithHandlerFactoriesAndHelpSection(
+ m_context, handlerFactories, 4, 4 );
+
+ // create the ObjectInspector
+ XObjectInspector inspector = com.sun.star.inspection.ObjectInspector.createWithModel(
+ m_context, model );
+
+ // add an observer which will emit help texts
+ new HelpTextProvider( inspector.getInspectorUI() );
// plug it into the frame
inspector.attachFrame( inspectorFrame.getXFrame() );