use of org.whole.lang.ui.controls.WholeModelBrowseChooser in project whole by wholeplatform.
the class TargetModelBlock method createContents.
@Override
protected void createContents(Composite composite) {
composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
int widthHint = UIUtils.getButtonWidthHint(composite);
browseChooser = new WholeModelBrowseChooser(composite, SWT.NONE, widthHint);
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.widthHint = 300;
browseChooser.setLayoutData(gd);
browseChooser.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
IFile file = browseChooser.getFile();
if (file != null)
modelPath = file.getFullPath().toPortableString();
IPersistenceKit persistenceKit = browseChooser.getPersistenceKit();
if (persistenceKit != null)
persistenceKitId = persistenceKit.getId();
updateLaunchConfiguration();
}
});
}
Aggregations