1 20 21 package org.apache.directory.ldapstudio.browser.common.actions; 22 23 24 import org.apache.directory.ldapstudio.browser.common.BrowserCommonConstants; 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 37 public class ValueEditorPreferencesAction extends Action 38 { 39 42 public ValueEditorPreferencesAction() 43 { 44 super.setText( "Preferences..." ); 45 super.setToolTipText( "Preferences..." ); 46 super.setEnabled( true ); 47 } 48 49 50 53 public void run() 54 { 55 Shell shell = Display.getCurrent().getActiveShell(); 56 String pageId = BrowserCommonConstants.PREFERENCEPAGEID_VALUEEDITORS; 57 PreferencesUtil.createPreferenceDialogOn( shell, pageId, new String [] 58 { pageId }, null ).open(); 59 } 60 } 61 | Popular Tags |