summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/ScriptingFramework/ScriptSelector/ScriptSelector/ScriptSelector.java30
1 files changed, 0 insertions, 30 deletions
diff --git a/odk/examples/DevelopersGuide/ScriptingFramework/ScriptSelector/ScriptSelector/ScriptSelector.java b/odk/examples/DevelopersGuide/ScriptingFramework/ScriptSelector/ScriptSelector/ScriptSelector.java
index 7382a7d42762..b6e118301a37 100644
--- a/odk/examples/DevelopersGuide/ScriptingFramework/ScriptSelector/ScriptSelector/ScriptSelector.java
+++ b/odk/examples/DevelopersGuide/ScriptingFramework/ScriptSelector/ScriptSelector/ScriptSelector.java
@@ -182,36 +182,6 @@ public class ScriptSelector {
show(ctxt);
}
- private void checkEnabled(XPropertySet props, String name,
- JButton button)
- {
- boolean enable = false;
-
- try
- {
- if (props != null)
- {
- Object o = props.getPropertyValue(name);
- enable = AnyConverter.toBoolean(
- props.getPropertyValue(name));
- }
- }
- catch (com.sun.star.lang.IllegalArgumentException iae)
- {
- // leave enable set to false
- }
- catch (com.sun.star.beans.UnknownPropertyException upe)
- {
- // leave enable set to false
- }
- catch (com.sun.star.lang.WrappedTargetException wte)
- {
- // leave enable set to false
- }
-
- button.setEnabled(enable);
- }
-
private XBrowseNode getRootNode(XScriptContext ctxt) {
XBrowseNode result = null;