Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 72088 Details for
Bug 193816
validators are still being triggered when they use contentTypeBinding
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
org.eclipse.wst.validation.patch
org.eclipse.wst.validation.patch (text/plain), 1.54 KB, created by
Amy Wu
on 2007-06-21 16:39:11 EDT
(
hide
)
Description:
org.eclipse.wst.validation.patch
Filename:
MIME Type:
Creator:
Amy Wu
Created:
2007-06-21 16:39:11 EDT
Size:
1.54 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.validation >Index: validate/org/eclipse/wst/validation/internal/ValidatorMetaData.java >=================================================================== >RCS file: /cvsroot/webtools/wst/components/validation/plugins/org.eclipse.wst.validation/validate/org/eclipse/wst/validation/internal/ValidatorMetaData.java,v >retrieving revision 1.30 >diff -u -r1.30 ValidatorMetaData.java >--- validate/org/eclipse/wst/validation/internal/ValidatorMetaData.java 7 Jun 2007 19:28:36 -0000 1.30 >+++ validate/org/eclipse/wst/validation/internal/ValidatorMetaData.java 21 Jun 2007 20:32:39 -0000 >@@ -320,7 +320,8 @@ > public boolean isApplicableTo(IResource resource, int resourceDelta) { > // If no filters are specified, then every type of resource should be validated/trigger a > // rebuild of the model cache >- if (_filters == null) >+ // Also make sure no content type id is specified (BUG 193816) >+ if (_filters == null && getContentTypeIds() == null) > return true; > > return isApplicableTo(resource, resourceDelta, _filters); >@@ -332,7 +333,8 @@ > boolean isApplicableTo(IResource resource, int resourceDelta, > ValidatorFilter[] filters) { > // Are any of the filters satisfied? (i.e., OR them, not AND them.) >- if (checkIfValidSourceFile(resource)) { >+ // make sure filters is not null (BUG 193816) >+ if (_filters != null && checkIfValidSourceFile(resource)) { > for (int i = 0; i < filters.length; i++) { > ValidatorFilter filter = filters[i]; > if (filter.isApplicableType(resource)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 193816
:
72088
|
114182