fdSourceStep.top = new FormAttachment( wSourceValues, margin ); wSourceStep.setLayoutData( fdSourceStep ); wSourceStep.addFocusListener( new FocusAdapter() { public void focusGained( org.eclipse.swt.events.FocusEvent e ) { getSteps(); fdSourceField.top = new FormAttachment( wSourceStep, margin ); wSourceField.setLayoutData( fdSourceField ); wSourceField.addFocusListener( new FocusAdapter() { public void focusGained( org.eclipse.swt.events.FocusEvent e ) { getFields();
public void addListeners(Object control, EventAdapter adapter) { if(control instanceof Combo) { ((Combo)control).addFocusListener(adapter); ((Combo)control).addModifyListener(adapter); ((Combo)control).addSelectionListener(adapter); } else throw new IllegalArgumentException("unsupported control type: "+control.getClass().getName()); }
public void addListeners(Object control, EventAdapter adapter) { if(control instanceof Combo) { ((Combo)control).addFocusListener(adapter); ((Combo)control).addModifyListener(adapter); ((Combo)control).addSelectionListener(adapter); } else if(control instanceof List) { ((List)control).addFocusListener(adapter); ((List)control).addSelectionListener(adapter); } else throw new IllegalArgumentException("unsupported control type: "+control.getClass().getName()); }
sourceNameField.addFocusListener(new FocusListener() {
directoryPathField.addFocusListener(new FocusAdapter() { @Override public void focusLost(org.eclipse.swt.events.FocusEvent e) { archivePathField.addFocusListener(new FocusAdapter() { @Override public void focusLost(org.eclipse.swt.events.FocusEvent e) {
rootDirectoryCombo.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent e) { if(rootDirectoryChanged()) {
sourceNameField.addFocusListener(new FocusListener() {
sourceNameField.addFocusListener(new FocusAdapter() {
_comboDbName.setVisibleItemCount(20); _comboDbName.setLayoutData(new GridData(110, 20)); _comboDbName.addFocusListener( new FocusListener()
private void addHighlight(final Composite parent, final Label labelControl, final Combo comboBox) { comboBox.addFocusListener(new FocusListener() { @Override public void focusLost(FocusEvent e) {
protected void addHighlight(final Composite parent, final Label labelControl, final Combo comboBox) { comboBox.addFocusListener(new FocusListener() { @Override public void focusLost(FocusEvent e) {
totalLabelData.grabExcessHorizontalSpace = true; combo.setLayoutData(totalLabelData); combo.addFocusListener(new FocusAdapter() { @Override public void focusLost(FocusEvent e) {