mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Bug 501763: NPE in MakeTargetActionProvider
Change-Id: I998f118b1624df2ea3caa2295297261f21b02dda
This commit is contained in:
parent
d652858b3a
commit
91e227142b
1 changed files with 9 additions and 7 deletions
|
@ -97,13 +97,15 @@ public class MakeTargetActionProvider extends CommonActionProvider {
|
||||||
public void setContext(ActionContext context) {
|
public void setContext(ActionContext context) {
|
||||||
super.setContext(context);
|
super.setContext(context);
|
||||||
|
|
||||||
IStructuredSelection selection = (IStructuredSelection) context.getSelection();
|
if (context != null) {
|
||||||
editTargetAction.selectionChanged(selection);
|
IStructuredSelection selection = (IStructuredSelection) context.getSelection();
|
||||||
copyTargetAction.selectionChanged(selection);
|
editTargetAction.selectionChanged(selection);
|
||||||
pasteTargetAction.selectionChanged(selection);
|
copyTargetAction.selectionChanged(selection);
|
||||||
deleteTargetAction.selectionChanged(selection);
|
pasteTargetAction.selectionChanged(selection);
|
||||||
buildTargetAction.selectionChanged(selection);
|
deleteTargetAction.selectionChanged(selection);
|
||||||
buildLastTargetAction.selectionChanged(selection);
|
buildTargetAction.selectionChanged(selection);
|
||||||
|
buildLastTargetAction.selectionChanged(selection);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue