Author: dennyxu
Date: 2009-12-07 01:42:34 -0500 (Mon, 07 Dec 2009)
New Revision: 19068
Modified:
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/Builder.java
Log:
JBIDE-5398:BPEL Editor should re-validate artifacts wsdl when updating PartnerLinkTypes,
etc. on save
Modified:
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/Builder.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/Builder.java 2009-12-07
05:33:39 UTC (rev 19067)
+++
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/Builder.java 2009-12-07
06:42:34 UTC (rev 19068)
@@ -198,10 +198,12 @@
p("File Resource : " + file.getName() );
// TODO: This should be a better check
- if ( file.getName().endsWith(".bpel")) {
- file.deleteMarkers(IBPELMarker.ID, true, IResource.DEPTH_INFINITE);
- deleteMarkersInReferencialResources(file);
- makeMarkers ( validate ( file, monitor ) );
+ if ( file.getName().endsWith(".bpel") ||
file.getName().endsWith(".wsdl")) {
+ IProject project = file.getProject();
+ validate(project, monitor);
+// file.deleteMarkers(IBPELMarker.ID, true, IResource.DEPTH_INFINITE);
+// deleteMarkersInReferencialResources(file);
+// makeMarkers ( validate ( file, monitor ) );
}
break;