summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-18 12:59:57 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-11-24 11:56:57 +0000
commit53135b2a6ea0222cc9bece9e96ff6c7b833d5490 (patch)
treeb1b03e0ab169bf96e67944fbc0e24f6d38480279
parentf136502dd357c2faa5fde494f89ca833c733c9a4 (diff)
the UnoDialog constructor parameters can be simplified
Change-Id: I5c790a4b79966c977899a0cdacde8fb41148eb1a Reviewed-on: https://gerrit.libreoffice.org/13092 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--wizards/com/sun/star/wizards/ui/UnoDialog.java4
-rw-r--r--wizards/com/sun/star/wizards/ui/UnoDialog2.java6
2 files changed, 3 insertions, 7 deletions
diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog.java b/wizards/com/sun/star/wizards/ui/UnoDialog.java
index ef6653714372..f23eda97319e 100644
--- a/wizards/com/sun/star/wizards/ui/UnoDialog.java
+++ b/wizards/com/sun/star/wizards/ui/UnoDialog.java
@@ -62,7 +62,7 @@ public class UnoDialog implements EventNames
return guiEventListener;
}
- public UnoDialog(XMultiServiceFactory xMSF, String[] PropertyNames, Object[] PropertyValues)
+ public UnoDialog(XMultiServiceFactory xMSF)
{
try
{
@@ -70,7 +70,7 @@ public class UnoDialog implements EventNames
ControlList = new HashMap<String, Integer>();
xDialogModel = (XInterface) xMSF.createInstance("com.sun.star.awt.UnoControlDialogModel");
XMultiPropertySet xMultiPSetDlg = UnoRuntime.queryInterface(XMultiPropertySet.class, xDialogModel);
- xMultiPSetDlg.setPropertyValues(PropertyNames, PropertyValues);
+ xMultiPSetDlg.setPropertyValues(new String[0], new Object[0]);
MSFDialogModel = UnoRuntime.queryInterface(XMultiServiceFactory.class, xDialogModel);
xUnoDialog = (XInterface) xMSF.createInstance("com.sun.star.awt.UnoControlDialog");
xControl = UnoRuntime.queryInterface(XControl.class, xUnoDialog);
diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog2.java b/wizards/com/sun/star/wizards/ui/UnoDialog2.java
index 9a09ba0f8666..ab41e0e5eded 100644
--- a/wizards/com/sun/star/wizards/ui/UnoDialog2.java
+++ b/wizards/com/sun/star/wizards/ui/UnoDialog2.java
@@ -40,11 +40,7 @@ public class UnoDialog2 extends UnoDialog
public UnoDialog2(XMultiServiceFactory xmsf)
{
- super(xmsf, new String[]
- {
- }, new Object[]
- {
- });
+ super(xmsf);
}
public XButton insertButton(String sName, String actionPerformed, Object eventTarget, String[] sPropNames, Object[] oPropValues)