Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Putting MasterDetailBlock on a FormPage
Putting MasterDetailBlock on a FormPage [message #1765286] Thu, 08 June 2017 07:33
Matej Gagyi is currently offline Matej GagyiFriend
Messages: 5
Registered: June 2017
Junior Member
I have subclassed MasterDetailsBlock and now I would like to add it to my palette and drag'n'drop it on a FormPage. I get an error from WB doing that, I attached the screenshot.

When I use the following code, WB does not recognize I added anything to the form:

        private final ReadersMaterDetail masterBlock = new ReadersMaterDetail();

	protected void createFormContent(IManagedForm managedForm) {
		FormToolkit toolkit = managedForm.getToolkit();
		ScrolledForm form = managedForm.getForm();
		form.setText("Items");
		Composite body = form.getBody();
		toolkit.decorateFormHeading(form.getForm());
		toolkit.paintBordersFor(body);
		{
			managedForm.getForm().getBody().setLayout(new TableWrapLayout());
		}
		masterBlock.createContent(managedForm, body);
	}


I played around with @wbp javadoc tags but without success. MasterDetailsBlock is supposed to be top-level, but how can I the concept works in real SWT environment.
Previous Topic:Eclipse Mars 4.5.1 & WB 1.8.0 not finding i18n strings in design view
Next Topic:WindowBuilder Pro Zip Installation
Goto Forum:
  


Current Time: Thu Nov 15 13:38:02 GMT 2018

Powered by FUDForum. Page generated in 0.02928 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top