166048 - check-items, task-steps don't appear when using the publishing type "publish the processes selected below"
diff --git a/org.eclipse.epf.library/src/org/eclipse/epf/library/configuration/ConfigurationHelper.java b/org.eclipse.epf.library/src/org/eclipse/epf/library/configuration/ConfigurationHelper.java
index 18e82a1..d7c3596 100644
--- a/org.eclipse.epf.library/src/org/eclipse/epf/library/configuration/ConfigurationHelper.java
+++ b/org.eclipse.epf.library/src/org/eclipse/epf/library/configuration/ConfigurationHelper.java
@@ -66,6 +66,10 @@
private static boolean debug = LibraryPlugin.getDefault().isDebugging();
public static boolean isDescriptionElement(MethodElement element) {
+ if ( element == null ) {
+ return false;
+ }
+
return (element instanceof ContentDescription || element.eContainer() instanceof ContentDescription);
}
diff --git a/org.eclipse.epf.publishing/src/org/eclipse/epf/publishing/services/ProcessPublishingContentValidator.java b/org.eclipse.epf.publishing/src/org/eclipse/epf/publishing/services/ProcessPublishingContentValidator.java
index bbabb0b..f8af7d7 100644
--- a/org.eclipse.epf.publishing/src/org/eclipse/epf/publishing/services/ProcessPublishingContentValidator.java
+++ b/org.eclipse.epf.publishing/src/org/eclipse/epf/publishing/services/ProcessPublishingContentValidator.java
@@ -15,6 +15,7 @@
import java.util.Iterator;
import java.util.List;
+import org.eclipse.epf.library.configuration.ConfigurationHelper;
import org.eclipse.epf.library.util.LibraryUtil;
import org.eclipse.epf.publishing.PublishingPlugin;
import org.eclipse.epf.uma.BreakdownElement;
@@ -104,15 +105,20 @@
if ( !hasClosure() ) {
return true;
}
-
- if ( closureElements.contains(e) ) {
- return true;
- }
-
+
if ( e instanceof ContentCategory ) {
return true;
}
+ // 166048 - check-items, task-steps don't appear when using the publishing type "publish the processes selected below"
+ if ( ConfigurationHelper.isDescriptionElement(e) ) {
+ return true;
+ }
+
+ if ( closureElements.contains(e) ) {
+ return true;
+ }
+
if ( !(e instanceof Guidance) ) {
return false;
}