有以下课程 -
public class GUIclass1 extends org.eclipse.swt.widgets.Composite {
private void initGUI() {
{
// The setting of the open file button.
openButton = new Button(this, SWT.PUSH | SWT.CENTER);
openButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent evt) {
foo() ;
}
});
}
}
public void foo() {
// implementation ..
}
}
正如您在其中看到的,addSelectionListener
有一个对方法的调用foo()
。
我的问题是 -foo()
为了知道哪个类foo()
与 .
我试过super().foo()
没有成功。