mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
fixed up reatebuild action
This commit is contained in:
parent
06ff1402fa
commit
7a80c16083
3 changed files with 5 additions and 5 deletions
|
@ -84,7 +84,7 @@
|
|||
id="org.eclipse.cdt.make.ui.CViewCreateBuildAction">
|
||||
</action>
|
||||
<filter
|
||||
name="nature"
|
||||
name="projectNature"
|
||||
value="org.eclipse.cdt.make.core.makeNature">
|
||||
</filter>
|
||||
</objectContribution>
|
||||
|
@ -100,7 +100,7 @@
|
|||
id="org.eclipse.cdt.make.ui.NavigatorCreateBuildAction">
|
||||
</action>
|
||||
<filter
|
||||
name="nature"
|
||||
name="projectNature"
|
||||
value="org.eclipse.cdt.make.core.makeNature">
|
||||
</filter>
|
||||
</objectContribution>
|
||||
|
|
|
@ -61,7 +61,7 @@ public class BuildTargetDialog extends TitleAreaDialog {
|
|||
super(parentShell);
|
||||
fTargetManager = MakeCorePlugin.getDefault().getTargetManager();
|
||||
String[] id = fTargetManager.getTargetBuilders(container.getProject());
|
||||
if (id != null) {
|
||||
if (id.length > 0) {
|
||||
fBuildInfo = MakeCorePlugin.createBuildInfo(new HashMap(), id[0]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,6 @@ import org.eclipse.swt.events.KeyEvent;
|
|||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Menu;
|
||||
import org.eclipse.ui.IActionBars;
|
||||
import org.eclipse.ui.IWorkbenchActionConstants;
|
||||
import org.eclipse.ui.part.DrillDownAdapter;
|
||||
import org.eclipse.ui.part.ViewPart;
|
||||
|
||||
|
@ -131,7 +130,7 @@ public class MakeView extends ViewPart {
|
|||
drillDownAdapter.addNavigationActions(manager);
|
||||
|
||||
// Other plug-ins can contribute there actions here
|
||||
manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
|
||||
// manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
|
||||
}
|
||||
|
||||
protected void handleDeleteKeyPressed() {
|
||||
|
@ -148,6 +147,7 @@ public class MakeView extends ViewPart {
|
|||
}
|
||||
|
||||
void updateActions(IStructuredSelection sel) {
|
||||
addTargetAction.selectionChanged(sel);
|
||||
buildTargetAction.selectionChanged(sel);
|
||||
deleteTargetAction.selectionChanged(sel);
|
||||
editTargetAction.selectionChanged(sel);
|
||||
|
|
Loading…
Add table
Reference in a new issue