}
// Regrouping Native build menus (Build Package)
if ("buildGroup".equals(id) && "org.tizen.nativecore.ui.menu.packaging".equals(item.getId())) {//$NON-NLS-1$ //$NON-NLS-2$
- super.insertAfter("org.eclipse.ui.BuildAction", item); //$NON-NLS-1$
+ if ( null != super.find("org.eclipse.ui.RebuildAllAction")) { //$NON-NLS-1$
+ super.insertAfter("org.eclipse.ui.RebuildAllAction", item); //$NON-NLS-1$
+ }else {
+ super.insertAfter("org.eclipse.ui.BuildAction", item); //$NON-NLS-1$
+ }
return true;
}
return false;
}
// Hide Replace With menus
if (ICommonMenuConstants.GROUP_ADDITIONS.equals(id) && "replaceWithMenu".equals(item.getId())) { //$NON-NLS-1$
- System.out.printf("Hide Replace With: %s\n", item.getId()); //$NON-NLS-1$
item.setVisible(false);
super.insertAfter(id, item);
return true;