[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-8602) Too many error icons on file content in Project Explorer

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Mar 17 13:19:59 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-8602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viacheslav Kabanovich updated JBIDE-8602:
-----------------------------------------

    Attachment: JBIDE-8602.patch


> Too many error icons on file content in Project Explorer
> --------------------------------------------------------
>
>                 Key: JBIDE-8602
>                 URL: https://issues.jboss.org/browse/JBIDE-8602
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: common
>    Affects Versions: 3.2.0.Final
>            Reporter: Viacheslav Kabanovich
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.2.1, 3.3.0.M1
>
>         Attachments: JBIDE-8602.patch, TooManyErrorIcons.png
>
>
> If a file, for which JBoss Tools provide content extension to Project explorer, contains an error, all node icons under file node are decorated by the error icon.
> The cause of that is adapting of XModelObject to IResource by implementing getAdapter(Class). It was done to fix JBIDE-7555 - since Eclipse services that init actions/wizards/etc by resources need selected object to be adaptable to IResource. But Project Explorer in decorating nodes, also adapts each node to IResource, and if the resource has error markers on it, marks each node as error node.
> The solution is to adapt model object to resource not by implementing getAdapter() but by registering an adapter factory in 'org.eclipse.core.runtime.adapters'. Project Explorer does not look into factories, while other services do that.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list