mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
The build actions were always disable.
This commit is contained in:
parent
5a0369683c
commit
5178ef3ea9
2 changed files with 9 additions and 7 deletions
|
@ -44,8 +44,8 @@ public class BuildGroup extends CViewActionGroup {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void fillActionBars(IActionBars actionBars) {
|
public void fillActionBars(IActionBars actionBars) {
|
||||||
actionBars.setGlobalActionHandler(IDEActionFactory.BUILD.getId(), buildAction);
|
actionBars.setGlobalActionHandler(IDEActionFactory.BUILD_PROJECT.getId(), buildAction);
|
||||||
actionBars.setGlobalActionHandler(IDEActionFactory.BUILD_PROJECT.getId(), rebuildAction);
|
actionBars.setGlobalActionHandler(IDEActionFactory.REBUILD_PROJECT.getId(), rebuildAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -533,20 +533,22 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
||||||
|
|
||||||
initContextMenu();
|
initContextMenu();
|
||||||
|
|
||||||
// Make the Actions for the Context Menu
|
|
||||||
makeActions();
|
|
||||||
getActionGroup().fillActionBars(getViewSite().getActionBars());
|
|
||||||
updateActionBars((IStructuredSelection) viewer.getSelection());
|
|
||||||
|
|
||||||
//Add the property changes after all of the UI work has been done.
|
//Add the property changes after all of the UI work has been done.
|
||||||
IWorkingSetManager wsmanager = getViewSite().getWorkbenchWindow().getWorkbench().getWorkingSetManager();
|
IWorkingSetManager wsmanager = getViewSite().getWorkbenchWindow().getWorkbench().getWorkingSetManager();
|
||||||
wsmanager.addPropertyChangeListener(workingSetListener);
|
wsmanager.addPropertyChangeListener(workingSetListener);
|
||||||
|
|
||||||
viewer.addTreeListener(expansionListener);
|
viewer.addTreeListener(expansionListener);
|
||||||
|
|
||||||
|
// Needs to be done before the actions
|
||||||
getSite().setSelectionProvider(viewer);
|
getSite().setSelectionProvider(viewer);
|
||||||
getSite().getPage().addPartListener(partListener);
|
getSite().getPage().addPartListener(partListener);
|
||||||
|
|
||||||
|
// Make the Actions for the Context Menu
|
||||||
|
makeActions();
|
||||||
|
getActionGroup().fillActionBars(getViewSite().getActionBars());
|
||||||
|
updateActionBars((IStructuredSelection) viewer.getSelection());
|
||||||
|
|
||||||
|
|
||||||
if (memento != null) {
|
if (memento != null) {
|
||||||
restoreState(memento);
|
restoreState(memento);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue