Search in sources :

Example 1 with RenameConnectionAction

use of com.cubrid.cubridquery.ui.connection.action.RenameConnectionAction in project cubrid-manager by CUBRID.

the class CubridActionBuilder method makeActions.

/**
	 * 
	 * Make all actions for CUBRID Manager menu and toolbar
	 * 
	 * @param window the workbench window
	 */
protected void makeActions(Shell shell) {
    super.makeActions(shell);
    // common action
    IAction propertyAction = new PropertyAction(shell, Messages.propertyActionName, CubridQueryUIPlugin.getImageDescriptor("icons/action/property.png"));
    ActionManager.getInstance().registerAction(propertyAction);
    IAction refreshAction = new RefreshAction(shell, Messages.refreshActionName, CubridQueryUIPlugin.getImageDescriptor("icons/action/refresh.png"));
    ActionManager.getInstance().registerAction(refreshAction);
    IAction queryNewAction = new QueryNewAction(shell, com.cubrid.common.ui.spi.Messages.queryNewActionName, CommonUIPlugin.getImageDescriptor("icons/action/new_query.png"), CommonUIPlugin.getImageDescriptor("icons/action/new_query_disabled.png"));
    ActionManager.getInstance().registerAction(queryNewAction);
    IAction queryNewCustomAction = new QueryNewCustomAction(shell, com.cubrid.common.ui.spi.Messages.queryNewCustomActionName, CommonUIPlugin.getImageDescriptor("icons/action/new_query.png"), CommonUIPlugin.getImageDescriptor("icons/action/new_query_disabled.png"));
    ActionManager.getInstance().registerAction(queryNewCustomAction);
    //database query connection action
    IAction addQueryConnAction = new NewQueryConnAction(shell, Messages.createConnActionName, CubridQueryUIPlugin.getImageDescriptor("icons/action/connection_create.png"));
    ActionManager.getInstance().registerAction(addQueryConnAction);
    IAction dropQueryConnAction = new DeleteQueryConnAction(shell, Messages.dropConnActionName, CubridQueryUIPlugin.getImageDescriptor("icons/action/connection_delete.png"));
    ActionManager.getInstance().registerAction(dropQueryConnAction);
    IAction openQueryConnAction = new OpenQueryConnAction(shell, Messages.openConnActionName, CubridQueryUIPlugin.getImageDescriptor("icons/action/connection_open.png"));
    ActionManager.getInstance().registerAction(openQueryConnAction);
    IAction editQueryConnAction = new EditQueryConnAction(shell, Messages.editConnActionName, CubridQueryUIPlugin.getImageDescriptor("icons/action/connection_edit.png"));
    ActionManager.getInstance().registerAction(editQueryConnAction);
    IAction closeQueryConnAction = new CloseQueryConnAction(shell, Messages.closeConnActionName, CubridQueryUIPlugin.getImageDescriptor("icons/action/connection_close.png"));
    ActionManager.getInstance().registerAction(closeQueryConnAction);
    IAction copyQueryConnAction = new CopyQueryConnAction(shell, Messages.copyConnActionName, null);
    ActionManager.getInstance().registerAction(copyQueryConnAction);
    IAction pasteQueryConnAction = new PasteQueryConnAction(shell, Messages.pasteConnActionName, null);
    ActionManager.getInstance().registerAction(pasteQueryConnAction);
    IAction renameConnectionAction = new RenameConnectionAction(shell, Messages.pasteConnActionName, null);
    ActionManager.getInstance().registerAction(renameConnectionAction);
    IAction viewServerVersionAction = new ViewDatabaseVersionAction(shell, Messages.viewDatabaseVersionActionName, CubridQueryUIPlugin.getImageDescriptor("icons/action/menu_version.png"), CubridQueryUIPlugin.getImageDescriptor("icons/action/menu_version_disabled.png"));
    ActionManager.getInstance().registerAction(viewServerVersionAction);
    IAction groupSettingAction = new CQBGroupSettingAction(shell, com.cubrid.common.ui.spi.Messages.groupSettingAction, CommonUIPlugin.getImageDescriptor("icons/navigator/group_edit.png"), CommonUIPlugin.getImageDescriptor("icons/navigator/group_edit_disabled.png"), null);
    ActionManager.getInstance().registerAction(groupSettingAction);
    GroupPropertyAction groupPropertyAction = new GroupPropertyAction(shell, com.cubrid.common.ui.spi.Messages.groupNodeProperty, null, null);
    groupPropertyAction.setNavigatorViewId(CubridQueryNavigatorView.ID);
    ActionManager.getInstance().registerAction(groupPropertyAction);
    ImportConnsAction importConnsAction = new ImportConnsAction(Messages.importConnsAction, CommonUIPlugin.getImageDescriptor("icons/action/table_data_import.png"));
    ActionManager.getInstance().registerAction(importConnsAction);
    IAction connectionUrlImportAction = new ConnectionUrlImportAction(shell, Messages.createConnByURLActionName, CubridQueryUIPlugin.getImageDescriptor("icons/action/import_connection.png"));
    ActionManager.getInstance().registerAction(connectionUrlImportAction);
    IAction connectionExportAction = new ConnectionExportAction(shell, Messages.exportServerAction, CommonUIPlugin.getImageDescriptor("icons/action/export_connection.png"));
    ActionManager.getInstance().registerAction(connectionExportAction);
    IAction importServerAction = new ConnectionImportAction(shell, Messages.importServerAction, CommonUIPlugin.getImageDescriptor("icons/action/import_connection.png"));
    ActionManager.getInstance().registerAction(importServerAction);
    IAction brokerLogTopMergeAction = new BrokerLogTopMergeAction(Messages.brokerLogTopMergeAction);
    ActionManager.getInstance().registerAction(brokerLogTopMergeAction);
    IAction brokerLogParseAction = new BrokerLogParserAction(Messages.brokerLogParseAction);
    ActionManager.getInstance().registerAction(brokerLogParseAction);
    //cubrid broker conf  edit utility
    IAction cubridBrokerConfOpenFileAction = new BrokerConfOpenFileAction(Messages.cubridBrokerConfOpenFileActionName);
    ActionManager.getInstance().registerAction(cubridBrokerConfOpenFileAction);
    // Object Info tab on the query editor
    OpenTargetAction openObjectTabAction = new OpenTargetAction(shell, com.cubrid.common.ui.spi.Messages.msgQuickTabAction, CommonUIPlugin.getImageDescriptor("icons/navigator/quick_tab.png"), CommonUIPlugin.getImageDescriptor("icons/navigator/quick_tab_disabled.png"));
    ActionManager.getInstance().registerAction(openObjectTabAction);
    // database user related action
    IAction editUserAction = new EditUserAction(shell, Messages.editUserActionName, CommonUIPlugin.getImageDescriptor("icons/action/user_edit.png"), new CQBPersisteManager());
    ActionManager.getInstance().registerAction(editUserAction);
    IAction addUserAction = new AddUserAction(shell, Messages.addUserActionName, CommonUIPlugin.getImageDescriptor("icons/action/user_add.png"), CommonUIPlugin.getImageDescriptor("icons/action/user_add_disabled.png"));
    ActionManager.getInstance().registerAction(addUserAction);
    IAction deleteUserAction = new DeleteUserAction(shell, Messages.deleteUserActionName, CommonUIPlugin.getImageDescriptor("icons/action/user_delete.png"));
    ActionManager.getInstance().registerAction(deleteUserAction);
    IAction action = null;
    action = new SchemaCommentInstallAction(shell, com.cubrid.common.ui.spi.Messages.schemaCommentInstallActionName, CommonUIPlugin.getImageDescriptor("icons/navigator/quick_tab.png"), null);
    ActionManager.getInstance().registerAction(action);
    action = new ChangeShardAction(shell, com.cubrid.common.ui.spi.Messages.changeShardActionName, CommonUIPlugin.getImageDescriptor("icons/queryeditor/change_shard_id.png"));
    ActionManager.getInstance().registerAction(action);
    ActionManager.getInstance().setMenuProvider(new CubridMenuProvider());
}
Also used : QueryNewCustomAction(com.cubrid.cubridquery.ui.common.action.QueryNewCustomAction) CloseQueryConnAction(com.cubrid.cubridquery.ui.connection.action.CloseQueryConnAction) BrokerLogParserAction(com.cubrid.common.ui.common.action.BrokerLogParserAction) GroupPropertyAction(com.cubrid.common.ui.common.action.GroupPropertyAction) CQBGroupSettingAction(com.cubrid.cubridquery.ui.common.action.CQBGroupSettingAction) OpenTargetAction(com.cubrid.common.ui.common.action.OpenTargetAction) CQBPersisteManager(com.cubrid.cubridmanager.ui.spi.persist.CQBPersisteManager) OpenQueryConnAction(com.cubrid.cubridquery.ui.connection.action.OpenQueryConnAction) DeleteUserAction(com.cubrid.common.ui.cubrid.user.action.DeleteUserAction) QueryNewAction(com.cubrid.cubridquery.ui.common.action.QueryNewAction) AddUserAction(com.cubrid.common.ui.cubrid.user.action.AddUserAction) GroupPropertyAction(com.cubrid.common.ui.common.action.GroupPropertyAction) PropertyAction(com.cubrid.cubridquery.ui.common.action.PropertyAction) NewQueryConnAction(com.cubrid.cubridquery.ui.connection.action.NewQueryConnAction) ConnectionExportAction(com.cubrid.cubridquery.ui.connection.action.ConnectionExportAction) DeleteQueryConnAction(com.cubrid.cubridquery.ui.connection.action.DeleteQueryConnAction) BrokerLogTopMergeAction(com.cubrid.common.ui.common.action.BrokerLogTopMergeAction) ConnectionUrlImportAction(com.cubrid.cubridquery.ui.connection.action.ConnectionUrlImportAction) IAction(org.eclipse.jface.action.IAction) EditQueryConnAction(com.cubrid.cubridquery.ui.connection.action.EditQueryConnAction) ViewDatabaseVersionAction(com.cubrid.cubridquery.ui.connection.action.ViewDatabaseVersionAction) RenameConnectionAction(com.cubrid.cubridquery.ui.connection.action.RenameConnectionAction) CopyQueryConnAction(com.cubrid.cubridquery.ui.connection.action.CopyQueryConnAction) BrokerConfOpenFileAction(com.cubrid.common.ui.common.action.BrokerConfOpenFileAction) SchemaCommentInstallAction(com.cubrid.common.ui.schemacomment.action.SchemaCommentInstallAction) ChangeShardAction(com.cubrid.cubridquery.ui.common.action.ChangeShardAction) EditUserAction(com.cubrid.common.ui.cubrid.user.action.EditUserAction) PasteQueryConnAction(com.cubrid.cubridquery.ui.connection.action.PasteQueryConnAction) ImportConnsAction(com.cubrid.cubridquery.ui.connection.action.ImportConnsAction) RefreshAction(com.cubrid.cubridquery.ui.common.action.RefreshAction) ConnectionImportAction(com.cubrid.cubridquery.ui.connection.action.ConnectionImportAction)

