List of usage examples for org.eclipse.jface.wizard WizardPage getControl
@Override
public Control getControl()
From source file:com.rcpcompany.uibindings.internal.BindingContextImpl.java
License:Open Source License
/** * Sets the top-level element for the context to the specified wizard page. * // w w w . jav a 2 s.c o m * @param page the wizard page */ protected void setTop(final WizardPage page) { myContextMessageDecoratorAdapter = new WizardPageContextMessageDecoratorAdapter(page); setTextCommitStrategy(TextCommitStrategy.ON_MODIFY); final Shell shell = page.getWizard().getContainer().getShell(); myFormReflow = new IFormReflow() { @Override public void reflow() { if (page.getControl() == null) return; IManagerRunnable.Factory.asyncExec("reflow", page.getControl(), new Runnable() { @Override public void run() { final Control control = page.getControl(); if (control == null || control.isDisposed()) return; final Composite c = control.getParent(); if (c.isDisposed()) return; c.layout(true, true); } }); } }; setTop(shell); }
From source file:org.bbaw.pdr.ae.export.swt.FileSelectionGroup.java
License:Open Source License
/** * Creates an instance for the given plugin and wizard page and applies * style to it//from www .j a v a2s .com * @param plugin * @param page * @param style */ public FileSelectionGroup(String plugin, WizardPage page, int style) { this(plugin, page, (Composite) page.getControl(), style); }