Lines 143-148
Link Here
|
143 |
} |
143 |
} |
144 |
}); |
144 |
}); |
145 |
removeRootAction = new RemoveRootAction(viewer.getControl().getShell()); |
145 |
removeRootAction = new RemoveRootAction(viewer.getControl().getShell()); |
|
|
146 |
removeRootAction.selectionChanged((IStructuredSelection)null); |
147 |
IActionBars bars = getViewSite().getActionBars(); |
148 |
bars.setGlobalActionHandler(IWorkbenchActionConstants.DELETE, removeRootAction); |
146 |
super.contributeActions(); |
149 |
super.contributeActions(); |
147 |
} |
150 |
} |
148 |
|
151 |
|
Lines 171-178
Link Here
|
171 |
if (newAnonAction != null) |
174 |
if (newAnonAction != null) |
172 |
sub.add(newAnonAction); |
175 |
sub.add(newAnonAction); |
173 |
manager.add(removeRootAction); |
176 |
manager.add(removeRootAction); |
174 |
IActionBars bars = getViewSite().getActionBars(); |
|
|
175 |
bars.setGlobalActionHandler(IWorkbenchActionConstants.DELETE, removeRootAction); |
176 |
} |
177 |
} |
177 |
|
178 |
|
178 |
/* |
179 |
/* |