diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 16:27:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:24 +0200 |
commit | 8583da1e934a49791ef8d86668f3d5c3c5dae1d7 (patch) | |
tree | f092f708b7bb9a0a23ae82c1dc499a6e3fde4518 /odk/examples/DevelopersGuide | |
parent | 68cd011c907d00493bf2bfde531c1e244819596b (diff) |
java: remove unused fields
found by UCDetector
Change-Id: I4a7c56a9918054c23469de5680658e7b501f0165
Diffstat (limited to 'odk/examples/DevelopersGuide')
3 files changed, 10 insertions, 10 deletions
diff --git a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java index 65c6b5301302..6c4bdf287926 100644 --- a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java +++ b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java @@ -70,7 +70,7 @@ public class DialogComponent { private static final String __serviceName= "com.sun.star.test.TestDialogHandler"; - static byte[] _implementationId; + private XComponentContext m_xCmpCtx; private XFrame m_xFrame; diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java index 345c70b59c2e..27df9513b953 100644 --- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java +++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java @@ -113,9 +113,9 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis // protected XNameAccess m_xDlgModelNameAccess; protected XControl m_xDialogControl; protected XDialog xDialog; - private XReschedule mxReschedule; + protected XWindowPeer m_xWindowPeer = null; - private XTopWindow m_xTopWindow = null; + protected XFrame m_xFrame = null; protected XComponent m_xComponent = null; @@ -254,7 +254,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis // The scope of the control container is public... m_xDlgContainer = UnoRuntime.queryInterface(XControlContainer.class, oUnoDialog); - m_xTopWindow = UnoRuntime.queryInterface(XTopWindow.class, m_xDlgContainer); + UnoRuntime.queryInterface(XTopWindow.class, m_xDlgContainer); // link the dialog and its model... XControlModel xControlModel = UnoRuntime.queryInterface(XControlModel.class, oDialogModel); @@ -317,7 +317,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis xWindow.setVisible(false); Object tk = m_xMCF.createInstanceWithContext("com.sun.star.awt.Toolkit", m_xContext); XToolkit xToolkit = UnoRuntime.queryInterface(XToolkit.class, tk); - mxReschedule = UnoRuntime.queryInterface(XReschedule.class, xToolkit); + UnoRuntime.queryInterface(XReschedule.class, xToolkit); m_xDialogControl.createPeer(xToolkit, _xWindowParentPeer); m_xWindowPeer = m_xDialogControl.getPeer(); return m_xWindowPeer; diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java index af70c10cadc1..cc3b79cf19ea 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java @@ -58,13 +58,13 @@ class OnewayExecutor extends Thread */ public static final int REQUEST_FRAMEACTION = 1 ; - public static final int REQUEST_STATUSCHANGED = 2 ; - public static final int REQUEST_ADDSTATUSLISTENER = 3 ; - public static final int REQUEST_REMOVESTATUSLISTENER = 4 ; + + + public static final int REQUEST_DISPATCH = 5 ; - public static final boolean ENCODE_PARAMS = true ; - public static final boolean DECODE_PARAMS = false ; + + |