org.eclipse.xtext.ui.editor.validation
Class AddMarkersOperation

java.lang.Object
  extended by org.eclipse.ui.actions.WorkspaceModifyOperation
      extended by org.eclipse.xtext.ui.editor.validation.AddMarkersOperation
All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableWithProgress, org.eclipse.jface.operation.IThreadListener

public class AddMarkersOperation
extends org.eclipse.ui.actions.WorkspaceModifyOperation

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
AddMarkersOperation(org.eclipse.core.resources.IResource resource, java.util.List<Issue> issues, java.util.Set<java.lang.String> markerIds, boolean deleteMarkers, MarkerCreator markerCreator)
           
AddMarkersOperation(org.eclipse.core.resources.IResource resource, java.util.List<Issue> issues, java.lang.String markerId, boolean deleteMarkers, MarkerCreator markerCreator)
          Deprecated. 
 
Method Summary
protected  void execute(org.eclipse.core.runtime.IProgressMonitor monitor)
          Performs the steps that are to be treated as a single logical workspace change.
 java.lang.String getMarkerId()
          Deprecated. use getMarkerIds() instead.
 com.google.common.collect.ImmutableList<java.lang.String> getMarkerIds()
           
 
Methods inherited from class org.eclipse.ui.actions.WorkspaceModifyOperation
getRule, run, threadChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddMarkersOperation

@Deprecated
public AddMarkersOperation(org.eclipse.core.resources.IResource resource,
                                      java.util.List<Issue> issues,
                                      java.lang.String markerId,
                                      boolean deleteMarkers,
                                      MarkerCreator markerCreator)
Deprecated. 


AddMarkersOperation

public AddMarkersOperation(org.eclipse.core.resources.IResource resource,
                           java.util.List<Issue> issues,
                           java.util.Set<java.lang.String> markerIds,
                           boolean deleteMarkers,
                           MarkerCreator markerCreator)
Method Detail

getMarkerId

@Deprecated
public java.lang.String getMarkerId()
Deprecated. use getMarkerIds() instead.

Returns:
the first markerID if any.

getMarkerIds

public com.google.common.collect.ImmutableList<java.lang.String> getMarkerIds()

execute

protected void execute(org.eclipse.core.runtime.IProgressMonitor monitor)
                throws org.eclipse.core.runtime.CoreException,
                       java.lang.reflect.InvocationTargetException,
                       java.lang.InterruptedException
Description copied from class: org.eclipse.ui.actions.WorkspaceModifyOperation
Performs the steps that are to be treated as a single logical workspace change.

Subclasses must implement this method.

Specified by:
execute in class org.eclipse.ui.actions.WorkspaceModifyOperation
Parameters:
monitor - the progress monitor to use to display progress and field user requests to cancel
Throws:
org.eclipse.core.runtime.CoreException - if the operation fails due to a CoreException
java.lang.reflect.InvocationTargetException - if the operation fails due to an exception other than CoreException
java.lang.InterruptedException - if the operation detects a request to cancel, using IProgressMonitor.isCanceled(), it should exit by throwing InterruptedException. It is also possible to throw OperationCanceledException, which gets mapped to InterruptedException by the run method.