edu.colby.cs.JeSS.util
Class MarkerResolutionGenerator

java.lang.Object
  extended byedu.colby.cs.JeSS.util.MarkerResolutionGenerator
All Implemented Interfaces:
org.eclipse.ui.IMarkerResolutionGenerator

public class MarkerResolutionGenerator
extends java.lang.Object
implements org.eclipse.ui.IMarkerResolutionGenerator

This class provides the implementation for simple resolutions of JeSS security bugs. It is possible to ignore the individual marker, ignore all markers on a particular file, and to ignore all markers on a project. Further implementation of Error resolutions should be done in this class.

Author:
rspitler

Nested Class Summary
private  class MarkerResolutionGenerator.JeSSMarkerResolutionIgnore
          The resolution that allows the deletion of a single JeSS marker
private  class MarkerResolutionGenerator.JeSSMarkerResolutionIgnoreAllFile
          The resolution that allows the deletion of all markers in the containing file
private  class MarkerResolutionGenerator.JeSSMarkerResolutionIgnoreAllProject
          The resolution that allows the deletion of all markers in the containing the project
 
Constructor Summary
MarkerResolutionGenerator()
           
 
Method Summary
 org.eclipse.ui.IMarkerResolution[] getResolutions(org.eclipse.core.resources.IMarker marker)
          This method returns the array of possible markers resolutions for the given marker.
 boolean hasResolutions(org.eclipse.core.resources.IMarker marker)
          A boolean check to see if resolutions exist for the marker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkerResolutionGenerator

public MarkerResolutionGenerator()
Method Detail

getResolutions

public org.eclipse.ui.IMarkerResolution[] getResolutions(org.eclipse.core.resources.IMarker marker)
This method returns the array of possible markers resolutions for the given marker.

Specified by:
getResolutions in interface org.eclipse.ui.IMarkerResolutionGenerator
Parameters:
marker - - the marker to find resolutions for
Returns:
an array containing resolutionsfor the marker
See Also:
IMarkerResolutionGenerator.getResolutions(org.eclipse.core.resources.IMarker)

hasResolutions

public boolean hasResolutions(org.eclipse.core.resources.IMarker marker)
A boolean check to see if resolutions exist for the marker

Parameters:
marker - - the marker to check for resolutions
Returns:
booelan - depending upon existance of resolutions