[jbosstools-issues] [JBoss JIRA] (JBIDE-24748) Enable Show In Console for cdk 3

Rob Stryker (JIRA) issues at jboss.org
Thu Jul 27 14:48:00 EDT 2017


    [ https://issues.jboss.org/browse/JBIDE-24748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13441338#comment-13441338 ] 

Rob Stryker commented on JBIDE-24748:
-------------------------------------

[~mmalina] I investigated this a bit. It seems it *is* enabled, but only for a brief period ;) 

See... the show-in-console action is only enabled when:
  1) The selection is non-null
  2) The server is not stopped
  3) The server has a 'launch' object
  4) The launch isn't complete yet 
  5) And the launch has processes

It turns out, once your startup command is completed, you can't show in console anymore. 

Now, I also noticed a bug... click a CDK server (stopped), and start it. Show-in-console will be disabled. Why?  It seems it only re-computes the action's status as valid or invalid when you change the selection, regardless of whether the server has been asked to start or stop. The workaround here is to unselect (ctrl+click) the server, then select it again. The action will re-check itself and then become enabled. Awesome, huh? 

Now, I can probably submit a bugzilla entry for the 2nd bug, but the first probably isn't possible. The show-in-console action really shouldn't be enabled for a launch with no processes or all terminated processes. 

> Enable Show In Console for cdk 3
> --------------------------------
>
>                 Key: JBIDE-24748
>                 URL: https://issues.jboss.org/browse/JBIDE-24748
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdk
>    Affects Versions: 4.5.0.AM2
>            Reporter: Martin Malina
>            Assignee: Rob Stryker
>
> CDK 2 used the Terminal view, CDK 3 switched back to usiong Console view. So Show In Console on the server adapter should be enabled.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list