mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +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) {
|
||||
super.setContext(context);
|
||||
|
||||
IStructuredSelection selection = (IStructuredSelection) context.getSelection();
|
||||
editTargetAction.selectionChanged(selection);
|
||||
copyTargetAction.selectionChanged(selection);
|
||||
pasteTargetAction.selectionChanged(selection);
|
||||
deleteTargetAction.selectionChanged(selection);
|
||||
buildTargetAction.selectionChanged(selection);
|
||||
buildLastTargetAction.selectionChanged(selection);
|
||||
if (context != null) {
|
||||
IStructuredSelection selection = (IStructuredSelection) context.getSelection();
|
||||
editTargetAction.selectionChanged(selection);
|
||||
copyTargetAction.selectionChanged(selection);
|
||||
pasteTargetAction.selectionChanged(selection);
|
||||
deleteTargetAction.selectionChanged(selection);
|
||||
buildTargetAction.selectionChanged(selection);
|
||||
buildLastTargetAction.selectionChanged(selection);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue