JDeveloper SCM API

oracle.ide.scm.env
Interface SCMEventThread


public interface SCMEventThread

Access to the framework's version operation thread.


Method Summary
 void invokeAndWait(java.lang.Runnable job)
          Causes job.run() to be executed synchronously on the thread of the version control framework.
 void invokeLater(java.lang.Runnable job)
          Causes job.run() to be executed asynchronously on the thread of the version control framework.
 boolean isBusy()
          Asks whether the thread of the version control framework has outstanding jobs yet to be processed.
 

Method Detail

invokeLater

public void invokeLater(java.lang.Runnable job)
Causes job.run() to be executed asynchronously on the thread of the version control framework. This will happen after all operations and tasks have been processed.
Parameters:
job - the runnable to queue.

invokeAndWait

public void invokeAndWait(java.lang.Runnable job)
                   throws java.lang.InterruptedException,
                          java.lang.reflect.InvocationTargetException
Causes job.run() to be executed synchronously on the thread of the version control framework. AWT This call will block until all pending operations and tasks have been processed and (then) job.run() returns.
Parameters:
job - the runnable to queue.
Throws:
java.lang.InterruptedException - InterruptedException - if we're interrupted while waiting for the version control thread to finish excecuting job.run().
java.lang.reflect.InvocationTargetException - if doRun.run() throws an exception.

isBusy

public boolean isBusy()
Asks whether the thread of the version control framework has outstanding jobs yet to be processed.
Returns:
a verdict on version event thread activity.

Copyright © 2002 Oracle Corporation