1 20 21 package org.apache.directory.ldapstudio.browser.ui.editors.entry; 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 37 public class OpenEntryEditorPreferencePageAction extends Action 38 { 39 40 43 public OpenEntryEditorPreferencePageAction() 44 { 45 setText( "Preferences..." ); 46 setToolTipText( "Preferences..." ); 47 setEnabled( true ); 48 } 49 50 51 54 public void run() 55 { 56 Shell shell = Display.getCurrent().getActiveShell(); 57 String eePageId = BrowserUIConstants.PREFERENCEPAGEID_ENTRYEDITOR; 58 String attPageId = BrowserUIConstants.PREFERENCEPAGEID_ATTRIBUTES; 59 PreferencesUtil.createPreferenceDialogOn( shell, eePageId, new String [] 60 { eePageId, attPageId }, null ).open(); 61 } 62 63 } 64 | Popular Tags |