edu.rice.cs.drjava.ui.avail
Class DefaultGUIAvailabilityNotifier

java.lang.Object
  extended by edu.rice.cs.drjava.model.EventNotifier<GUIAvailabilityListener>
      extended by edu.rice.cs.drjava.ui.avail.GUIAvailabilityNotifier
          extended by edu.rice.cs.drjava.ui.avail.DefaultGUIAvailabilityNotifier
All Implemented Interfaces:
GUIAvailabilityListener

public class DefaultGUIAvailabilityNotifier
extends GUIAvailabilityNotifier

Convenience methods for starting and finishing tasks that use multiple components. No methods on this class should be synchronized using traditional Java synchronization!

Version:
$Id: DefaultGUIAvailabilityNotifier.java 5355 2010-08-11 21:20:32Z mgricken $

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.rice.cs.drjava.ui.avail.GUIAvailabilityListener
GUIAvailabilityListener.ComponentType
 
Field Summary
 
Fields inherited from class edu.rice.cs.drjava.ui.avail.GUIAvailabilityNotifier
_values
 
Fields inherited from class edu.rice.cs.drjava.model.EventNotifier
_listeners, _lock
 
Constructor Summary
DefaultGUIAvailabilityNotifier()
           
 
Method Summary
 void javadoc(boolean available)
          Set the availability of tasks needed for Javadoc, i.e.
 void javadocFinished()
          Make the tasks needed for Javadoc, i.e.
 void javadocStarted()
          Make the tasks needed for Javadoc, i.e.
 void junit(boolean available)
          Set the availability of tasks needed for JUnit, i.e.
 void junitFinished()
          Make the tasks needed for JUnit, i.e.
 void junitStarted()
          Make the tasks needed for JUnit, i.e.
 
Methods inherited from class edu.rice.cs.drjava.ui.avail.GUIAvailabilityNotifier
availabilityChanged, available, ensureAvailabilityIs, ensureAvailable, ensureUnavailable, getCount, isAvailable, notifyListeners, unavailable
 
Methods inherited from class edu.rice.cs.drjava.model.EventNotifier
addListener, removeAllListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGUIAvailabilityNotifier

public DefaultGUIAvailabilityNotifier()
Method Detail

junit

public void junit(boolean available)
Set the availability of tasks needed for JUnit, i.e. JUNIT and COMPILER. The availabilities can be nested. JUNIT is the main component, so its availability is necessarily changed. JUNIT may invoke the COMPILER, so its availability is changed too.

Parameters:
available - true to make available, false to make unavailable

junitStarted

public void junitStarted()
Make the tasks needed for JUnit, i.e. JUNIT and COMPILER, unavailable.


junitFinished

public void junitFinished()
Make the tasks needed for JUnit, i.e. JUNIT and COMPILER, available.


javadoc

public void javadoc(boolean available)
Set the availability of tasks needed for Javadoc, i.e. JAVADOC and COMPILER. The availabilities can be nested. JAVADOC is the main component, so its availability is necessarily changed. JAVADOC may invoke the COMPILER, so its availability is changed too.

Parameters:
available - true to make available, false to make unavailable

javadocStarted

public void javadocStarted()
Make the tasks needed for Javadoc, i.e. JAVADOC and COMPILER, unavailable.


javadocFinished

public void javadocFinished()
Make the tasks needed for Javadoc, i.e. JAVADOC and COMPILER, unavailable.