use of com.cubrid.cubridquery.ui.connection.action.DeleteQueryConnAction 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());
}
Aggregations