|
17 | 17 |
|
18 | 18 | import java.util.Iterator; |
19 | 19 | import org.eclipse.core.runtime.Adapters; |
20 | | -import org.eclipse.jface.dialogs.IDialogConstants; |
21 | 20 | import org.eclipse.jface.dialogs.MessageDialog; |
22 | 21 | import org.eclipse.jface.preference.IPreferenceNode; |
23 | 22 | import org.eclipse.jface.preference.PreferenceManager; |
24 | 23 | import org.eclipse.jface.viewers.ISelection; |
25 | 24 | import org.eclipse.jface.viewers.IStructuredSelection; |
26 | 25 | import org.eclipse.jface.viewers.StructuredSelection; |
27 | 26 | import org.eclipse.osgi.util.NLS; |
28 | | -import org.eclipse.swt.widgets.Composite; |
29 | 27 | import org.eclipse.swt.widgets.Control; |
30 | 28 | import org.eclipse.swt.widgets.Shell; |
31 | 29 | import org.eclipse.ui.PlatformUI; |
@@ -92,20 +90,6 @@ public static PropertyDialog createDialogOn(Shell shell, final String propertyPa |
92 | 90 | return propertyDialog; |
93 | 91 |
|
94 | 92 | } |
95 | | - |
96 | | - @Override |
97 | | - protected void buttonPressed(int buttonId) { |
98 | | - if (buttonId == IDialogConstants.CLOSE_ID) { |
99 | | - cancelPressed(); |
100 | | - return; |
101 | | - } |
102 | | - super.buttonPressed(buttonId); |
103 | | - } |
104 | | - |
105 | | - @Override |
106 | | - protected void createButtonsForButtonBar(Composite parent) { |
107 | | - createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); |
108 | | - } |
109 | 93 |
|
110 | 94 | @Override |
111 | 95 | protected void addButtonsToHelpControl(Control control) { |
@@ -178,11 +162,6 @@ protected String getSelectedNodePreference() { |
178 | 162 | return lastPropertyId; |
179 | 163 | } |
180 | 164 |
|
181 | | - @Override |
182 | | - public void updateButtons() { |
183 | | - // This function is overridden to remove the Apply and close button |
184 | | - } |
185 | | - |
186 | 165 | /** |
187 | 166 | * Get the name of the selected item preference |
188 | 167 | */ |
|
0 commit comments