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

[363392] system table views shows open view actions when they shouldn't

This commit is contained in:
David McKnight 2011-11-09 22:08:33 +00:00
parent 75e324ad56
commit b2efe1be7a
2 changed files with 14 additions and 7 deletions

View file

@ -19,6 +19,7 @@
* David McKnight (IBM) - [224313] [api] Create RSE Events for MOVE and COPY holding both source and destination fields
* David McKnight (IBM) - [296877] Allow user to choose the attributes for remote search result
* David McKnight (IBM) - [357587] Custom sorter is changed to SystemTableViewSorter
* David McKnight (IBM) - [363392] system table views shows open view actions when they shouldn't
*******************************************************************************/
package org.eclipse.rse.internal.ui.view;
@ -1661,10 +1662,13 @@ public class SystemTableTreeView
SystemShowInTableAction showInTableAction = getShowInTableAction();
openToPerspectiveAction.setSelection(selection);
showInTableAction.setSelection(selection);
//menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, openToAction.getSubMenu());
menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, openToPerspectiveAction);
menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, showInTableAction);
if (_selectionShowOpenViewActions){
//menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, openToAction.getSubMenu());
menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, openToPerspectiveAction);
menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, showInTableAction);
}
}

View file

@ -30,6 +30,7 @@
* David McKnight (IBM) - [215814] [performance] Duplicate Queries between Table and Remote Systems View
* David McKnight (IBM) - [340912] inconsistencies with columns in RSE table viewers
* David McKnight (IBM) - [357587] Custom sorter is changed to SystemTableViewSorter
* David McKnight (IBM) - [363392] system table views shows open view actions when they shouldn't
********************************************************************************/
package org.eclipse.rse.ui.view;
@ -2047,10 +2048,12 @@ public class SystemTableView
SystemShowInTableAction showInTableAction = getShowInTableAction();
openToPerspectiveAction.setSelection(selection);
showInTableAction.setSelection(selection);
//menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, openToAction.getSubMenu());
menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, openToPerspectiveAction);
menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, showInTableAction);
if (_selectionShowOpenViewActions){
//menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, openToAction.getSubMenu());
menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, openToPerspectiveAction);
menu.appendToGroup(ISystemContextMenuConstants.GROUP_OPEN, showInTableAction);
}
}