Kaydet (Commit) c7531408 authored tarafından Julien Nabet's avatar Julien Nabet

Resolves fdo#87123: Impossible to create a form with wizard

Quoting Noel:
"
The original block of code looked like this before my changes:

MethodInvocation windowHidden = new MethodInvocation("windowHidden", this);
xWindow.addWindowListener((CommonListener) getGuiEventListener());
String dialogName = (String) Helper.getUnoPropertyValue(xDialogModel, PropertyNames.PROPERTY_NAME);
getGuiEventListener().add(dialogName, EVENT_ACTION_PERFORMED, windowHidden);

which is clearly bogus, since "actionPerformed" is not an event on the XWindowListener interface.
"
(see https://bugs.freedesktop.org/show_bug.cgi?id=87123#c14)

Change-Id: I4c4923e6cb21989fcd3e346b099a7e7b15526bf2
üst e4c2340c
...@@ -461,15 +461,6 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL ...@@ -461,15 +461,6 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
}); });
setControlProperty("btnWizardNext", "DefaultButton", Boolean.TRUE); setControlProperty("btnWizardNext", "DefaultButton", Boolean.TRUE);
// add a window listener, to know
// if the user used "escape" key to
// close the dialog.
xWindow.addWindowListener(new XWindowListenerAdapter() {
@Override
public void windowHidden(EventObject event) {
cancelWizard_1();
}
});
} }
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