TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.hyades.ui.adapter
Interface ISynchronizedEditorAdapter

All Known Implementing Classes:
SynchronizedEditorAdapter

public interface ISynchronizedEditorAdapter

Instances of this interface are used to customized the operations that the org.eclipse.hyades.ui.internal.editor.EditorSynchronizer performs to synchronize the editor with the OS file system or with the Eclipse's workspace.


Method Summary
 boolean doSaveEditorFile(boolean wasDeleted)
          This method is invoked when the editor content should be saved.
 boolean editorFileChanged()
          This method is invoked when the editor file has been changed.
 boolean editorFileDeleted()
          This method is invoked when the editor file has been deleted.
 boolean editorFileWriteAccessChanged(boolean isReadOnly)
          This method is invoked when the editor file write access has been changed.
 void handle(java.util.List changedFiles, java.util.List removedFiles)
          Handles modifications in one or more monitored files.
 boolean reload()
          Triggers a reload in the editor.
 

Method Detail

reload

boolean reload()
Triggers a reload in the editor.

Returns:
true if the editor was reloaded or false otherwise.

handle

void handle(java.util.List changedFiles,
            java.util.List removedFiles)
Handles modifications in one or more monitored files. The lists contains the modified IFiles.

Parameters:
changedFiles -
removedFiles -

editorFileDeleted

boolean editorFileDeleted()
This method is invoked when the editor file has been deleted.

Returns:
true if the editor synchronizer should not perform the default treatment.

editorFileChanged

boolean editorFileChanged()
This method is invoked when the editor file has been changed.

Returns:
true if the editor synchronizer should not perform the default treatment.

editorFileWriteAccessChanged

boolean editorFileWriteAccessChanged(boolean isReadOnly)
This method is invoked when the editor file write access has been changed.

Parameters:
isReadOnly -
Returns:
true if the editor synchronizer should not perform the default treatment.

doSaveEditorFile

boolean doSaveEditorFile(boolean wasDeleted)
This method is invoked when the editor content should be saved.

Parameters:
wasDeleted - indicates whether the editor file has been deleted.
Returns:
true if the editor synchronizer should not perform the default treatment.

TPTP 4.6.0 Platform Project
Public API Specification