use of com.cubrid.common.ui.common.action.AboutAction 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);
}
Aggregations