TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.hyades.ui.adapter
Class SynchronizedEditorAdapter

java.lang.Object
  extended by org.eclipse.hyades.ui.adapter.SynchronizedEditorAdapter
All Implemented Interfaces:
ISynchronizedEditorAdapter

public class SynchronizedEditorAdapter
extends java.lang.Object
implements ISynchronizedEditorAdapter

Implementation of the ISynchronizedEditorAdapter interface.


Constructor Summary
SynchronizedEditorAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedEditorAdapter

public SynchronizedEditorAdapter()
Method Detail

reload

public boolean reload()
Description copied from interface: ISynchronizedEditorAdapter
Triggers a reload in the editor.

Specified by:
reload in interface ISynchronizedEditorAdapter
Returns:
true if the editor was reloaded or false otherwise.
See Also:
org.eclipse.hyades.ui.internal.editor.ISynchronizedEditorAdapter#reload()

doSaveEditorFile

public boolean doSaveEditorFile(boolean wasDeleted)
Description copied from interface: ISynchronizedEditorAdapter
This method is invoked when the editor content should be saved.

Specified by:
doSaveEditorFile in interface ISynchronizedEditorAdapter
Parameters:
wasDeleted - indicates whether the editor file has been deleted.
Returns:
true if the editor synchronizer should not perform the default treatment.
See Also:
ISynchronizedEditorAdapter.doSaveEditorFile(boolean)

editorFileDeleted

public boolean editorFileDeleted()
Description copied from interface: ISynchronizedEditorAdapter
This method is invoked when the editor file has been deleted.

Specified by:
editorFileDeleted in interface ISynchronizedEditorAdapter
Returns:
true if the editor synchronizer should not perform the default treatment.
See Also:
org.eclipse.hyades.ui.internal.editor.ISynchronizedEditorAdapter#editorFileDeleted()

editorFileChanged

public boolean editorFileChanged()
Description copied from interface: ISynchronizedEditorAdapter
This method is invoked when the editor file has been changed.

Specified by:
editorFileChanged in interface ISynchronizedEditorAdapter
Returns:
true if the editor synchronizer should not perform the default treatment.
See Also:
org.eclipse.hyades.ui.internal.editor.ISynchronizedEditorAdapter#editorFileChanged()

editorFileWriteAccessChanged

public boolean editorFileWriteAccessChanged(boolean isReadOnly)
Description copied from interface: ISynchronizedEditorAdapter
This method is invoked when the editor file write access has been changed.

Specified by:
editorFileWriteAccessChanged in interface ISynchronizedEditorAdapter
Returns:
true if the editor synchronizer should not perform the default treatment.
See Also:
org.eclipse.hyades.ui.internal.editor.ISynchronizedEditorAdapter#editorFileWriteAccessChanged(boolean)

handle

public void handle(java.util.List changedFiles,
                   java.util.List removedFiles)
Description copied from interface: ISynchronizedEditorAdapter
Handles modifications in one or more monitored files. The lists contains the modified IFiles.

Specified by:
handle in interface ISynchronizedEditorAdapter
See Also:
org.eclipse.hyades.ui.internal.editor.ISynchronizedEditorAdapter#handle(java.util.List, java.util.List)

TPTP 4.6.0 Platform Project
Public API Specification