【发布时间】:2012-07-25 11:18:54
【问题描述】:
我已经在 Eclipse Juno 中安装了 WindowBuilder,并且能够创建详细信息页面。生成的源代码:
/**
* Initialize the details page.
* @param form
*/
public void initialize(IManagedForm form) {
managedForm = form;
}
/**
* Create contents of the details page.
* @param parent
*/
public void createContents(Composite parent) {
FormToolkit toolkit = managedForm.getToolkit();
parent.setLayout(new FillLayout());
//
需要初始化 ManagedForm。一个非常 Java 的新手,我完全不知道从哪里得到这个对象。我可能错过了显而易见的事情,但非常感谢您的帮助。
【问题讨论】:
标签: swt jface windowbuilder