Author: bbrodt
Date: 2011-02-25 16:58:10 -0500 (Fri, 25 Feb 2011)
New Revision: 29354
Modified:
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/BPELUtils.java
Log:
https://issues.jboss.org/browse/JBIDE-8068
Modified:
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/BPELUtils.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/BPELUtils.java 2011-02-25
21:56:09 UTC (rev 29353)
+++
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/BPELUtils.java 2011-02-25
21:58:10 UTC (rev 29354)
@@ -50,6 +50,7 @@
import org.eclipse.bpel.model.proxy.OperationProxy;
import org.eclipse.bpel.model.proxy.PortTypeProxy;
import org.eclipse.bpel.model.reordering.IExtensibilityElementListHandler;
+import org.eclipse.bpel.model.resource.BPELReader;
import org.eclipse.bpel.model.resource.BPELResource;
import org.eclipse.bpel.model.resource.BPELResourceSetImpl;
import org.eclipse.bpel.names.NCNameWordDetector;
@@ -1010,5 +1011,12 @@
}
} // copyInto(Node,Node)
-
+
+ //
https://issues.jboss.org/browse/JBIDE-8068
+ public static boolean isAbstractProcess(Process process)
+ {
+ Map<String,String>m = BPELUtils.getAllNamespacesForContext(process);
+ boolean result = m.containsValue(BPELConstants.NAMESPACE_ABSTRACT_2007);
+ return result;
+ }
}