Kaydet (Commit) b7f67f24 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

the getGuiEventListener method is unnecessary

Change-Id: I1c8b0ea28b6dbc2b6825f5f30ae0d234b7362d64
Reviewed-on: https://gerrit.libreoffice.org/13093Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 53135b2a
...@@ -57,11 +57,6 @@ public class UnoDialog implements EventNames ...@@ -57,11 +57,6 @@ public class UnoDialog implements EventNames
private PeerConfig m_oPeerConfig; private PeerConfig m_oPeerConfig;
protected final AbstractListener guiEventListener = new CommonListener(); protected final AbstractListener guiEventListener = new CommonListener();
public AbstractListener getGuiEventListener()
{
return guiEventListener;
}
public UnoDialog(XMultiServiceFactory xMSF) public UnoDialog(XMultiServiceFactory xMSF)
{ {
try try
......
...@@ -243,10 +243,10 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL ...@@ -243,10 +243,10 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
xIndexContRoadmap = UnoRuntime.queryInterface(XIndexContainer.class, oRoadmap); xIndexContRoadmap = UnoRuntime.queryInterface(XIndexContainer.class, oRoadmap);
MethodInvocation mi = new MethodInvocation("itemStateChanged", this, com.sun.star.awt.ItemEvent.class); MethodInvocation mi = new MethodInvocation("itemStateChanged", this, com.sun.star.awt.ItemEvent.class);
getGuiEventListener().add("rdmNavi", EventNames.EVENT_ITEM_CHANGED, mi); guiEventListener.add("rdmNavi", EventNames.EVENT_ITEM_CHANGED, mi);
xRoadmapControl = this.xDlgContainer.getControl("rdmNavi"); xRoadmapControl = this.xDlgContainer.getControl("rdmNavi");
xRoadmapBroadcaster = UnoRuntime.queryInterface(XItemEventBroadcaster.class, xRoadmapControl); xRoadmapBroadcaster = UnoRuntime.queryInterface(XItemEventBroadcaster.class, xRoadmapControl);
xRoadmapBroadcaster.addItemListener((XItemListener) getGuiEventListener()); xRoadmapBroadcaster.addItemListener((XItemListener) guiEventListener);
Helper.setUnoPropertyValue(oRoadmap, "Text", oWizardResource.getResText(UIConsts.RID_COMMON + 16)); Helper.setUnoPropertyValue(oRoadmap, "Text", oWizardResource.getResText(UIConsts.RID_COMMON + 16));
} }
...@@ -483,9 +483,9 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL ...@@ -483,9 +483,9 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
// if the user used "escape" key to // if the user used "escape" key to
// close the dialog. // close the dialog.
MethodInvocation windowHidden = new MethodInvocation("windowHidden", this); MethodInvocation windowHidden = new MethodInvocation("windowHidden", this);
xWindow.addWindowListener((CommonListener) getGuiEventListener()); xWindow.addWindowListener((CommonListener) guiEventListener);
String dialogName = (String) Helper.getUnoPropertyValue(xDialogModel, PropertyNames.PROPERTY_NAME); String dialogName = (String) Helper.getUnoPropertyValue(xDialogModel, PropertyNames.PROPERTY_NAME);
getGuiEventListener().add(dialogName, EVENT_ACTION_PERFORMED, windowHidden); guiEventListener.add(dialogName, EVENT_ACTION_PERFORMED, windowHidden);
} }
catch (java.lang.Exception jexception) catch (java.lang.Exception jexception)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment