1 20 21 package org.apache.directory.ldapstudio.browser.ui.editors.searchresult; 22 23 24 import org.apache.directory.ldapstudio.browser.ui.BrowserUIConstants; 25 import org.eclipse.jface.action.Action; 26 import org.eclipse.swt.widgets.Display; 27 import org.eclipse.swt.widgets.Shell; 28 import org.eclipse.ui.dialogs.PreferencesUtil; 29 30 31 public class OpenSearchResultEditorPreferencePage extends Action 32 { 33 34 public OpenSearchResultEditorPreferencePage() 35 { 36 super.setText( "Preferences..." ); 37 super.setToolTipText( "Preferences..." ); 38 super.setEnabled( true ); 39 } 40 41 42 public void run() 43 { 44 Shell shell = Display.getCurrent().getActiveShell(); 45 String srePageId = BrowserUIConstants.PREFERENCEPAGEID_SEARCHRESULTEDITOR; 46 String attPageId = BrowserUIConstants.PREFERENCEPAGEID_ATTRIBUTES; 47 PreferencesUtil.createPreferenceDialogOn( shell, srePageId, new String [] 48 { srePageId, attPageId }, null ).open(); 49 } 50 51 52 public void dispose() 53 { 54 } 55 56 } 57 | Popular Tags |