Clazz.declarePackage ("test.visual.editor");
test.visual.editor.XYLayoutButtons = function () {
this.sShell = null;
this.buttonOK = null;
this.buttonCancel = null;
this.buttonHello = null;
this.buttonTest = null;
Clazz.defineMethod (test.visual.editor.XYLayoutButtons, "createSShell", 
function () {
this.sShell =  new org.eclipse.swt.widgets.Shell ();
this.sShell.setText ("Shell");
this.sShell.setSize ( new org.eclipse.swt.graphics.Point (499, 245));
this.buttonOK =  new org.eclipse.swt.widgets.Button (this.sShell, org.eclipse.swt.SWT.NONE);
this.buttonOK.setBounds ( new org.eclipse.swt.graphics.Rectangle (177, 161, 94, 32));
this.buttonOK.setText ("OK");
this.buttonCancel =  new org.eclipse.swt.widgets.Button (this.sShell, org.eclipse.swt.SWT.NONE);
this.buttonCancel.setBounds ( new org.eclipse.swt.graphics.Rectangle (319, 159, 114, 32));
this.buttonCancel.setText ("Cancel");
this.buttonHello =  new org.eclipse.swt.widgets.Button (this.sShell, org.eclipse.swt.SWT.NONE);
this.buttonHello.setBounds ( new org.eclipse.swt.graphics.Rectangle (23, 15, 176, 115));
this.buttonHello.setText ("Hello world");
this.buttonTest =  new org.eclipse.swt.widgets.Button (this.sShell, org.eclipse.swt.SWT.NONE);
this.buttonTest.setBounds ( new org.eclipse.swt.graphics.Rectangle (238, 43, 248, 34));
this.buttonTest.setText ("Test the VE-generated Java codes");
});
Clazz.instantialize (this, arguments);
};
test.visual.editor.XYLayoutButtons.__CLASS_NAME__ = test.visual.editor.XYLayoutButtons.prototype.__CLASS_NAME__ = "test.visual.editor.XYLayoutButtons";
Clazz.defineMethod (test.visual.editor.XYLayoutButtons, "main", 
function (args) {
var xyShell =  new test.visual.editor.XYLayoutButtons ();
xyShell.createSShell ();
xyShell.buttonOK.addSelectionListener ((function (innerThis, finalVars) {
if (!Clazz.isClassDefined ("test.visual.editor.XYLayoutButtons$1")) {
test.visual.editor.XYLayoutButtons$1 = function () {
Clazz.prepareCallback (this, arguments[0]);
for (var i = 0; i < arguments.length - 1; i++) {
arguments[i] = arguments[i + 1];
}
arguments.length--;
Clazz.defineMethod (test.visual.editor.XYLayoutButtons$1, "widgetSelected", 
function (e) {
System.out.println ("<<OK>> pressed");
}, "org.eclipse.swt.events.SelectionEvent");
Clazz.instantialize (this, arguments);
};
Clazz.inheritClass (test.visual.editor.XYLayoutButtons$1, org.eclipse.swt.events.SelectionAdapter);
test.visual.editor.XYLayoutButtons$1.__CLASS_NAME__ = test.visual.editor.XYLayoutButtons$1.prototype.__CLASS_NAME__ = "test.visual.editor.XYLayoutButtons$1";
}
return Clazz.innerTypeInstance (test.visual.editor.XYLayoutButtons$1, innerThis, finalVars);
}) (this, null));
xyShell.buttonCancel.addSelectionListener ((function (innerThis, finalVars) {
if (!Clazz.isClassDefined ("test.visual.editor.XYLayoutButtons$2")) {
test.visual.editor.XYLayoutButtons$2 = function () {
Clazz.prepareCallback (this, arguments[0]);
for (var i = 0; i < arguments.length - 1; i++) {
arguments[i] = arguments[i + 1];
}
arguments.length--;
Clazz.defineMethod (test.visual.editor.XYLayoutButtons$2, "widgetSelected", 
function (e) {
System.out.println ("<<Cancel>> pressed");
}, "org.eclipse.swt.events.SelectionEvent");
Clazz.instantialize (this, arguments);
};
Clazz.inheritClass (test.visual.editor.XYLayoutButtons$2, org.eclipse.swt.events.SelectionAdapter);
test.visual.editor.XYLayoutButtons$2.__CLASS_NAME__ = test.visual.editor.XYLayoutButtons$2.prototype.__CLASS_NAME__ = "test.visual.editor.XYLayoutButtons$2";
}
return Clazz.innerTypeInstance (test.visual.editor.XYLayoutButtons$2, innerThis, finalVars);
}) (this, null));
xyShell.buttonHello.addSelectionListener ((function (innerThis, finalVars) {
if (!Clazz.isClassDefined ("test.visual.editor.XYLayoutButtons$3")) {
test.visual.editor.XYLayoutButtons$3 = function () {
Clazz.prepareCallback (this, arguments[0]);
for (var i = 0; i < arguments.length - 1; i++) {
arguments[i] = arguments[i + 1];
}
arguments.length--;
Clazz.defineMethod (test.visual.editor.XYLayoutButtons$3, "widgetSelected", 
function (e) {
System.out.println ("<<Hello world>> pressed");
}, "org.eclipse.swt.events.SelectionEvent");
Clazz.instantialize (this, arguments);
};
Clazz.inheritClass (test.visual.editor.XYLayoutButtons$3, org.eclipse.swt.events.SelectionAdapter);
test.visual.editor.XYLayoutButtons$3.__CLASS_NAME__ = test.visual.editor.XYLayoutButtons$3.prototype.__CLASS_NAME__ = "test.visual.editor.XYLayoutButtons$3";
}
return Clazz.innerTypeInstance (test.visual.editor.XYLayoutButtons$3, innerThis, finalVars);
}) (this, null));
xyShell.buttonTest.addSelectionListener ((function (innerThis, finalVars) {
if (!Clazz.isClassDefined ("test.visual.editor.XYLayoutButtons$4")) {
test.visual.editor.XYLayoutButtons$4 = function () {
Clazz.prepareCallback (this, arguments[0]);
for (var i = 0; i < arguments.length - 1; i++) {
arguments[i] = arguments[i + 1];
}
arguments.length--;
Clazz.defineMethod (test.visual.editor.XYLayoutButtons$4, "widgetSelected", 
function (e) {
System.out.println ("<<Test the VE-generated Java codes>> pressed");
}, "org.eclipse.swt.events.SelectionEvent");
Clazz.instantialize (this, arguments);
};
Clazz.inheritClass (test.visual.editor.XYLayoutButtons$4, org.eclipse.swt.events.SelectionAdapter);
test.visual.editor.XYLayoutButtons$4.__CLASS_NAME__ = test.visual.editor.XYLayoutButtons$4.prototype.__CLASS_NAME__ = "test.visual.editor.XYLayoutButtons$4";
}
return Clazz.innerTypeInstance (test.visual.editor.XYLayoutButtons$4, innerThis, finalVars);
}) (this, null));
xyShell.sShell.open ();
var display = xyShell.sShell.getDisplay ();
while (!xyShell.sShell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}, "Array");
test.visual.editor.XYLayoutButtons.main = test.visual.editor.XYLayoutButtons.prototype.main;
