Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 170046 - [api] Make public API to turn off validation
Summary: [api] Make public API to turn off validation
Status: RESOLVED FIXED
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.validation (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Hari Shankar CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 126589 165578
  Show dependency tree
 
Reported: 2007-01-09 23:00 EST by Balan Subramanian CLA
Modified: 2007-04-25 15:57 EDT (History)
5 users (show)

See Also:


Attachments
patch (3.13 KB, patch)
2007-03-20 12:39 EDT, Hari Shankar CLA
no flags Details | Diff
updated patch (2.92 KB, patch)
2007-03-21 10:31 EDT, Hari Shankar CLA
no flags Details | Diff
patch with junit testcase (6.58 KB, patch)
2007-03-21 17:17 EDT, Hari Shankar CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Balan Subramanian CLA 2007-01-09 23:00:08 EST
In the TPTP project, for the WSDM tooling, we use the following classes in creating web projects as part of the critical code generation function. Rewriting this function would take a lot of resources and hence we'd like to request that these be made public.

org.eclipse.jst.j2ee.internal.web.archive.operations.WebFacetProjectCreationDataModelProvider
org.eclipse.wst.common.componentcore.internal.util.IModuleConstants
org.eclipse.wst.validation.internal.operations.ValidatorManager 

All the three above are used in creating web projects - the first two in actually creating the web project, the last one to stop WTP from running validation on the project while we are changing and adding files to the project during code generation).
Comment 1 Nitin Dahyabhai CLA 2007-01-11 16:46:18 EST
Balan, can you elaborate on how you use these classes, particularly how the ValidatorManager is related to code generation?
Comment 2 Balan Subramanian CLA 2007-01-11 16:55:51 EST
Our code generation consists of creating a web project and copying some files into it that are needed for WSDM. When we create the web project, it automatically starts validating everything in there but our code generation adds files one by one to the project. So today, we turn off validation and turn it back on when we have finished adding all the files we need to, to the web project.

The other two classes are used in just creating a web project - unfortunately we could not find any other documentation or way to build web projects and we did not want to rewrite web project building capability.
Comment 3 Carl Anderson CLA 2007-02-23 13:44:49 EST
We don't want to make the entire ValidatorManager class public... but we need to add a public API to turn on and off the validation.
Comment 4 Chuck Bridgham CLA 2007-02-23 15:18:00 EST
Moving this one to Hari
Comment 5 Hari Shankar CLA 2007-03-20 12:39:08 EDT
Created attachment 61424 [details]
patch

patch that adds fine grained validator enable/disable
Comment 6 Hari Shankar CLA 2007-03-21 10:31:44 EDT
Created attachment 61548 [details]
updated patch
Comment 7 Hari Shankar CLA 2007-03-21 17:17:06 EDT
Created attachment 61609 [details]
patch with junit testcase
Comment 8 Hari Shankar CLA 2007-04-03 10:45:28 EDT
released. thanks.
Comment 9 Andrew Eberbach CLA 2007-04-20 10:02:50 EDT
This isn't completely finished. The classes used should not have internal package names.
Comment 10 Hari Shankar CLA 2007-04-25 15:57:03 EDT
Hi Andrew,

We are not allowed to change the package names (even internal ones), since this will break several adopters. Please find the policy here:

http://www.eclipse.org/webtools/adopters/main.php#non-api-code-deprecation-policy

That said, there is a new validation framework in the works that will be available in the 3.0 time frame, that will provide new and improved api facilitating ease of use. Thanks.