protected Control createDialogArea(Composite parent) { Composite dialogArea = (Composite) super.createDialogArea(parent); // TODO.. enable context help // WorkbenchHelp.setHelp(dialogArea, // B2BGUIContextIds.BTBG_SELECT_SINGLE_FILE_DIALOG); Composite composite = new Composite(dialogArea, SWT.NONE); composite.setLayout(new GridLayout()); GridData gd = new GridData(GridData.FILL_BOTH); gd.widthHint = 350; gd.heightHint = 350; composite.setLayoutData(gd); SelectSingleFileView.Listener listener = new SelectSingleFileView.Listener() { public void setControlComplete(boolean isComplete) { okButton.setEnabled(isComplete); } }; selectSingleFileView.setListener(listener); selectSingleFileView.createControl(composite); return dialogArea; }
public void create() { super.create(); selectSingleFileView.setVisibleHelper(true); image = getSaveAsImage(); setTitleImage(image); }
public void addFilterExtensions(String[] filterExtensions) { selectSingleFileView.addFilterExtensions(filterExtensions); }
public void addFilterExtensions(String[] filterExtensions, IFile[] excludedFiles) { selectSingleFileView.addFilterExtensions(filterExtensions, excludedFiles); }
public IFile getFile() { return selectSingleFileView.getFile(); }