mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
kushal's change from 7.1 RSE to change the order of the menu popups
This commit is contained in:
parent
5607bb0e30
commit
61cbdb14c7
2 changed files with 24 additions and 18 deletions
|
@ -835,15 +835,18 @@ public class SystemView extends TreeViewer implements ISystemTree, ISystemResour
|
|||
//{
|
||||
// ISystemViewElementAdapter nextAdapter = (ISystemViewElementAdapter)uniqueAdapters.nextElement();
|
||||
adapter.addActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
||||
if (adapter instanceof AbstractSystemViewAdapter) {
|
||||
|
||||
AbstractSystemViewAdapter aVA = (AbstractSystemViewAdapter) adapter;
|
||||
// add remote actions
|
||||
aVA.addCommonRemoteActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
||||
|
||||
// add dynamic menu popups
|
||||
aVA.addDynamicPopupMenuActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADDITIONS);
|
||||
}
|
||||
|
||||
if (adapter instanceof AbstractSystemViewAdapter)
|
||||
{
|
||||
|
||||
AbstractSystemViewAdapter aVA = (AbstractSystemViewAdapter)adapter;
|
||||
|
||||
// add dynamic menu popups
|
||||
aVA.addDynamicPopupMenuActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADDITIONS);
|
||||
|
||||
// add remote actions
|
||||
aVA.addCommonRemoteActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
|
|
|
@ -835,15 +835,18 @@ public class SystemView extends TreeViewer implements ISystemTree, ISystemResour
|
|||
//{
|
||||
// ISystemViewElementAdapter nextAdapter = (ISystemViewElementAdapter)uniqueAdapters.nextElement();
|
||||
adapter.addActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
||||
if (adapter instanceof AbstractSystemViewAdapter) {
|
||||
|
||||
AbstractSystemViewAdapter aVA = (AbstractSystemViewAdapter) adapter;
|
||||
// add remote actions
|
||||
aVA.addCommonRemoteActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
||||
|
||||
// add dynamic menu popups
|
||||
aVA.addDynamicPopupMenuActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADDITIONS);
|
||||
}
|
||||
|
||||
if (adapter instanceof AbstractSystemViewAdapter)
|
||||
{
|
||||
|
||||
AbstractSystemViewAdapter aVA = (AbstractSystemViewAdapter)adapter;
|
||||
|
||||
// add dynamic menu popups
|
||||
aVA.addDynamicPopupMenuActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADDITIONS);
|
||||
|
||||
// add remote actions
|
||||
aVA.addCommonRemoteActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue