Author: adietish
Date: 2010-12-14 04:27:39 -0500 (Tue, 14 Dec 2010)
New Revision: 27431
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/jobs/ChainedJob.java
Log:
added constructor without family-parameter
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/jobs/ChainedJob.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/jobs/ChainedJob.java 2010-12-14
09:18:53 UTC (rev 27430)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/jobs/ChainedJob.java 2010-12-14
09:27:39 UTC (rev 27431)
@@ -24,6 +24,10 @@
private IJobChangeListener listener;
private String family;
+ public ChainedJob(String name) {
+ this(name, null);
+ }
+
/**
* Create a new dependent job.
*
@@ -39,6 +43,9 @@
* @see Job#belongsTo(java.lang.Object)
*/
public boolean belongsTo(Object family) {
+ if (family == null) {
+ return false;
+ }
return this.family.equals(family);
}
Show replies by date