| <?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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| <!-- /******************************************************************************* |
| * Copyright (c) 2000, 2005 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 |
| *******************************************************************************/ --> |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
| |
| <title>Manually validating code</title> |
| </head> |
| <body id="tjvalmanual"><a name="tjvalmanual"><!-- --></a> |
| <div><div>When you run a manual validation, all resources in the selected |
| project are validated according to the validation settings.</div><div class="section"><div class="p">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> |
| </div> |
| <ol><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 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 the global validation preferences.">Overriding global validation preferences</a>.</li> |
| </ol> |
| <div class="section">The workbench validates the project using the enabled validators. |
| Any errors found by the validators are listed in the Problems view.</div> |
| </div> |
| <div> |
| <div class="familylinks"> |
| <div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/tjval.html" title="The workbench includes validators that check certain files in your enterprise application module projects for errors.">Validating code in enterprise applications</a></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> |