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.ui.editors.text
Class FileDocumentProvider.FileSynchronizer


java.lang.Object
  extended by 
org.eclipse.ui.editors.text.FileDocumentProvider.FileSynchronizer
All Implemented Interfaces:
EventListener, IResourceChangeListener, IResourceDeltaVisitor
Enclosing class:
FileDocumentProvider

protected class FileDocumentProvider.FileSynchronizer
extends Object
implements IResourceChangeListener, IResourceDeltaVisitor

Synchronizes the document with external resource changes.


Field Summary
protected   IFileEditorInput fFileEditorInput
          The file editor input.
protected  boolean fIsInstalled
          A flag indicating whether this synchronizer is installed or not.
 
Constructor Summary
FileDocumentProvider.FileSynchronizer ( FileEditorInput fileEditorInput)
          Deprecated. use FileSynchronizer(IFileEditorInput)
FileDocumentProvider.FileSynchronizer ( IFileEditorInput fileEditorInput)
          Creates a new file synchronizer.
 
Method Summary
protected   IFile getFile ()
          Returns the file wrapped by the file editor input.
 void install ()
          Installs the synchronizer on the input's file.
 void resourceChanged ( IResourceChangeEvent e)
          Notifies this listener that some resource changes are happening, or have already happened.
 void uninstall ()
          Uninstalls the synchronizer from the input's file.
protected  void update ( Runnable runnable)
          Posts the update code "behind" the running operation.
 boolean visit ( IResourceDelta delta)
          Visits the given resource delta.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fFileEditorInput

protected 
IFileEditorInput fFileEditorInput
The file editor input.


fIsInstalled

protected boolean fIsInstalled
A flag indicating whether this synchronizer is installed or not.

Since:
2.1
Constructor Detail

FileDocumentProvider.FileSynchronizer

public FileDocumentProvider.FileSynchronizer(
IFileEditorInput fileEditorInput)
Creates a new file synchronizer. Is not yet installed on a resource.

Parameters:
fileEditorInput - the editor input to be synchronized

FileDocumentProvider.FileSynchronizer

public FileDocumentProvider.FileSynchronizer(
FileEditorInput fileEditorInput)
Deprecated. use FileSynchronizer(IFileEditorInput)

Creates a new file synchronizer which is not yet installed on a resource.

Parameters:
fileEditorInput - the editor input to be synchronized
Method Detail

getFile

protected 
IFile getFile()
Returns the file wrapped by the file editor input.

Returns:
the file wrapped by the editor input associated with that synchronizer

install

public void install()
Installs the synchronizer on the input's file.


uninstall

public void uninstall()
Uninstalls the synchronizer from the input's file.


resourceChanged

public void resourceChanged(
IResourceChangeEvent e)
Description copied from interface: IResourceChangeListener
Notifies this listener that some resource changes are happening, or have already happened.

The supplied event gives details. This event object (and the resource delta within it) is valid only for the duration of the invocation of this method.

Note: This method is called by the platform; it is not intended to be called directly by clients.

Note that during resource change event notification, further changes to resources may be disallowed.

Specified by:
resourceChanged in interface IResourceChangeListener
Parameters:
e - the resource change event
See Also:
IResourceDelta

visit

public boolean visit(
IResourceDelta delta)
              throws 
CoreException
Description copied from interface: IResourceDeltaVisitor
Visits the given resource delta.

Specified by:
visit in interface IResourceDeltaVisitor
Returns:
true if the resource delta's children should be visited; false if they should be skipped.
Throws:
CoreException - if the visit fails for some reason.

update

protected void update(
Runnable runnable)
Posts the update code "behind" the running operation.

Parameters:
runnable - the update code

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