Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.core.filebuffers.manipulation
Class GenericFileBufferOperationRunner


java.lang.Object
  extended by 
org.eclipse.core.filebuffers.manipulation.GenericFileBufferOperationRunner
Direct Known Subclasses:
FileBufferOperationRunner

public class GenericFileBufferOperationRunner
extends Object

A GenericFileBufferOperationRunner 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.3
See Also:
IFileBufferOperation
Restriction:
This class is not intended to be subclassed by clients.

Constructor Summary
GenericFileBufferOperationRunner ( IFileBufferManager fileBufferManager, Object validationContext)
          Creates a new file buffer operation runner.
 
Method Summary
protected  void commit ( IFileBuffer[] fileBuffers, IProgressMonitor progressMonitor)
           
protected   ISchedulingRule computeCommitRule ( IFileBuffer[] fileBuffers)
           
protected  void doCommit ( IFileBuffer[] fileBuffers, IProgressMonitor progressMonitor)
           
 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

GenericFileBufferOperationRunner

public GenericFileBufferOperationRunner(
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, or null if progress reporting is not desired
Throws:
CoreException - in case of error
OperationCanceledException - in case the execution get canceled

computeCommitRule

protected 
ISchedulingRule computeCommitRule(
IFileBuffer[] fileBuffers)

commit

protected void commit(
IFileBuffer[] fileBuffers,
                      
IProgressMonitor progressMonitor)
               throws 
CoreException
Throws:
CoreException

doCommit

protected void doCommit(
IFileBuffer[] fileBuffers,
                        
IProgressMonitor progressMonitor)
                 throws 
CoreException
Throws:
CoreException

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire