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.SchemasViewSortDialog; 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 OpenSchemasViewSortDialogAction extends Action 40 { 41 42 48 public OpenSchemasViewSortDialogAction() 49 { 50 super( Messages.getString( "OpenSchemasViewSortDialogAction.Sorting..." ) ); setToolTipText( getText() ); 52 setId( PluginConstants.CMD_SCHEMAS_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 SchemasViewSortDialog svsd = new SchemasViewSortDialog( PlatformUI.getWorkbench().getDisplay().getActiveShell() ); 64 svsd.open(); 65 } 66 } 67 | Popular Tags |