Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBIDE-13654 org.eclipse.core.internal.resources.ResourceException #165

Merged
merged 1 commit into from
Jul 11, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import java.util.ArrayList;

import org.eclipse.core.internal.resources.ResourceException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IResource;
Expand Down Expand Up @@ -133,16 +134,20 @@ public boolean hasResolutions(IMarker marker) {
return false;
}

private String getPreferenceKey(IMarker marker)throws CoreException{
private String getPreferenceKey(IMarker marker){
return marker.getAttribute(ValidationErrorManager.PREFERENCE_KEY_ATTRIBUTE_NAME, null);
}

private String getProblemType(IMarker marker)throws CoreException{
if(marker.exists()){
return marker.getType();
}else{
return null;
try{
return marker.getType();
}catch(ResourceException ex){
// do nothing, it could be marker which is not created and controlled by JBT,
// at the moment when we call method getType marker may be already deleted, see JBIDE-13654
}
}
return null;
}

private String getAttribute(Annotation annotation, String attributeName){
Expand Down