Java 使用eclipse WindowBuilder时如何在FormPage类中调用createFormContent()方法

Java 使用eclipse WindowBuilder时如何在FormPage类中调用createFormContent()方法,java,eclipse-plugin,windowbuilder,multipage,Java,Eclipse Plugin,Windowbuilder,Multipage,如何在eclipse WindowBuilder插件创建的类(由FormPage类扩展)中调用createFormContent()方法?我使用eclipse window Buider插件创建了一个充当swt gui的类,但我无法在java类中使用它,因为java类实际上是一个多页编辑器。我想在我的多页编辑器的页面中使用该UI。怎么做?我想我应该调用createFormContent(IManagedForm managedForm)方法,但是作为参数应该传递什么呢?您的编辑器应该扩展Form

如何在eclipse WindowBuilder插件创建的类(由FormPage类扩展)中调用createFormContent()方法?我使用eclipse window Buider插件创建了一个充当swt gui的类,但我无法在java类中使用它,因为java类实际上是一个多页编辑器。我想在我的多页编辑器的页面中使用该UI。怎么做?我想我应该调用createFormContent(IManagedForm managedForm)方法,但是作为参数应该传递什么呢?

您的编辑器应该扩展
FormEditor

FormEditor
addPage
方法中,通过调用
addPage(ifformpage)
方法添加
FormPage
页面

如果您已完成上述操作,则在创建编辑器时将自动调用页面
createFormContent