[jbosstools-issues] [JBoss JIRA] (JBIDE-15000) Show In > Cheatsheets is enabled for projects that don't have any cheatsheets

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Tue Jun 25 17:40:20 EDT 2013


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

Snjezana Peco commented on JBIDE-15000:
---------------------------------------

{quote}
A) if we can effeciently detect it we should not show the menu entry there
{quote}

It isn't possible to perform that using the Show In menu. The menu is populated with all the workbench parts (views) implementing IShowInTarget. Its items don't depend on a selection. The same menu is got by right-clicking a project, folder, package, class ...

{quote} 
B) if A not possible at least not open empty cheatsheet view but instead just show error in status bar with something like: "No cheatsheet found for project: <projectname>"
{quote}

That is partially possible. We can show an error in the status bar, but can't suppress opening the Cheat Sheets view. The Eclipse platform opens the Cheat Sheets view before we get control.
You can test this in the following way:

- close the Forge Console view
- right click some project and call Show In<Forge Console
You will get the "Forge Not Running" dialog, but the Forge Console view is already opened

We could add the "Open In Cheat Sheets view" action that would be shown only for those projects that contain a cheatcheet.
                
> Show In > Cheatsheets is enabled for projects that don't have any cheatsheets 
> ------------------------------------------------------------------------------
>
>                 Key: JBIDE-15000
>                 URL: https://issues.jboss.org/browse/JBIDE-15000
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: project-examples
>    Affects Versions: 4.1.0.Beta2
>            Reporter: Max Rydahl Andersen
>            Assignee: Snjezana Peco
>             Fix For: 4.1.0.CR1
>
>
> Show in > Cheat sheets shows up even for projects without a .cheetsheet.xml and when clicked opens cheatsheet view and "beeps".
> A) if we can effeciently detect it we should not show the menu entry there
> B) if A not possible at least not open empty cheatsheet view but instead just show error in status  bar with something like: "No cheatsheet found for project: <projectname>"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list