]
Vlado Pakan closed JBIDE-8602.
------------------------------
Verified on jbdevstudio-product-linux-gtk-4.1.0.v201105011951R-H359-M1.
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.M1, 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: