[
https://issues.jboss.org/browse/JBIDE-19439?page=com.atlassian.jira.plugi...
]
Andre Dietisheim commented on JBIDE-19439:
------------------------------------------
The "Delete" key is bound to the different type of handlers (delete connection,
domain, application, etc.) via contexts. The context switching is implemented in the
OpenShiftExplorerView which switches contexts based on the type of the current selection.
{code:title=org.jboss.tools.common.ui/OpenShiftExplorerView}
private static final String CONNECTION_CONTEXT =
"org.jboss.tools.openshift.explorer.context.connection";
private static final String APPLICATION_CONTEXT =
"org.jboss.tools.openshift.explorer.context.application";
private static final String DOMAIN_CONTEXT =
"org.jboss.tools.openshift.explorer.context.domain";
...
private ISelectionChangedListener onSelectionChanged() {
return new ISelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent event) {
ISelection selection = event.getSelection();
if (UIUtils.isFirstElementOfType(IDomain.class, selection)) {
activate(DOMAIN_CONTEXT);
} else if (UIUtils.isFirstElementOfType(IApplication.class, selection)) {
activate(APPLICATION_CONTEXT);
} else if (UIUtils.isFirstElementOfType(ExpressConnection.class, selection)) {
// must be checked after domain, application, adapter may convert
// any resource to a connection
activate(CONNECTION_CONTEXT);
}
}
};
}
{code}
With JBIDE-19096 we moved the OpenShiftExplorerView to org.jboss.tools.openshift.common.ui
and it therefore has no access to v2 or v3 types and therefore cannot do the context
switching any more.
Explorer: Cannot delete v2 applications via "Del"-Key
-----------------------------------------------------
Key: JBIDE-19439
URL:
https://issues.jboss.org/browse/JBIDE-19439
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.3.0.Alpha2
Reporter: Andre Dietisheim
Priority: Minor
Fix For: 4.3.0.Alpha2
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)