* IBM Corporation - initial API and implementation
* Anton Leherbauer (Wind River Systems) - adaptations for Common Navigator
*******************************************************************************/
-/* 2016-08-08 Hyeongseok Heo <harry.heo@samsung.com>
- * Modifications by S-Core Co., Ltd.
- * 1. Modified context menu - hide Clean Project menu
- */
package org.eclipse.cdt.internal.ui.navigator;
import java.util.Iterator;
}
if (!selection.isEmpty() && isProjectSelection && hasBuilder) {
- /* Tizen */
- /*
fCleanAction.selectionChanged(selection);
if (fCleanAction.isEnabled()) {
IContributionItem oldBuild = menu.find(BuildAction.ID_BUILD);
menu.insertAfter(ICommonMenuConstants.GROUP_BUILD, fBuildAction);
}
}
- */
- fCleanAction.selectionChanged(selection);
- if (fCleanAction.isEnabled()) {
- IContributionItem oldBuild = menu.find(BuildAction.ID_BUILD);
- if (oldBuild != null) {
- // Replace ResourceMgmtActionProvier's build action with our own
- if (oldBuild instanceof ActionContributionItem &&
- ((ActionContributionItem)oldBuild).getAction() instanceof BuildAction) {
- menu.remove(oldBuild);
- menu.insertAfter(ICommonMenuConstants.GROUP_BUILD, fBuildAction);
- }
- } else {
- menu.insertAfter(ICommonMenuConstants.GROUP_BUILD, fBuildAction);
- }
- }
- /* ===== */
}
menu.appendToGroup(ICommonMenuConstants.GROUP_BUILD, new Separator(BUILD_GROUP_MARKER));
menu.appendToGroup(BUILD_GROUP_MARKER, new GroupMarker(BUILD_GROUP_MARKER_END));