public void widgetSelected(SelectionEvent e) { performApply(); } });
@Override public void widgetSelected(SelectionEvent e) { performApply(); } });
/** * Apply button has been pressed. */ protected void performApply() { super.performApply(); }
protected void performApply() { block.performApply(); super.performApply(); }
protected void performApply() { // if there have been changes, save them if (this.mDirty) saveChanges(); super.performApply(); }
@Override protected void performApply() { fBlock.performApply(); super.performApply(); }
/** * @see org.eclipse.jface.preference.PreferencePage#performApply() */ protected void performApply() { storePreferences(); super.performApply(); }
@Override protected void performApply() { block.performApply(); super.performApply(); }
data.widthHint = Math.max(widthHint, minButtonSize.x); applyButton.setLayoutData(data); applyButton.addSelectionListener(widgetSelectedAdapter(e -> performApply())); applyButton.setEnabled(isValid());
@Override protected void performApply() { super.performApply(); if (engine != null) { ITheme theme = getSelectedTheme(); boolean themeChanged = theme != null && !theme.equals(currentTheme); boolean colorsAndFontsThemeChanged = !PlatformUI.getWorkbench().getThemeManager().getCurrentTheme().getId() .equals(currentColorsAndFontsTheme.getId()); if (theme != null) { currentTheme = theme; } ColorsAndFontsTheme colorsAndFontsTheme = getSelectedColorsAndFontsTheme(); if (colorsAndFontsTheme != null) { currentColorsAndFontsTheme = colorsAndFontsTheme; } themeComboDecorator.hide(); colorFontsDecorator.hide(); if (themeChanged || colorsAndFontsThemeChanged) { MessageDialog.openWarning(getShell(), WorkbenchMessages.ThemeChangeWarningTitle, WorkbenchMessages.ThemeChangeWarningText); } } }
/** * @see org.eclipse.jface.preference.PreferencePage#performApply() */ @Override protected void performApply() { super.performApply(); //Apply the default font to the dialog. Font oldFont = appliedDialogFont; FontDefinition fontDefinition = themeRegistry.findFont(JFaceResources.DIALOG_FONT); if (fontDefinition == null) return; FontData[] newData = getFontValue(fontDefinition); appliedDialogFont = new Font(getControl().getDisplay(), newData); updateForDialogFontChange(appliedDialogFont); getApplyButton().setFont(appliedDialogFont); getDefaultsButton().setFont(appliedDialogFont); if (oldFont != null) { oldFont.dispose(); } if (performColorOk() && performFontOk()) { publishThemeRegistryModifiedEvent(); } }