1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2006" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Validating code in enterprise applications" />
<meta name="abstract" content="The workbench includes validators that check certain files in your enterprise application module projects for errors." />
<meta name="description" content="The workbench includes validators that check certain files in your enterprise application module projects for errors." />
<meta content="validation, overview, code validation, automatic, build validation, enabling" name="DC.subject" />
<meta content="validation, overview, code validation, automatic, build validation, enabling" name="keywords" />
<meta content="XHTML" name="DC.Format" />
<meta content="tjval" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Validating code in enterprise applications</title>
</head>
<body id="tjval"><a name="tjval"><!-- --></a>
<h1 class="topictitle1" id="title">Validating code in enterprise applications</h1>
<div id="taskbody"><div id="shortdesc">The workbench includes validators that
check certain files in your enterprise application module projects for errors.</div>
<div class="section" id="context"> <anchor id="topictop"></anchor><p>By default, the workbench validates
your files automatically after any build, including automatic builds. You
can also begin the validation process manually without building.</p>
<p>On
the workbench Properties window, you can enable or disable validators to be
used on your projects. Also, you can enable or disable validators for each
enterprise application module project individually on the Properties page
for that project.</p>
<p>Each validator can apply to certain types of files,
certain project natures, and certain project facets. When a validator applies
to a project facet or nature, the workbench uses that validator only on projects
that have that facet or nature. Likewise, most validators apply only to certain
types of files, so the workbench uses those validators only on those types
of files.</p>
<p>Follow these steps to validate your files:</p>
</div>
<ol id="steps">
<li class="stepexpand"><span>Click <span class="menucascade"><span class="uicontrol">Window</span> > <span class="uicontrol">Preferences</span>
</span>.</span></li>
<li class="stepexpand"><span>In the Preferences window, click <span class="uicontrol">Validation</span> in
the left pane.</span> The Validation page of the Preferences window
lists the validators available in your project and their settings.
</li>
<li class="stepexpand"><span>If you want to set individual validation settings for one or more
of your projects, select the <span class="uicontrol">Allow projects to override these preference
settings</span> check box.</span></li>
<li class="stepexpand"><span>To prevent validation at the global level, select the <span class="uicontrol">Suspend
all validators</span> check box.</span> If you select this check
box, you can still enable validation at the project level.</li>
<li class="stepexpand"><span>If you want to save any resources you have modified before the
validation begins, select the <span class="uicontrol">Save all modified resources automatically
prior to validating</span> check box.</span></li>
<li class="stepexpand"><span>In the list of validators, select the check boxes next to each
validator you want to use at the global level.</span> Each validator has
a check box to specify whether it is used on manual validation or on build
validation.</li>
<li class="stepexpand"><span>Choose an alternate implementation for a validator by clicking
the button in the <span class="uicontrol">Settings</span> column.</span> Not all
validators have alternate implementations.</li>
<li class="stepexpand"><span>Click <span class="uicontrol">OK</span>.</span></li>
<li class="stepexpand"><span>If you want to set individual validation settings for one or more
of your projects, see <a href="tjvalglobalpref.html" title="For a given project, you can override the global validation preferences.">Overriding global validation preferences</a>.</span></li>
<li class="stepexpand"><span>Begin the validation process by one of the following methods:</span>
<ul>
<li>Right-click a project and click <span class="uicontrol">Run Validation</span>.</li>
<li>Start a build.</li>
</ul>
</li>
</ol>
<div id="result">Any errors found by the validators are listed
in the Problems view.</div>
<div class="section" id="postreq"><anchor id="topicbottom"></anchor>
</div>
</div>
</body>
</html>
|