use of org.jboss.tools.openshift.internal.common.ui.databinding.FormEditorPresenter in project jbosstools-openshift by jbosstools.
the class OpenShiftServerEditorSection method createSection.
@Override
public void createSection(Composite parent) {
super.createSection(parent);
this.dbc = new DataBindingContext();
this.formPresenterSupport = new FormPresenterSupport(new FormEditorPresenter(getManagedForm().getForm().getForm()), dbc);
FormToolkit toolkit = new FormToolkit(parent.getDisplay());
Section section = toolkit.createSection(parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED | ExpandableComposite.TITLE_BAR);
section.setText("OpenShift Server Adapter");
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(section);
Composite container = createControls(toolkit, section, dbc);
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(container);
toolkit.paintBordersFor(container);
toolkit.adapt(container);
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(container);
section.setClient(container);
setupWarningToRestartAdapter(getServerEditor());
loadResources(section, dbc);
dbc.updateTargets();
}
Aggregations