1 11 package org.eclipse.search2.internal.ui; 12 13 import org.eclipse.swt.widgets.Shell; 14 15 import org.eclipse.jface.action.Action; 16 17 import org.eclipse.ui.dialogs.PreferencesUtil; 18 19 import org.eclipse.search.internal.ui.SearchPlugin; 20 import org.eclipse.search.internal.ui.SearchPreferencePage; 21 22 23 26 public class OpenSearchPreferencesAction extends Action { 27 public OpenSearchPreferencesAction() { 28 super(SearchMessages.OpenSearchPreferencesAction_label); 29 setToolTipText(SearchMessages.OpenSearchPreferencesAction_tooltip); 30 } 32 33 36 public void run() { 37 Shell shell= SearchPlugin.getActiveWorkbenchShell(); 38 PreferencesUtil.createPreferenceDialogOn(shell, SearchPreferencePage.PAGE_ID, null, null).open(); 39 } 40 41 } 42 | Popular Tags |