blob: f564ffaef2be7d83a31092605905d6f2ea0feac6 [file] [log] [blame]
<?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="Manually validating code" />
<meta name="abstract" content="When you run a manual validation, all resources in the selected project are validated according to the validation settings." />
<meta name="description" content="When you run a manual validation, all resources in the selected project are validated according to the validation settings." />
<meta content="validation, manual, code validation" name="DC.subject" />
<meta content="validation, manual, code validation" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/tjvaldisable.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/tjvalglobalpref.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/tjvalselect.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tjvalmanual" 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>Manually validating code</title>
</head>
<body id="tjvalmanual"><a name="tjvalmanual"><!-- --></a>
<h1 class="topictitle1" id="title">Manually validating code</h1>
<div id="taskbody"><div id="shortdesc">When you run a manual validation, all
resources in the selected project are validated according to the validation
settings.</div>
<anchor id="topicbottom"></anchor><div class="section" id="context">The validators used depend on the
global and project validation settings. When you validate a project manually,
the global settings are used unless both of the following are true:<ul>
<li>The <span class="uicontrol">Allow projects to override these preference settings</span> check
box is selected on the global validation preferences page.</li>
<li>The <span class="uicontrol">Override validation preferences</span> check box is
selected on the project's validation preferences page.</li>
</ul>
</div>
<p>Whether the workbench uses the global or project validation preferences,
only the validators selected to run on manual validation are used when you
run a manual validation.</p>
<p>To manually invoke an immediate code validation:</p>
<ol id="steps">
<li class="stepexpand"><span>Select the project that you want to validate.</span></li>
<li class="stepexpand"><span>Right-click the project and then click <span class="uicontrol">Run Validation</span>.</span>
If this option is not available, validation is disabled or there are
no validators enabled for the project. To enable validation at the global
level, see <a href="tjval.html" title="The workbench includes validators that&#10;check certain files in your enterprise application module projects for errors.">Validating code in enterprise applications</a>. To enable validators for this
project, see <a href="tjvalglobalpref.html" title="For a given project, you can override&#10;the global validation preferences.">Overriding global validation preferences</a>.</li>
</ol>
<div id="result">The workbench validates the project using
the enabled validators. Any errors found by the validators are listed in the
Problems view.</div>
<div class="section" id="postreq"><anchor id="topicbottom"></anchor>
</div>
</div>
<div><div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="../topics/tjvaldisable.html" title="You can disable one or more validators individually or disable validation entirely. Also, you can set validation settings for your entire workspace and for individual projects.">Disabling validation</a></div>
<div><a href="../topics/tjvalglobalpref.html" title="For a given project, you can override the global validation preferences.">Overriding global validation preferences</a></div>
<div><a href="../topics/tjvalselect.html" title="You can select specific validators to run during manual and build code validation. You can set each validator to run on manual validation, build validation, both, or neither.">Selecting code validators</a></div>
</div>
</div>
</body>
</html>