blob: 2d894461862642d45cbe28052a4455e1d8fdcb0d [file] [log] [blame]
syeshin30fe03d2005-09-01 14:44:04 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html
lmandel49d6a1a2006-01-23 07:32:18 +00003 PUBLIC "-//IETF//DTD HTML 4.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html><head>
syeshin916fe232005-09-22 19:15:50 +00005<!-- /*******************************************************************************
lmandel49d6a1a2006-01-23 07:32:18 +00006 * Copyright (c) 2000, 2006 IBM Corporation and others.
syeshin916fe232005-09-22 19:15:50 +00007 * All rights reserved. This program and the accompanying materials
8 * are made available under the terms of the Eclipse Public License v1.0
9 * which accompanies this distribution, and is available at
10 * http://www.eclipse.org/legal/epl-v10.html
11 *
12 * Contributors:
13 * IBM Corporation - initial API and implementation
14 *******************************************************************************/ -->
lmandel49d6a1a2006-01-23 07:32:18 +000015<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css"/>
syeshin30fe03d2005-09-01 14:44:04 +000016<title>Workbench integration with Web editors</title>
syeshin66078272005-09-20 16:53:38 +000017</head>
syeshin30fe03d2005-09-01 14:44:04 +000018<body id="cwwedtvw"><a name="cwwedtvw"><!-- --></a>
syeshin30fe03d2005-09-01 14:44:04 +000019<h1 class="topictitle1">Workbench integration with Web editors</h1>
lmandel49d6a1a2006-01-23 07:32:18 +000020<div><p>There are several editors for use in various contexts for various file
21types. To edit a file using its default editor, double-click on the file name
22in the Project Explorer view, or right-click on the file and select <b>Open</b>.
23The editor that is last used to open a file becomes the default for that particular
24file. To edit the file with a different editor, right-click on the file and
25select <b>Open With</b> to choose from a list of available
26editors.</p>
syeshin30fe03d2005-09-01 14:44:04 +000027<p>In the workbench, you can associate file-name extensions for different
syeshin30fe03d2005-09-01 14:44:04 +000028types of resources with various editors. A resource extension can have more
syeshin30fe03d2005-09-01 14:44:04 +000029than one editor associated with it; the last editor used for a particular
lmandel49d6a1a2006-01-23 07:32:18 +000030extension type is indicated by a black dot before it in the <b>Open
31With</b> pop-up menu. You can associate extensions that are known
32to the workbench with additional editors, by using the <strong>File Associations</strong> preferences
33page, accessed by selecting <span class="menucascade"><b>Window</b> &gt; <b>Preferences</b> &gt; <b>Workbench</b> &gt; <b>File Associations</b></span>.</p>
syeshin30fe03d2005-09-01 14:44:04 +000034<div class="p">The Properties view provides general capabilities that are advantageous
lmandel49d6a1a2006-01-23 07:32:18 +000035to Web editor users. <dl><dt class="dlterm">Properties view</dt>
36<dd>The Properties view (<span class="menucascade"><b>Window</b> &gt; <b>Show
37View</b> &gt; <b>Properties</b></span>) contains
syeshin30fe03d2005-09-01 14:44:04 +000038a list of attributes and editable attribute values. For example, when you
lmandel49d6a1a2006-01-23 07:32:18 +000039select an image tag <b>img</b> , the width and height values
syeshin30fe03d2005-09-01 14:44:04 +000040appear for editing. In addition, any other attributes allowed by the standard
syeshin30fe03d2005-09-01 14:44:04 +000041specified in the DOCTYPE for the file (such as the HTML 4.0.1 DTD) are listed.
syeshin30fe03d2005-09-01 14:44:04 +000042When you click the value column of a property, you can select from among the
syeshin30fe03d2005-09-01 14:44:04 +000043list of available attribute values. <p>The pop-up menu in the Properties view
syeshin30fe03d2005-09-01 14:44:04 +000044enables you to undo, cut, copy, paste, delete, and select all. The options
syeshin30fe03d2005-09-01 14:44:04 +000045that are available at a given time depends on where the cursor is located
syeshin30fe03d2005-09-01 14:44:04 +000046when you right-click to display the pop-up menu. To see the pop-up menu that
syeshin30fe03d2005-09-01 14:44:04 +000047contains undo, cut, and so on, the property value field must be active. (This
syeshin30fe03d2005-09-01 14:44:04 +000048is accomplished by selecting the property and then selecting its value.) Otherwise,
syeshin30fe03d2005-09-01 14:44:04 +000049the pop-up menu will contain different options.</p>
lmandel49d6a1a2006-01-23 07:32:18 +000050 <p>Use the <b>Restore
51Default Value</b> button to change any value back to the default setting.</p>
syeshin30fe03d2005-09-01 14:44:04 +000052 <p>After
syeshin30fe03d2005-09-01 14:44:04 +000053you are in the Properties view, you can modify other property values for specific
syeshin30fe03d2005-09-01 14:44:04 +000054tags. To edit another tag using the Properties view, move the cursor within
syeshin30fe03d2005-09-01 14:44:04 +000055the editing area of the Source page or Design page to the tag you want to
syeshin30fe03d2005-09-01 14:44:04 +000056edit. The appropriate properties and values are displayed in the Properties
syeshin30fe03d2005-09-01 14:44:04 +000057view.</p>
58</dd>
59</dl>
60</div>
61</div>
syeshin916fe232005-09-22 19:15:50 +000062</div>
lmandel49d6a1a2006-01-23 07:32:18 +000063</body></html>