Author: scabanovich
Date: 2011-03-22 14:05:26 -0400 (Tue, 22 Mar 2011)
New Revision: 29942
Modified:
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java
Log:
JBIDE-8569
https://issues.jboss.org/browse/JBIDE-8569
Modified:
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java
===================================================================
---
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java 2011-03-22
18:03:10 UTC (rev 29941)
+++
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java 2011-03-22
18:05:26 UTC (rev 29942)
@@ -36,12 +36,7 @@
static String AbstractActionPipelineProcessor =
"org.jboss.soa.esb.actions.AbstractActionPipelineProcessor";
public boolean accept(String value) {
- if(value.startsWith("java.")
- || value.startsWith("javax.")
- || value.startsWith("com.sun.")
- || value.startsWith("sun.")
- || value.startsWith("org.apache.")
- ) {
+ if(ValueFilterHelper.isNotESBPackage(value)) {
return false;
}
boolean b = value.startsWith("org.jboss.soa.esb.actions.")
@@ -74,12 +69,7 @@
public boolean init(XModelObject context, XAttribute attribute) {
project = EclipseResourceUtil.getProject(context);
- try {
- IJavaProject jp = EclipseResourceUtil.getJavaProject(project);
- return jp != null && (EclipseJavaUtil.findType(jp, AbstractActionLifecycle) !=
null);
- } catch (JavaModelException e) {
- return false;
- }
+ return ValueFilterHelper.isInClassPath(project, AbstractActionLifecycle);
}
}