Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@

import java.util.Iterator;
import org.eclipse.core.runtime.Adapters;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.preference.IPreferenceNode;
import org.eclipse.jface.preference.PreferenceManager;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
Expand Down Expand Up @@ -90,6 +92,20 @@ public static PropertyDialog createDialogOn(Shell shell, final String propertyPa
return propertyDialog;

}

@Override
protected void buttonPressed(int buttonId) {
if (buttonId == IDialogConstants.CLOSE_ID) {
cancelPressed();
return;
}
super.buttonPressed(buttonId);
}
Comment on lines +96 to +103

@Override
protected void createButtonsForButtonBar(Composite parent) {
createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true);
}
Comment on lines +96 to +108

@Override
protected void addButtonsToHelpControl(Control control) {
Expand Down Expand Up @@ -162,6 +178,11 @@ protected String getSelectedNodePreference() {
return lastPropertyId;
}

@Override
public void updateButtons() {
// This function is overridden to remove the Apply and close button
}
Comment on lines +181 to +184

/**
* Get the name of the selected item preference
*/
Expand Down
Loading