Search in sources :

Example 1 with CubridOnlineForumAction

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

the class ApplicationActionBarAdvisor method makeActions.

/**
	 * Instantiates the actions used in the fill methods.
	 *
	 * @see org.eclipse.ui.application.ActionBarAdvisor#makeActions(org.eclipse
	 *      .ui.IWorkbenchWindow)
	 *
	 * @param window the window containing the action bars
	 */
protected void makeActions(IWorkbenchWindow window) {
    ActionManager manager = ActionManager.getInstance();
    CubridActionBuilder.init();
    serviceDashboardAction = (ServiceDashboardAction) manager.getAction(ServiceDashboardAction.ID);
    if (serviceDashboardAction != null) {
        serviceDashboardAction.setText(com.cubrid.common.ui.spi.Messages.serviceDashboardActionName);
        register(serviceDashboardAction);
    }
    // customized actions for CUBRID Manager
    //common action
    preferenceAction = new OpenPreferenceAction(window.getShell(), Messages.openPreferenceActionName, null);
    register(preferenceAction);
    // It must be needed to use a Preferences Menu of an Application Menu on Mac.
    preferenceAction.setId("preferences");
    manager.registerAction(preferenceAction);
    quitAction = new QuitAction(Messages.exitActionName);
    cubridOnlineForumAction = new CubridOnlineForumAction(Messages.cubridOnlineForumActionName);
    cubridProjectSiteAction = new CubridProjectSiteAction(Messages.cubridProjectSiteActionName);
    aboutAction = new AboutAction(Messages.aboutActionName, Version.productName, Version.buildVersionId, CubridManagerAppPlugin.getImageDescriptor("icons/cubridmanager16.gif"), CubridManagerAppPlugin.getImageDescriptor("icons/about.gif"));
    // It must be needed to use a About Menu of an Application Menu on Mac.
    aboutAction.setId("about");
    clientVersionAction = new AboutAction(Messages.clientVersionActionName, Version.productName, Version.buildVersionId, CubridManagerAppPlugin.getImageDescriptor("icons/cubridmanager16.gif"), CubridManagerAppPlugin.getImageDescriptor("icons/about.gif"));
    newFeatureAction = new NewFeaturesAction(com.cubrid.common.ui.common.Messages.msgNewFeatures);
    reportBugAction = (ReportBugAction) manager.getAction(ReportBugAction.ID);
    reportBugAction.setCurrentVersion(Version.buildVersionId);
}
Also used : ActionManager(com.cubrid.common.ui.spi.action.ActionManager) QuitAction(com.cubrid.cubridmanager.ui.common.action.QuitAction) NewFeaturesAction(com.cubrid.common.ui.common.action.NewFeaturesAction) AboutAction(com.cubrid.common.ui.common.action.AboutAction) CubridProjectSiteAction(com.cubrid.common.ui.common.action.CubridProjectSiteAction) CubridOnlineForumAction(com.cubrid.common.ui.common.action.CubridOnlineForumAction) OpenPreferenceAction(com.cubrid.common.ui.common.action.OpenPreferenceAction)

Aggregations

AboutAction (com.cubrid.common.ui.common.action.AboutAction)1 CubridOnlineForumAction (com.cubrid.common.ui.common.action.CubridOnlineForumAction)1 CubridProjectSiteAction (com.cubrid.common.ui.common.action.CubridProjectSiteAction)1 NewFeaturesAction (com.cubrid.common.ui.common.action.NewFeaturesAction)1 OpenPreferenceAction (com.cubrid.common.ui.common.action.OpenPreferenceAction)1 ActionManager (com.cubrid.common.ui.spi.action.ActionManager)1 QuitAction (com.cubrid.cubridmanager.ui.common.action.QuitAction)1