Eclipse Platform
Release 3.2

org.eclipse.ui.views.markers
Class WorkbenchMarkerResolution

java.lang.Object
  extended byorg.eclipse.ui.views.markers.WorkbenchMarkerResolution
All Implemented Interfaces:
IMarkerResolution, IMarkerResolution2

public abstract class WorkbenchMarkerResolution
extends Object
implements IMarkerResolution2

WorkbenchMarkerResolution is the resolution that can be grouped with others that are similar to allow multi selection.

Since:
3.2 NOTE: This API is experimental and subject to change in the 3.2 development cycle.

Constructor Summary
WorkbenchMarkerResolution()
           
 
Method Summary
 boolean canBeGroupedWith(WorkbenchMarkerResolution resolution)
          Deprecated. This method is no longer in use and will be deleted during 3.2 M5.
 IMarker[] findOtherMarkers(IMarker[] markers)
          Iterate through the list of supplied markers.
 WorkbenchMarkerResolution getUpdatedResolution()
          Deprecated. This method is no longer in use and will be deleted during 3.2 M5.
 void run(IMarker[] markers, IProgressMonitor monitor)
          Runs this resolution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IMarkerResolution2
getDescription, getImage
 
Methods inherited from interface org.eclipse.ui.IMarkerResolution
getLabel, run
 

Constructor Detail

WorkbenchMarkerResolution

public WorkbenchMarkerResolution()
Method Detail

canBeGroupedWith

public boolean canBeGroupedWith(WorkbenchMarkerResolution resolution)
Deprecated. This method is no longer in use and will be deleted during 3.2 M5.

Return whether or not the receiver can be grouped with resolution in the Quick Fix dialog.

Parameters:
resolution -
Returns:
boolean true if the receiver can be grouped with resolution
See Also:
findOtherMarkers(IMarker[])

getUpdatedResolution

public WorkbenchMarkerResolution getUpdatedResolution()
Deprecated. This method is no longer in use and will be deleted during 3.2 M5.

Return an updated WorkbenchMarkerResolution for the receiver. This is called after another WorkbenchMarkerResolution has been applied in changes are required.

Returns:
WorkbenchMarkerResolution
See Also:
findOtherMarkers(IMarker[])

findOtherMarkers

public IMarker[] findOtherMarkers(IMarker[] markers)
Iterate through the list of supplied markers. Return any that can also have the receiver applied to them.

Parameters:
markers -
Returns:
IMarker[] NOTE: This method will become abstract for 3.2 M5.

run

public void run(IMarker[] markers,
                IProgressMonitor monitor)
Runs this resolution. Resolve all markers. markers must be a subset of the markers returned by findOtherMarkers(IMarker[]).

Parameters:
markers - The markers to resolve, not null
monitor - The monitor to report progress

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.