/** {@inheritDoc} */ @Override public void addSelectionListener(SelectionListener listener) { scale.addSelectionListener(listener); }
/** {@inheritDoc} */ public void addSelectionListener(SelectionListener listener) { scale.addSelectionListener(listener); }
/** {@inheritDoc} */ public void addSelectionListener(SelectionListener listener) { scale.addSelectionListener(listener); }
public void initialize() { super.initialize(); if (!dynamicEnabled) return; Scale scale = getScale(); scale.addSelectionListener(selectionListener); }
@Override public void initialize() { super.initialize(); if (!dynamicEnabled) { return; } Scale scale = getScale(); scale.addSelectionListener(selectionListener); }
slider.setSize(200, 10); slider.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); slider.addSelectionListener(new SelectionAdapter() {
/** * Returns this field editor's scale control. The control is created if it * does not yet exist. * * @param parent * the parent * @return the scale control */ private Scale getScaleControl(Composite parent) { if (scale == null) { scale = new Scale(parent, SWT.HORIZONTAL); scale.setFont(parent.getFont()); scale.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent event) { valueChanged(); } }); scale.addDisposeListener(event -> scale = null); } else { checkParent(scale, parent); } return scale; }
/** * Returns this field editor's scale control. The control is created if it * does not yet exist. * * @param parent * the parent * @return the scale control */ private Scale getScaleControl(Composite parent) { if (scale == null) { scale = new Scale(parent, SWT.HORIZONTAL); scale.setFont(parent.getFont()); scale.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { valueChanged(); } }); scale.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { scale = null; } }); } else { checkParent(scale, parent); } return scale; }
scale.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) {
scale.setMinimum(0); scale.setMinimum(255); scale.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) {
airbrushRadiusScale.setSelection(toolSettings.airbrushRadius); airbrushRadiusScale.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL)); airbrushRadiusScale.addSelectionListener(widgetSelectedAdapter(e -> { toolSettings.airbrushRadius = airbrushRadiusScale.getSelection(); updateToolSettings(); airbrushIntensityScale.setSelection(toolSettings.airbrushIntensity); airbrushIntensityScale.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL)); airbrushIntensityScale.addSelectionListener(widgetSelectedAdapter(e -> { toolSettings.airbrushIntensity = airbrushIntensityScale.getSelection(); updateToolSettings();
/** * Returns this field editor's scale control. The control is created if it * does not yet exist. * * @param parent * the parent * @return the scale control */ private Scale getScaleControl(Composite parent) { if (scale == null) { scale = new Scale(parent, SWT.HORIZONTAL); scale.setFont(parent.getFont()); scale.addSelectionListener(widgetSelectedAdapter(event -> valueChanged())); scale.addDisposeListener(event -> scale = null); } else { checkParent(scale, parent); } return scale; }
clientScale_.setMaximum(6); clientScale_.setIncrement(1); clientScale_.addSelectionListener(scaleSelectionListener); setClientScale(getClientGeneration()); clientScale_.setToolTipText(ConsumptionUIMessages.TOOLTIP_WSWSCEN_SCALE_CLIENT);