1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

cleanup: Javadoc, fields visibility

This commit is contained in:
Andrew Gvozdev 2010-02-09 02:48:25 +00:00
parent d248a3697f
commit 3b4c6e2a81

View file

@ -16,6 +16,9 @@ import java.util.EventObject;
import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IProject;
/** /**
* This class represents an event sent when the set of Make Target items
* in Make Targets View has changed.
*
* @noextend This class is not intended to be subclassed by clients. * @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients. * @noinstantiate This class is not intended to be instantiated by clients.
*/ */
@ -28,12 +31,13 @@ public class MakeTargetEvent extends EventObject {
public static final int PROJECT_ADDED = 4; public static final int PROJECT_ADDED = 4;
public static final int PROJECT_REMOVED = 5; public static final int PROJECT_REMOVED = 5;
IMakeTarget[] targets; private IMakeTarget[] targets;
IProject project; private int type;
int type;
/** /**
* @param source * @param source - the object on which the Event initially occurred.
* @param type - event type (e.g. TARGET_ADD, TARGET_CHANGED)
* @param target - make target affected
*/ */
public MakeTargetEvent(Object source, int type, IMakeTarget target) { public MakeTargetEvent(Object source, int type, IMakeTarget target) {
super(source); super(source);
@ -42,11 +46,11 @@ public class MakeTargetEvent extends EventObject {
} }
/** /**
* @param source * @param source - the object on which the Event initially occurred.
* @param type event type (e.g. TARGET_ADD, TARGET_CHANGED) * @param type - event type (e.g. TARGET_ADD, TARGET_CHANGED)
* @param targets array of MakeTargets * @param targets - array of MakeTargets
* @since 7.0
* *
* @since 7.0
*/ */
public MakeTargetEvent(Object source, int type, IMakeTarget[] targets) { public MakeTargetEvent(Object source, int type, IMakeTarget[] targets) {
super(source); super(source);
@ -55,10 +59,14 @@ public class MakeTargetEvent extends EventObject {
System.arraycopy(targets, 0, this.targets, 0, targets.length); System.arraycopy(targets, 0, this.targets, 0, targets.length);
} }
/**
* @param source - the object on which the Event initially occurred.
* @param type - event type (e.g. TARGET_ADD, TARGET_CHANGED)
* @param project - not used
*/
public MakeTargetEvent(Object source, int type, IProject project) { public MakeTargetEvent(Object source, int type, IProject project) {
super(source); super(source);
this.type = type; this.type = type;
this.project = project;
} }
public int getType() { public int getType() {
@ -66,8 +74,9 @@ public class MakeTargetEvent extends EventObject {
} }
/** /**
* @deprecated * @return the first target (for compatibility with old method).
* Use getTargets() instead. *
* @deprecated Use getTargets() instead.
*/ */
@Deprecated @Deprecated
public IMakeTarget getTarget() { public IMakeTarget getTarget() {
@ -75,6 +84,8 @@ public class MakeTargetEvent extends EventObject {
} }
/** /**
* @return MakeTargets passed in this event.
*
* @since 7.0 * @since 7.0
*/ */
public IMakeTarget[] getTargets() { public IMakeTarget[] getTargets() {