summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/GUI/UnoDialogSample.java')
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoDialogSample.java21
1 files changed, 0 insertions, 21 deletions
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
index 5bf285392333..3c52f56fd10e 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
@@ -70,10 +70,8 @@ import com.sun.star.awt.XToolkit;
import com.sun.star.awt.XTopWindow;
import com.sun.star.awt.XWindow;
import com.sun.star.awt.XWindowPeer;
-import com.sun.star.beans.PropertyValue;
import com.sun.star.beans.XMultiPropertySet;
import com.sun.star.beans.XPropertySet;
-import com.sun.star.configuration.theDefaultProvider;
import com.sun.star.container.XIndexContainer;
import com.sun.star.container.XNameAccess;
import com.sun.star.container.XNameContainer;
@@ -184,25 +182,6 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
}
- private XNameAccess getRegistryKeyContent(String _sKeyName){
- try {
- PropertyValue[] aNodePath = new PropertyValue[1];
- XMultiServiceFactory xMSFConfig = theDefaultProvider.get(m_xContext);
- aNodePath[0] = new PropertyValue();
- aNodePath[0].Name = "nodepath";
- aNodePath[0].Value = _sKeyName;
- Object oNode = xMSFConfig.createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", aNodePath);
- XNameAccess xNameAccess = UnoRuntime.queryInterface(XNameAccess.class, oNode);
- return xNameAccess;
- } catch (Exception exception) {
- exception.printStackTrace(System.err);
- return null;
- }
- }
-
-
-
-
protected void createDialog(XMultiComponentFactory _xMCF) {
try {
Object oDialogModel = _xMCF.createInstanceWithContext("com.sun.star.awt.UnoControlDialogModel", m_xContext);