1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

[fix] ISystemContextMenuConstants.GROUP_NEW_NONCASCADING not consistently contributed to menu on system type level

This commit is contained in:
Uwe Stieber 2007-05-08 08:43:43 +00:00
parent cab2a024dd
commit a1b738992b

View file

@ -136,11 +136,10 @@ public class SystemViewConnectionAdapter
RSESystemTypeAdapter sysTypeAdapter = adapter instanceof RSESystemTypeAdapter ? (RSESystemTypeAdapter)adapter : null;
//updateAction.setValue(null); // reset
if (sysTypeAdapter == null
|| sysTypeAdapter.acceptContextMenuActionContribution(host, anotherConnectionAction.getClass())) {
if (sysTypeAdapter == null || sysTypeAdapter.acceptContextMenuActionContribution(host, anotherConnectionAction.getClass())) {
menu.add(menuGroup, anotherConnectionAction);
menu.appendToGroup(ISystemContextMenuConstants.GROUP_NEW, new GroupMarker(ISystemContextMenuConstants.GROUP_NEW_NONCASCADING));// user or BP/ISV additions
}
menu.appendToGroup(ISystemContextMenuConstants.GROUP_NEW, new GroupMarker(ISystemContextMenuConstants.GROUP_NEW_NONCASCADING));// user or BP/ISV additions
if (sysTypeAdapter == null
|| sysTypeAdapter.acceptContextMenuActionContribution(host, copyAction.getClass()))