Aggregations

BrokerConfOpenFileAction (com.cubrid.common.ui.common.action.BrokerConfOpenFileAction)1 BrokerLogParserAction (com.cubrid.common.ui.common.action.BrokerLogParserAction)1 BrokerLogTopMergeAction (com.cubrid.common.ui.common.action.BrokerLogTopMergeAction)1 GroupPropertyAction (com.cubrid.common.ui.common.action.GroupPropertyAction)1 OpenTargetAction (com.cubrid.common.ui.common.action.OpenTargetAction)1 AddUserAction (com.cubrid.common.ui.cubrid.user.action.AddUserAction)1 DeleteUserAction (com.cubrid.common.ui.cubrid.user.action.DeleteUserAction)1 EditUserAction (com.cubrid.common.ui.cubrid.user.action.EditUserAction)1 SchemaCommentInstallAction (com.cubrid.common.ui.schemacomment.action.SchemaCommentInstallAction)1 CQBPersisteManager (com.cubrid.cubridmanager.ui.spi.persist.CQBPersisteManager)1 CQBGroupSettingAction (com.cubrid.cubridquery.ui.common.action.CQBGroupSettingAction)1 ChangeShardAction (com.cubrid.cubridquery.ui.common.action.ChangeShardAction)1 PropertyAction (com.cubrid.cubridquery.ui.common.action.PropertyAction)1 QueryNewAction (com.cubrid.cubridquery.ui.common.action.QueryNewAction)1 QueryNewCustomAction (com.cubrid.cubridquery.ui.common.action.QueryNewCustomAction)1 RefreshAction (com.cubrid.cubridquery.ui.common.action.RefreshAction)1 CloseQueryConnAction (com.cubrid.cubridquery.ui.connection.action.CloseQueryConnAction)1 ConnectionExportAction (com.cubrid.cubridquery.ui.connection.action.ConnectionExportAction)1 ConnectionImportAction (com.cubrid.cubridquery.ui.connection.action.ConnectionImportAction)1 ConnectionUrlImportAction (com.cubrid.cubridquery.ui.connection.action.ConnectionUrlImportAction)1