1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Fix for 227929: After fixing all warnings/errors, the warning icon is still in the tab

This commit is contained in:
Anton Leherbauer 2008-04-22 07:49:09 +00:00
parent ee5837ec29
commit 9faad7775e

View file

@ -72,12 +72,12 @@ public class CEditorErrorTickUpdater implements IProblemChangedListener {
* @see IProblemChangedListener#problemsChanged(IResource[], boolean)
*/
public void problemsChanged(IResource[] resourcesChanged, boolean isMarkerChange) {
if (isMarkerChange) {
if (!isMarkerChange) {
return;
}
IEditorInput input= fCEditor.getEditorInput();
if (input != null) { // might run async, tests needed
ICElement celement= (ICElement) input.getAdapter(ICElement.class);
ICElement celement= fCEditor.getInputCElement();
if (celement != null) {
IResource resource= celement.getResource();
if (resource == null) {
@ -91,7 +91,7 @@ public class CEditorErrorTickUpdater implements IProblemChangedListener {
}
}
}
}
}
public void updateEditorImage(ICElement celement) {
Image titleImage= fCEditor.getTitleImage();
@ -113,7 +113,7 @@ public class CEditorErrorTickUpdater implements IProblemChangedListener {
}
});
}
}
}
public void dispose() {
fLabelProvider.dispose();