1 20 21 package org.apache.directory.ldapstudio.browser.common.widgets.entryeditor; 22 23 24 import org.apache.directory.ldapstudio.browser.common.BrowserCommonActivator; 25 import org.apache.directory.ldapstudio.browser.common.BrowserCommonConstants; 26 import org.eclipse.jface.action.Action; 27 import org.eclipse.ui.PlatformUI; 28 29 30 public class OpenSortDialogAction extends Action 31 { 32 33 private EntryEditorWidgetPreferences preferences; 34 35 36 public OpenSortDialogAction( EntryEditorWidgetPreferences preferences ) 37 { 38 super.setText( "Sorting..." ); 39 super.setToolTipText( "Sorting..." ); 40 super.setImageDescriptor( BrowserCommonActivator.getDefault().getImageDescriptor( BrowserCommonConstants.IMG_SORT ) ); 41 super.setEnabled( true ); 42 43 this.preferences = preferences; 44 } 45 46 47 public void run() 48 { 49 EntryEditorWidgetSorterDialog dlg = new EntryEditorWidgetSorterDialog( PlatformUI.getWorkbench().getDisplay() 50 .getActiveShell(), this.preferences ); 51 dlg.open(); 52 } 53 54 } 55 | Popular Tags |