diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-05 11:08:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-08 09:48:16 +0200 |
commit | 8d6cf7a147acde4e4a4f7600af25ed614b07f90d (patch) | |
tree | ae8f52bd74fb33459fe69eadbdb57271df86fd94 /odk/examples | |
parent | 60fad3fabb26a50ea238bed2f046670c6e5678f7 (diff) |
java: remove dead methods
Change-Id: I9f2e705fd603a7c8832c0f0772bee9f395380a0d
Diffstat (limited to 'odk/examples')
-rw-r--r-- | odk/examples/DevelopersGuide/ScriptingFramework/ScriptSelector/ScriptSelector/ScriptSelector.java | 30 |
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; |