简体   繁体   中英

How to call createFormContent() method in FormPage class when using eclipse WindowBuilder

How to call createFormContent() method in the class(extended by FormPage class) which is created by eclipse WindowBuilder plugin? I created a class to act as a swt gui using eclipse window Buider plugin, but I am unable to use it in my java class which is actually a multi page editor. I want to use that UI in a page in my multi page editor. How to do that? I think I should call that createFormContent(IManagedForm managedForm) method but what should be passed as the argument?

Your editor should extend FormEditor .

In the addPages method of FormEditor you add your FormPage pages by calling the addPage(IFormPage) method.

Provided you have done the above the page createFormContent will be called automatically when the editor is created.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM