Community
Participate
Working Groups
Steps to reproduce : -compare two ecore models. -click on the dropdown menu visible in the content viewer (Visualization of Structural Differences ) -choose text compare -the icon changes from an ecore icon to a 'dummy' one ( should be text icon ) - revert back to 'ecore file compare' does not redisplay the correct icon. reproducible : always, using any comparison engines.
I can reproduce this alright ... but I have no idea about what could cause this. Tomasz, could you point me to the bit of code that handles this icon? (I believe that it should be the icon of the file type; the one that is at the left of the "<label> Compare" label in between the structure and content panes of the compare editor.)
I think it's org.eclipse.compare.internal.CompareContentViewerSwitchingPane.setImage(Image) called from org.eclipse.compare.CompareViewerSwitchingPane.setInput(Object). Both are in org.eclipse.compare.
Thanks Tomasz, that was it. CompareContentViewerSwitchingPane.setImage(Image) asks the Compare Input for its image ... and I didn't properly implement CompareInput#getImage(). This has now fixed.