@Override public void activate() { fValue= getNextValue(fStateCount, fValue); fireApplyEditorValue(); }
private CellEditor[] createCellEditors() { final CellEditor editors[]= new CellEditor[SIZE]; editors[STATE_PROP]= new MultiStateCellEditor(fTable, NLSSubstitution.STATE_COUNT, NLSSubstitution.DEFAULT); editors[KEY_PROP]= new TextCellEditor(fTable); editors[VAL_PROP]= new TextCellEditor(fTable); return editors; }
/** * @param stateCount must be > 1 * @param initialValue initialValue */ public MultiStateCellEditor(Composite parent, int stateCount, int initialValue) { super(parent); Assert.isTrue(stateCount > 1, "incorrect state count"); //$NON-NLS-1$ fStateCount= stateCount; Assert.isTrue(initialValue >= 0 && initialValue < stateCount, "incorrect initial value"); //$NON-NLS-1$ fValue= initialValue; setValueValid(true); }
private CellEditor[] createCellEditors() { final CellEditor editors[]= new CellEditor[SIZE]; editors[STATE_PROP]= new MultiStateCellEditor(fTable, NLSSubstitution.STATE_COUNT, NLSSubstitution.DEFAULT); editors[KEY_PROP]= new TextCellEditor(fTable); editors[VAL_PROP]= new TextCellEditor(fTable); return editors; }
/** * @param parent the parent * @param stateCount must be > 1 * @param initialValue initialValue */ public MultiStateCellEditor(Composite parent, int stateCount, int initialValue) { super(parent); Assert.isTrue(stateCount > 1, "incorrect state count"); //$NON-NLS-1$ fStateCount= stateCount; Assert.isTrue(initialValue >= 0 && initialValue < stateCount, "incorrect initial value"); //$NON-NLS-1$ fValue= initialValue; setValueValid(true); }
@Override public void activate() { fValue= getNextValue(fStateCount, fValue); fireApplyEditorValue(); }
private CellEditor[] createCellEditors() { final CellEditor editors[]= new CellEditor[SIZE]; editors[STATE_PROP]= new MultiStateCellEditor(fTable, NLSSubstitution.STATE_COUNT, NLSSubstitution.DEFAULT); editors[KEY_PROP]= new TextCellEditor(fTable); editors[VAL_PROP]= new TextCellEditor(fTable); return editors; }
/** * @param parent the parent * @param stateCount must be > 1 * @param initialValue initialValue */ public MultiStateCellEditor(Composite parent, int stateCount, int initialValue) { super(parent); Assert.isTrue(stateCount > 1, "incorrect state count"); //$NON-NLS-1$ fStateCount= stateCount; Assert.isTrue(initialValue >= 0 && initialValue < stateCount, "incorrect initial value"); //$NON-NLS-1$ fValue= initialValue; setValueValid(true); }
public void activate() { fValue= getNextValue(fStateCount, fValue); fireApplyEditorValue(); }