mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 13:35:22 +02:00
Some JavaDoc for Build Variables change listeners
This commit is contained in:
parent
338da6c867
commit
147e2efc70
3 changed files with 16 additions and 0 deletions
|
@ -10,6 +10,9 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.core.cdtvariables;
|
package org.eclipse.cdt.internal.core.cdtvariables;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Listener to listen to Build Variables changes events.
|
||||||
|
*/
|
||||||
public interface ICdtVariableChangeListener {
|
public interface ICdtVariableChangeListener {
|
||||||
void variablesChanged(VariableChangeEvent event);
|
void variablesChanged(VariableChangeEvent event);
|
||||||
}
|
}
|
||||||
|
|
|
@ -651,10 +651,20 @@ public class UserDefinedVariableSupplier extends CoreMacroSupplierBase {
|
||||||
// protected void updateProjectInfo(int type, Object context){
|
// protected void updateProjectInfo(int type, Object context){
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a listener that will be notified of changes in Build Variables.
|
||||||
|
*
|
||||||
|
* @param listener - the listener to add
|
||||||
|
*/
|
||||||
public void addListener(ICdtVariableChangeListener listener){
|
public void addListener(ICdtVariableChangeListener listener){
|
||||||
fListeners.add(listener);
|
fListeners.add(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes a Build Variables change listener.
|
||||||
|
*
|
||||||
|
* @param listener - the listener to remove.
|
||||||
|
*/
|
||||||
public void removeListener(ICdtVariableChangeListener listener){
|
public void removeListener(ICdtVariableChangeListener listener){
|
||||||
fListeners.remove(listener);
|
fListeners.remove(listener);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,9 @@ package org.eclipse.cdt.internal.core.cdtvariables;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.cdtvariables.ICdtVariable;
|
import org.eclipse.cdt.core.cdtvariables.ICdtVariable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event describing Build Variables changes.
|
||||||
|
*/
|
||||||
public class VariableChangeEvent {
|
public class VariableChangeEvent {
|
||||||
private static final ICdtVariable[] EMPTY_VAR_ARRAY = new ICdtVariable[0];
|
private static final ICdtVariable[] EMPTY_VAR_ARRAY = new ICdtVariable[0];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue