1
0
Fork 0
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:
David McKnight 2007-01-23 14:07:17 +00:00
parent 5607bb0e30
commit 61cbdb14c7
2 changed files with 24 additions and 18 deletions

View file

@ -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);
}
//}
}

View file

@ -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);
}
//}
}