Eclipse Platform
Release 3.1

org.eclipse.core.filebuffers.manipulation
Class FileBufferOperationRunner

java.lang.Object
  extended byorg.eclipse.core.filebuffers.manipulation.FileBufferOperationRunner

public class FileBufferOperationRunner
extends Object

A FileBufferOperationRunner executes IFileBufferOperation. The runner takes care of all aspects that are not operation specific.

This class is not intended to be subclassed. Clients instantiate this class.

Since:
3.1
See Also:
IFileBufferOperation

Constructor Summary
FileBufferOperationRunner(IFileBufferManager fileBufferManager, Object validationContext)
          Creates a new file buffer operation runner.
 
Method Summary
 void execute(IPath[] locations, IFileBufferOperation operation, IProgressMonitor monitor)
          Executes the given operation for all file buffers specified by the given locations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBufferOperationRunner

public FileBufferOperationRunner(IFileBufferManager fileBufferManager,
                                 Object validationContext)
Creates a new file buffer operation runner.

Parameters:
fileBufferManager - the file buffer manager
validationContext - the validationContext
Method Detail

execute

public void execute(IPath[] locations,
                    IFileBufferOperation operation,
                    IProgressMonitor monitor)
             throws CoreException,
                    OperationCanceledException
Executes the given operation for all file buffers specified by the given locations.

Parameters:
locations - the file buffer locations
operation - the operation to be performed
monitor - the progress monitor
Throws:
CoreException - in case of error
OperationCanceledException - in case the execution get canceled

Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

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