Search in sources :

Example 11 with OpenTargetAction

use of com.cubrid.common.ui.common.action.OpenTargetAction in project cubrid-manager by CUBRID.

the class CubridWorkbenchContrItem method openTriggersDetailInfoPart.

/**
	 * openTriggersDetailInfoPart
	 *
	 * @param CubridDatabase database
	 */
public void openTriggersDetailInfoPart(CubridDatabase database) {
    OpenTargetAction action = new OpenTargetAction();
    action.openTriggersDetailInfoEditor(database);
}
Also used : OpenTargetAction(com.cubrid.common.ui.common.action.OpenTargetAction)

Example 12 with OpenTargetAction

use of com.cubrid.common.ui.common.action.OpenTargetAction 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)

Example 13 with OpenTargetAction

use of com.cubrid.common.ui.common.action.OpenTargetAction in project cubrid-manager by CUBRID.

the class CubridWorkbenchContrItem method openTriggersDetailInfoPart.

/**
	 * openTriggersDetailInfoPart
	 * @param CubridDatabase database
	 */
public void openTriggersDetailInfoPart(CubridDatabase database) {
    OpenTargetAction action = new OpenTargetAction();
    action.openTriggersDetailInfoEditor(database);
}
Also used : OpenTargetAction(com.cubrid.common.ui.common.action.OpenTargetAction)

Example 14 with OpenTargetAction

use of com.cubrid.common.ui.common.action.OpenTargetAction in project cubrid-manager by CUBRID.

the class CubridWorkbenchContrItem method openViewsDetailInfoPart.

/**
	 * openViewsDetailInfoPart
	 * @param CubridDatabase database
	 */
public void openViewsDetailInfoPart(CubridDatabase database) {
    OpenTargetAction action = new OpenTargetAction();
    action.openViewsDetailInfoEditor(database);
}
Also used : OpenTargetAction(com.cubrid.common.ui.common.action.OpenTargetAction)

Example 15 with OpenTargetAction

use of com.cubrid.common.ui.common.action.OpenTargetAction in project cubrid-manager by CUBRID.

the class CubridWorkbenchContrItem method openUsersDetailInfoPart.

/**
	 * open user InfoPart
	 *
	 * @param CubridDatabase database
	 */
public void openUsersDetailInfoPart(CubridDatabase database) {
    OpenTargetAction action = new OpenTargetAction();
    action.openUsersDetailInfoEditor(database);
}
Also used : OpenTargetAction(com.cubrid.common.ui.common.action.OpenTargetAction)

Aggregations

OpenTargetAction (com.cubrid.common.ui.common.action.OpenTargetAction)16 BrokerLogParserAction (com.cubrid.common.ui.common.action.BrokerLogParserAction)2 BrokerLogTopMergeAction (com.cubrid.common.ui.common.action.BrokerLogTopMergeAction)2 ExpandTreeItemAction (com.cubrid.common.ui.common.action.ExpandTreeItemAction)2 GroupPropertyAction (com.cubrid.common.ui.common.action.GroupPropertyAction)2 GroupSettingAction (com.cubrid.common.ui.common.action.GroupSettingAction)2 SwitchGroupModeAction (com.cubrid.common.ui.common.action.SwitchGroupModeAction)2 UnExpandTreeItemAction (com.cubrid.common.ui.common.action.UnExpandTreeItemAction)2 AddUserAction (com.cubrid.common.ui.cubrid.user.action.AddUserAction)2 DeleteUserAction (com.cubrid.common.ui.cubrid.user.action.DeleteUserAction)2 EditUserAction (com.cubrid.common.ui.cubrid.user.action.EditUserAction)2 SchemaCommentInstallAction (com.cubrid.common.ui.schemacomment.action.SchemaCommentInstallAction)2 RefreshAction (com.cubrid.cubridmanager.ui.common.action.RefreshAction)2 BrokerConfOpenFileAction (com.cubrid.common.ui.common.action.BrokerConfOpenFileAction)1 ActionManager (com.cubrid.common.ui.spi.action.ActionManager)1 CubridDatabase (com.cubrid.common.ui.spi.model.CubridDatabase)1 DefaultSchemaNode (com.cubrid.common.ui.spi.model.DefaultSchemaNode)1 ICubridNode (com.cubrid.common.ui.spi.model.ICubridNode)1 RestartBrokerAction (com.cubrid.cubridmanager.ui.broker.action.RestartBrokerAction)1 ShowBrokerEnvStatusAction (com.cubrid.cubridmanager.ui.broker.action.ShowBrokerEnvStatusAction)1