/** * Register a listener for class events. * * @param listener */ public void addClassListener(ClassListener listener) { if (listener != null) { synchronized (classListeners) { classListeners.add(listener); } } }
/** Registers a listener for invocation events. */ public void addInvocationListener(InvocationListener listener) { if (listener != null) { synchronized (invocationListeners) { invocationListeners.add(listener); } } }
/** Registers a listener for compile events. */ public void addCompileListener(CompileListener listener) { if (listener != null) { synchronized (compileListeners) { compileListeners.add(listener); } } }
/** Registers a listener for package events. */ public void addPackageListener(PackageListener listener) { if (listener != null) { synchronized (packageListeners) { packageListeners.add(listener); } } }
/** Registers a listener for application events. */ public void addApplicationListener(ApplicationListener listener) { if (listener != null) { synchronized (applicationListeners) { applicationListeners.add(listener); } } }
/** Registers a listener for all the events generated by BlueJ. */ public void addExtensionEventListener(ExtensionEventListener listener) { if (listener != null) { synchronized (eventListeners) { eventListeners.add(listener); } } }