SHORTCUT: Add build clean command id
authorYoonki Park <yoonki.park@samsung.com>
Wed, 24 Aug 2016 02:40:55 +0000 (11:40 +0900)
committerYoonki Park <yoonki.park@samsung.com>
Wed, 24 Aug 2016 02:42:20 +0000 (11:42 +0900)
Change-Id: I54d769051dea35f7b4b876f1c4e677091987d272
Signed-off-by: Yoonki Park <yoonki.park@samsung.com>
core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/navigator/CNavigatorBuildActionGroup.java

index 4094fa4..d204874 100644 (file)
@@ -9,6 +9,10 @@
  *     IBM Corporation - initial API and implementation
  *     Anton Leherbauer (Wind River Systems) - adaptations for Common Navigator
  *******************************************************************************/
+/* 2016-08-24 Yoonki Park <yoonki.park@samsung.com>
+ * Modifications by S-Core Co., Ltd.
+ * 1. Added command id to build clean action
+ */
 package org.eclipse.cdt.internal.ui.navigator;
 
 import java.util.Iterator;
@@ -50,7 +54,9 @@ public class CNavigatorBuildActionGroup extends AbstractCNavigatorActionGroup {
        // Menu tags for the build
        final String BUILD_GROUP_MARKER= "buildGroup"; //$NON-NLS-1$
        final String BUILD_GROUP_MARKER_END= "end-buildGroup"; //$NON-NLS-1$
-
+       /* Tizen */
+       final String BUILD_CLEAN_ID = "org.tizen.common.ui.command.buildclean.action";
+       /* ===== */
        /**
         * Create action group associated with given view part.
         * @param viewPart
@@ -63,6 +69,9 @@ public class CNavigatorBuildActionGroup extends AbstractCNavigatorActionGroup {
        public void fillActionBars(IActionBars actionBars) {
                // register a CDT Build project action which prevents projects with refs from being built twice
                actionBars.setGlobalActionHandler(IDEActionFactory.BUILD_PROJECT.getId(), fBuildAction);
+               /* Tizen */
+               actionBars.setGlobalActionHandler(BUILD_CLEAN_ID, fCleanAction);
+               /* ===== */
                updateActionBars();
        }
 
@@ -160,6 +169,9 @@ public class CNavigatorBuildActionGroup extends AbstractCNavigatorActionGroup {
        protected void makeActions() {
                fBuildAction = new BuildGroup.CDTBuildAction(getViewPart().getSite(), IncrementalProjectBuilder.INCREMENTAL_BUILD);
                fCleanAction= new BuildGroup.CDTBuildAction(getViewPart().getSite(), IncrementalProjectBuilder.CLEAN_BUILD);
+               /* Tizen */
+               fCleanAction.setActionDefinitionId(BUILD_CLEAN_ID);
+               /* ===== */
                fCleanAction.setText(CViewMessages.CleanAction_label);
        }