Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.resources
Class QSYSTempFileListener

java.lang.Object
  extended by SystemTempFileListener
      extended by com.ibm.etools.iseries.rse.ui.resources.QSYSTempFileListener

public class QSYSTempFileListener
extends SystemTempFileListener

This class manages listening for resource changes within our temp file project It is used for listening to saves made in the editor so that we can upload changes to the remote members.


Field Summary
static String copyright
           
 
Constructor Summary
QSYSTempFileListener()
           
 
Method Summary
protected  boolean doesHandle(ISubSystem subsystem)
          Indicate whether this tempfile listener handles the specified
protected  void doResourceSynchronization(ISubSystem subsystem, IFile tempFile, String resourceId, IProgressMonitor monitor)
          Synchronize the specified remote file with the temporary local file using the specified remote file subsystemb
protected  void doResourceSynchronization(SubSystem subsystem, IFile tempFile, String resourceId)
          Deprecated. now use monitor
 QSYSEditableRemoteSourceFileMember getEditedMember(IQSYSMember member)
           
static QSYSTempFileListener getListener()
          Return singleton
static boolean isSynchronizing()
           
 void registerEditedMember(QSYSEditableRemoteSourceFileMember editMember)
           
 void unregisterEditedMember(QSYSEditableRemoteSourceFileMember editMember)
           
 void upload(QSYSObjectSubSystem subsystem, IFile tempFile, String resourceId, IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright
Constructor Detail

QSYSTempFileListener

public QSYSTempFileListener()
Method Detail

doesHandle

protected boolean doesHandle(ISubSystem subsystem)
Indicate whether this tempfile listener handles the specified

Parameters:
subsystem - the subsystem to check
Returns:
whether it handles this or not

doResourceSynchronization

protected void doResourceSynchronization(ISubSystem subsystem,
                                         IFile tempFile,
                                         String resourceId,
                                         IProgressMonitor monitor)
Synchronize the specified remote file with the temporary local file using the specified remote file subsystemb

Parameters:
subsystem - the remote file subsystem of the remote file
tempFile - the temporary file
resourceId - the remote file

doResourceSynchronization

protected void doResourceSynchronization(SubSystem subsystem,
                                         IFile tempFile,
                                         String resourceId)
Deprecated. now use monitor

Parameters:
subsystem -
tempFile -
resourceId -

isSynchronizing

public static boolean isSynchronizing()

upload

public void upload(QSYSObjectSubSystem subsystem,
                   IFile tempFile,
                   String resourceId,
                   IProgressMonitor monitor)

getListener

public static QSYSTempFileListener getListener()
Return singleton


registerEditedMember

public void registerEditedMember(QSYSEditableRemoteSourceFileMember editMember)

unregisterEditedMember

public void unregisterEditedMember(QSYSEditableRemoteSourceFileMember editMember)

getEditedMember

public QSYSEditableRemoteSourceFileMember getEditedMember(IQSYSMember member)

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.