[jbosstools-issues] [JBoss JIRA] (JBIDE-25546) Explorer: context menu has "Delete Resource" available even if there's nothing selected
Andre Dietisheim (JIRA)
issues at jboss.org
Mon Jan 8 09:07:01 EST 2018
[ https://issues.jboss.org/browse/JBIDE-25546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13511233#comment-13511233 ]
Andre Dietisheim commented on JBIDE-25546:
------------------------------------------
I think that the delete resource entry in the context menu is visible because the handler for it is active if the properties view is active:
{code:title=plugin.xml in openshift.ui}
<handler
class="org.jboss.tools.openshift.internal.ui.handler.DeleteResourceHandler"
commandId="org.eclipse.ui.edit.delete">
<activeWhen>
<or>
<with variable="activePartId">
<equals value="org.eclipse.ui.views.PropertySheet" />
</with>
<with
variable="selection">
<iterate>
<and>
<adapt type="com.openshift.restclient.model.IResource" />
</and>
</iterate>
</with>
</or>
</activeWhen>
</handler>
{code}
> Explorer: context menu has "Delete Resource" available even if there's nothing selected
> ---------------------------------------------------------------------------------------
>
> Key: JBIDE-25546
> URL: https://issues.jboss.org/browse/JBIDE-25546
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.5.2.AM3
> Reporter: Andre Dietisheim
> Priority: Minor
> Labels: explorer
> Fix For: 4.5.x
>
> Attachments: explorer-context-menu.png
>
>
> # ASSERT: have Properties view visible
> # ASSERT: have nothing selected in OpenShift Explorer
> # EXEC: open the context menu in OpenShift Explorer
> Result:
> !explorer-context-menu.png!
> The context menu in OpenShift Explorer holds New > Connection which is right, but also a "Delete Resource" entry which makes no sense at all
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbosstools-issues
mailing list