1 20 21 package org.apache.directory.ldapstudio.schemas.controller.actions; 22 23 24 import org.apache.directory.ldapstudio.schemas.Activator; 25 import org.apache.directory.ldapstudio.schemas.Messages; 26 import org.apache.directory.ldapstudio.schemas.PluginConstants; 27 import org.apache.directory.ldapstudio.schemas.view.views.SchemaElementsViewSortDialog; 28 import org.eclipse.jface.action.Action; 29 import org.eclipse.ui.PlatformUI; 30 import org.eclipse.ui.plugin.AbstractUIPlugin; 31 32 33 39 public class OpenSchemaElementsViewSortDialogAction extends Action 40 { 41 42 48 public OpenSchemaElementsViewSortDialogAction() 49 { 50 super( Messages.getString( "OpenSchemaElementsViewSortDialogAction.Sorting..." ) ); setToolTipText( getText() ); 52 setId( PluginConstants.CMD_SCHEMA_ELEMENTS_VIEW_SORT_DIALOG ); 53 setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID, PluginConstants.IMG_SORT ) ); 54 setEnabled( true ); 55 } 56 57 58 61 public void run() 62 { 63 SchemaElementsViewSortDialog hvsd = new SchemaElementsViewSortDialog( PlatformUI.getWorkbench().getDisplay() 64 .getActiveShell() ); 65 hvsd.open(); 66 } 67 } 68 | Popular Tags |