| |
|
| java.lang.Object org.netbeans.ChangeFirer
ChangeFirer | final class ChangeFirer (Code) | | Thread which fires changes in the modules.
Used to separate property change events and
lookup changes from the dynamic scope of the
changes themselves. Also to batch up possible
changes and avoid firing duplicates.
Accepts changes at any time
and fires them from within the mutex (as a reader).
author: Jesse Glick |
Inner Class :final public static class Change | |
Method Summary | |
public void | change(Change c) Add a change to the list of pending things to be fired. | public void | created(Module m) Add a module creation event to the list of pending things to be fired. | public void | deleted(Module m) Add a module deletion event to the list of pending things to be fired. | public void | fire() Fire all pending changes. |
ChangeFirer | public ChangeFirer(ModuleManager mgr)(Code) | | Make a new change firer.
Parameters: mgr - the associated module manager |
change | public void change(Change c)(Code) | | Add a change to the list of pending things to be fired.
Parameters: c - the change which will be fired |
created | public void created(Module m)(Code) | | Add a module creation event to the list of pending things to be fired.
Parameters: m - the module whose creation event will be fired |
deleted | public void deleted(Module m)(Code) | | Add a module deletion event to the list of pending things to be fired.
Note that this will cancel any pending creation event for the same module!
Parameters: m - the module whose creation event will be fired |
fire | public void fire()(Code) | | Fire all pending changes.
While this is happening, the manager is locked in a read-only mode.
Should only be called from within a write mutex!
|
|
|
|