mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-08 17:45:24 +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,14 +835,17 @@ public class SystemView extends TreeViewer implements ISystemTree, ISystemResour
|
||||||
//{
|
//{
|
||||||
// ISystemViewElementAdapter nextAdapter = (ISystemViewElementAdapter)uniqueAdapters.nextElement();
|
// ISystemViewElementAdapter nextAdapter = (ISystemViewElementAdapter)uniqueAdapters.nextElement();
|
||||||
adapter.addActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
adapter.addActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
||||||
if (adapter instanceof AbstractSystemViewAdapter) {
|
|
||||||
|
if (adapter instanceof AbstractSystemViewAdapter)
|
||||||
|
{
|
||||||
|
|
||||||
AbstractSystemViewAdapter aVA = (AbstractSystemViewAdapter)adapter;
|
AbstractSystemViewAdapter aVA = (AbstractSystemViewAdapter)adapter;
|
||||||
// add remote actions
|
|
||||||
aVA.addCommonRemoteActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
|
||||||
|
|
||||||
// add dynamic menu popups
|
// add dynamic menu popups
|
||||||
aVA.addDynamicPopupMenuActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADDITIONS);
|
aVA.addDynamicPopupMenuActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADDITIONS);
|
||||||
|
|
||||||
|
// add remote actions
|
||||||
|
aVA.addCommonRemoteActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
|
@ -835,14 +835,17 @@ public class SystemView extends TreeViewer implements ISystemTree, ISystemResour
|
||||||
//{
|
//{
|
||||||
// ISystemViewElementAdapter nextAdapter = (ISystemViewElementAdapter)uniqueAdapters.nextElement();
|
// ISystemViewElementAdapter nextAdapter = (ISystemViewElementAdapter)uniqueAdapters.nextElement();
|
||||||
adapter.addActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
adapter.addActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
||||||
if (adapter instanceof AbstractSystemViewAdapter) {
|
|
||||||
|
if (adapter instanceof AbstractSystemViewAdapter)
|
||||||
|
{
|
||||||
|
|
||||||
AbstractSystemViewAdapter aVA = (AbstractSystemViewAdapter)adapter;
|
AbstractSystemViewAdapter aVA = (AbstractSystemViewAdapter)adapter;
|
||||||
// add remote actions
|
|
||||||
aVA.addCommonRemoteActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADAPTERS);
|
|
||||||
|
|
||||||
// add dynamic menu popups
|
// add dynamic menu popups
|
||||||
aVA.addDynamicPopupMenuActions(ourMenu, selection, shell, ISystemContextMenuConstants.GROUP_ADDITIONS);
|
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