diff options
Diffstat (limited to 'examples/org.eclipse.swt.examples/doc-html')
9 files changed, 420 insertions, 420 deletions
diff --git a/examples/org.eclipse.swt.examples/doc-html/hglegal2002.htm b/examples/org.eclipse.swt.examples/doc-html/hglegal2002.htm index 74393f08f3..5df454d51a 100644 --- a/examples/org.eclipse.swt.examples/doc-html/hglegal2002.htm +++ b/examples/org.eclipse.swt.examples/doc-html/hglegal2002.htm @@ -1,14 +1,14 @@ -<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
- <title>Legal Notices</title>
-</head>
-<body>
-
-<h3>
-<a NAME="Notices"></a>Notices</h3>
-(c) Copyright IBM Corp. 2000, 2002. All Rights Reserved.
-</body>
-</html>
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> + <title>Legal Notices</title> +</head> +<body> + +<h3> +<a NAME="Notices"></a>Notices</h3> +(c) Copyright IBM Corp. 2000, 2002. All Rights Reserved. +</body> +</html> diff --git a/examples/org.eclipse.swt.examples/doc-html/swt_addressbook_ex.html b/examples/org.eclipse.swt.examples/doc-html/swt_addressbook_ex.html index 74a6801bd3..e7f7c47618 100755 --- a/examples/org.eclipse.swt.examples/doc-html/swt_addressbook_ex.html +++ b/examples/org.eclipse.swt.examples/doc-html/swt_addressbook_ex.html @@ -1,31 +1,31 @@ -<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>SWT - Address Book Example</title>
-</head>
-<body>
-
-<h2>SWT Standalone Example - Address Book</h2>
-
-<p>
-The AddressBook example shows how the Table control can be used to
-present information in a tabular format. The application can save and load data
-from a file, sort the entries, and search for strings within the fields.
-</p>
-
-<h3>Running the example</h3>
-<p>
-Follow the <a href="swt_manual_setup.html">Manual Setup</a>
-instructions to install and run the example from your workspace.
-</p>
-<p>
-The "Main" class is <code>org.eclipse.swt.examples.addressbook.AddressBook</code>.
-</p>
-<p>
-This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>.
-Select the Address Book item from the Standalone category and click Run.
-</p>
-<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p>
-</body>
-</html>
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>SWT - Address Book Example</title> +</head> +<body> + +<h2>SWT Standalone Example - Address Book</h2> + +<p> +The AddressBook example shows how the Table control can be used to +present information in a tabular format. The application can save and load data +from a file, sort the entries, and search for strings within the fields. +</p> + +<h3>Running the example</h3> +<p> +Follow the <a href="swt_manual_setup.html">Manual Setup</a> +instructions to install and run the example from your workspace. +</p> +<p> +The "Main" class is <code>org.eclipse.swt.examples.addressbook.AddressBook</code>. +</p> +<p> +This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>. +Select the Address Book item from the Standalone category and click Run. +</p> +<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p> +</body> +</html> diff --git a/examples/org.eclipse.swt.examples/doc-html/swt_fileviewer_ex.html b/examples/org.eclipse.swt.examples/doc-html/swt_fileviewer_ex.html index a3d06c10af..4b19776747 100755 --- a/examples/org.eclipse.swt.examples/doc-html/swt_fileviewer_ex.html +++ b/examples/org.eclipse.swt.examples/doc-html/swt_fileviewer_ex.html @@ -1,33 +1,33 @@ -<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>SWT - File Viewer Example</title>
-</head>
-<body>
-
-<h2>SWT Standalone Example - File Viewer</h2>
-
-<p>
-The File Viewer example shows how a simple application can be implemented using SWT.
-This application provides the ability to navigate files and folders and manipulate them via Drag and Drop.
-It includes the use of alternate threads for long actions and demonstrates the use of the Tree,
-Table, Toolbar and Program.
-</p>
-
-<h3>Running the example</h3>
-<p>
-Follow the <a href="swt_manual_setup.html">Manual Setup</a>
-instructions to install and run the example from your workspace.
-</p>
-<p>
-The "Main" class is <code>org.eclipse.swt.examples.fileviewer.FileViewer</code>.
-</p>
-<p>
-This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>.
-Select the File Viewer item from the Standalone category and click Run.
-</p>
-
-<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p>
-</body>
-</html>
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>SWT - File Viewer Example</title> +</head> +<body> + +<h2>SWT Standalone Example - File Viewer</h2> + +<p> +The File Viewer example shows how a simple application can be implemented using SWT. +This application provides the ability to navigate files and folders and manipulate them via Drag and Drop. +It includes the use of alternate threads for long actions and demonstrates the use of the Tree, +Table, Toolbar and Program. +</p> + +<h3>Running the example</h3> +<p> +Follow the <a href="swt_manual_setup.html">Manual Setup</a> +instructions to install and run the example from your workspace. +</p> +<p> +The "Main" class is <code>org.eclipse.swt.examples.fileviewer.FileViewer</code>. +</p> +<p> +This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>. +Select the File Viewer item from the Standalone category and click Run. +</p> + +<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p> +</body> +</html> diff --git a/examples/org.eclipse.swt.examples/doc-html/swt_helloworld_ex.html b/examples/org.eclipse.swt.examples/doc-html/swt_helloworld_ex.html index f9e8953276..804407af18 100755 --- a/examples/org.eclipse.swt.examples/doc-html/swt_helloworld_ex.html +++ b/examples/org.eclipse.swt.examples/doc-html/swt_helloworld_ex.html @@ -1,61 +1,61 @@ -<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>SWT - Hello World Examples</title>
-</head>
-<body>
-
-<h2>SWT Standalone Example - Hello World</h2>
-
-<p>
-The Hello World examples are a set of introductory examples to show how to get started
-creating an application with SWT. They cover creating a shell, using event listeners,
-processing events in an event loop, using layouts, and drawing with a Graphic Context.
-</p>
-
-<h4>Hello World 1</h4>
-<p>
-This example demonstrates how to open a Shell and process the events.
-</p>
-
-<h4>Hello World 2</h4>
-<p>
-This example builds on HelloWorld1 and demonstrates how to display a Label inside the Shell.
-</p>
-
-<h4>Hello World 3</h4>
-<p>
-This example builds on HelloWorld2 and demonstrates how to resize the Label
-when the Shell resizes using a Listener mechanism.
-</p>
-
-<h4>Hello World 4</h4>
-<p>
-This example builds on HelloWorld2 and demonstrates how to resize the Label
-when the Shell resizes using a Layout.
-</p>
-
-<h4>Hello World 5</h4>
-<p>
-This example builds on HelloWorld1 and demonstrates how to draw directly
-on an SWT Control using a graphic context.
-</p>
-
-<h3>Running the example</h3>
-
-<p>
-Follow the <a href="swt_manual_setup.html">Manual Setup</a>
-instructions to install and run the example from your workspace.
-</p>
-<p>
-The "Main" class is <code>org.eclipse.swt.examples.helloworld.HelloWorld[1-5]</code>.
-</p>
-<p>
-This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>.
-Select the Hello World item from the Standalone category and click Run.
-</p>
-
-<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p>
-</body>
-</html>
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>SWT - Hello World Examples</title> +</head> +<body> + +<h2>SWT Standalone Example - Hello World</h2> + +<p> +The Hello World examples are a set of introductory examples to show how to get started +creating an application with SWT. They cover creating a shell, using event listeners, +processing events in an event loop, using layouts, and drawing with a Graphic Context. +</p> + +<h4>Hello World 1</h4> +<p> +This example demonstrates how to open a Shell and process the events. +</p> + +<h4>Hello World 2</h4> +<p> +This example builds on HelloWorld1 and demonstrates how to display a Label inside the Shell. +</p> + +<h4>Hello World 3</h4> +<p> +This example builds on HelloWorld2 and demonstrates how to resize the Label +when the Shell resizes using a Listener mechanism. +</p> + +<h4>Hello World 4</h4> +<p> +This example builds on HelloWorld2 and demonstrates how to resize the Label +when the Shell resizes using a Layout. +</p> + +<h4>Hello World 5</h4> +<p> +This example builds on HelloWorld1 and demonstrates how to draw directly +on an SWT Control using a graphic context. +</p> + +<h3>Running the example</h3> + +<p> +Follow the <a href="swt_manual_setup.html">Manual Setup</a> +instructions to install and run the example from your workspace. +</p> +<p> +The "Main" class is <code>org.eclipse.swt.examples.helloworld.HelloWorld[1-5]</code>. +</p> +<p> +This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>. +Select the Hello World item from the Standalone category and click Run. +</p> + +<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p> +</body> +</html> diff --git a/examples/org.eclipse.swt.examples/doc-html/swt_hoverhelp_ex.html b/examples/org.eclipse.swt.examples/doc-html/swt_hoverhelp_ex.html index 29712faba7..3f171b7219 100755 --- a/examples/org.eclipse.swt.examples/doc-html/swt_hoverhelp_ex.html +++ b/examples/org.eclipse.swt.examples/doc-html/swt_hoverhelp_ex.html @@ -1,37 +1,37 @@ -<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>SWT - Hover Help Example</title>
-</head>
-<body>
-
-<h2>SWT Standalone Example - Hover Help</h2>
-
-<p>
-The Hover Help example shows how to implement custom tooltips and hover help support
-on a number of different SWT controls including Buttons, TableItems, ToolItems and TreeItems.
-The example implements its own tooltip and hover help support.
-To see the custom tooltips in action, hover over an item or button in the UI.
-Notice that images appear in the left-hand corner of the tooltip.
-To see the custom hover help in action, hover over an item or button in the UI until
-the tooltip is displayed. Without moving the mouse, hit F1. A new Shell will pop up with the
-extended hover help information for the UI element in question.
-</p>
-
-<h3>Running the example</h3>
-<p>
-Follow the <a href="swt_manual_setup.html">Manual Setup</a>
-instructions to install and run the example from your workspace.
-</p>
-<p>
-The "Main" class is <code>org.eclipse.swt.examples.hoverhelp.HoverHelp</code>.
-</p>
-<p>
-This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>.
-Select the Hover Help item from the Standalone category and click Run.
-</p>
-
-<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p>
-</body>
-</html>
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>SWT - Hover Help Example</title> +</head> +<body> + +<h2>SWT Standalone Example - Hover Help</h2> + +<p> +The Hover Help example shows how to implement custom tooltips and hover help support +on a number of different SWT controls including Buttons, TableItems, ToolItems and TreeItems. +The example implements its own tooltip and hover help support. +To see the custom tooltips in action, hover over an item or button in the UI. +Notice that images appear in the left-hand corner of the tooltip. +To see the custom hover help in action, hover over an item or button in the UI until +the tooltip is displayed. Without moving the mouse, hit F1. A new Shell will pop up with the +extended hover help information for the UI element in question. +</p> + +<h3>Running the example</h3> +<p> +Follow the <a href="swt_manual_setup.html">Manual Setup</a> +instructions to install and run the example from your workspace. +</p> +<p> +The "Main" class is <code>org.eclipse.swt.examples.hoverhelp.HoverHelp</code>. +</p> +<p> +This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>. +Select the Hover Help item from the Standalone category and click Run. +</p> + +<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p> +</body> +</html> diff --git a/examples/org.eclipse.swt.examples/doc-html/swt_imageanalyzer_ex.html b/examples/org.eclipse.swt.examples/doc-html/swt_imageanalyzer_ex.html index 5a25923051..b83e9a3358 100755 --- a/examples/org.eclipse.swt.examples/doc-html/swt_imageanalyzer_ex.html +++ b/examples/org.eclipse.swt.examples/doc-html/swt_imageanalyzer_ex.html @@ -1,57 +1,57 @@ -<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>SWT - Image Analyzer Example</title>
-</head>
-<body>
-
-<h2>SWT Standalone Example - Image Analyzer</h2>
-
-<p>
-The ImageAnalyzer opens image files and displays the visual contents of the file along with a
-summary of the data in the image file.
-The user can make adjustments to various elements of the image such as scaling and Alpha
-blending and can save these changes to a file.
-</p>
-<p>
-The ImageAnalyzer will load and display image files of type GIF, JPEG, BMP, ICO, and PNG.
-To open a file, use the File --> Open... menu item, and select the image file in the FileDialog.
-If the file is an interlaced GIF or PNG or a progressive JPEG, and Incremental Display is selected,
-then the ImageAnalyzer displays the image increments as they are being loaded.
-If the file contains an animated GIF, then the Next, Previous, and Animate buttons become enabled,
-and they can be used to cycle through the images in the file, or animate them. If a GIF defines a background color,
-as many animated GIFs do, selecting Background will use the GIF's background color.
-If the image has transparency (possible with GIF, PNG, or ICO), then selecting Display Mask will draw the image's transparency
-mask to the right of the image. You can change the background color of the ImageAnalyzer to see the transparency work.
-To turn off the transparency, deselect Display Transparency.
-After an image is loaded, it can be scaled or have alpha transparency applied, using the Scale and Alpha-K combos,
-and the Alpha menu. File --> Reopen restores scaling and Alpha to their default values and reloads the current image file.
-File --> Save As... can be used to save the currently loaded image to another type of image file. If the image has transparency,
-File --> Save Mask As... saves the image's transparency mask.
-</p>
-<p>
-When SWT loads an image file, an instance of org.eclipse.swt.graphics.ImageData is created. (In the case of an ICO file or
-multi-image GIF, an array of ImageData instances is created). The ImageAnalyzer displays all of the data stored in the ImageData
-instance(s) for the currently loaded image file, including the pixel data. Hovering over a pixel in the image display will show the RGB
-color data for that pixel. For certain images (particularly animated GIFs) additional data is stored in the org.eclipse.swt.graphics.ImageLoader
-instance used to load the image. The ImageAnalyzer displays this data as well.
-</p>
-
-<h3>Running the example</h3>
-
-<p>
-Follow the <a href="swt_manual_setup.html">Manual Setup</a>
-instructions to install and run the example from your workspace.
-</p>
-<p>
-The "Main" class is <code>org.eclipse.swt.examples.imageanalyzer.ImageAnalyzer</code>.
-</p>
-<p>
-This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>.
-Select the Image Analyzer item from the Standalone category and click Run.
-</p>
-
-<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p>
-</body>
-</html>
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>SWT - Image Analyzer Example</title> +</head> +<body> + +<h2>SWT Standalone Example - Image Analyzer</h2> + +<p> +The ImageAnalyzer opens image files and displays the visual contents of the file along with a +summary of the data in the image file. +The user can make adjustments to various elements of the image such as scaling and Alpha +blending and can save these changes to a file. +</p> +<p> +The ImageAnalyzer will load and display image files of type GIF, JPEG, BMP, ICO, and PNG. +To open a file, use the File --> Open... menu item, and select the image file in the FileDialog. +If the file is an interlaced GIF or PNG or a progressive JPEG, and Incremental Display is selected, +then the ImageAnalyzer displays the image increments as they are being loaded. +If the file contains an animated GIF, then the Next, Previous, and Animate buttons become enabled, +and they can be used to cycle through the images in the file, or animate them. If a GIF defines a background color, +as many animated GIFs do, selecting Background will use the GIF's background color. +If the image has transparency (possible with GIF, PNG, or ICO), then selecting Display Mask will draw the image's transparency +mask to the right of the image. You can change the background color of the ImageAnalyzer to see the transparency work. +To turn off the transparency, deselect Display Transparency. +After an image is loaded, it can be scaled or have alpha transparency applied, using the Scale and Alpha-K combos, +and the Alpha menu. File --> Reopen restores scaling and Alpha to their default values and reloads the current image file. +File --> Save As... can be used to save the currently loaded image to another type of image file. If the image has transparency, +File --> Save Mask As... saves the image's transparency mask. +</p> +<p> +When SWT loads an image file, an instance of org.eclipse.swt.graphics.ImageData is created. (In the case of an ICO file or +multi-image GIF, an array of ImageData instances is created). The ImageAnalyzer displays all of the data stored in the ImageData +instance(s) for the currently loaded image file, including the pixel data. Hovering over a pixel in the image display will show the RGB +color data for that pixel. For certain images (particularly animated GIFs) additional data is stored in the org.eclipse.swt.graphics.ImageLoader +instance used to load the image. The ImageAnalyzer displays this data as well. +</p> + +<h3>Running the example</h3> + +<p> +Follow the <a href="swt_manual_setup.html">Manual Setup</a> +instructions to install and run the example from your workspace. +</p> +<p> +The "Main" class is <code>org.eclipse.swt.examples.imageanalyzer.ImageAnalyzer</code>. +</p> +<p> +This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>. +Select the Image Analyzer item from the Standalone category and click Run. +</p> + +<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p> +</body> +</html> diff --git a/examples/org.eclipse.swt.examples/doc-html/swt_javaviewer_ex.html b/examples/org.eclipse.swt.examples/doc-html/swt_javaviewer_ex.html index be071be4b3..cac2acda1b 100755 --- a/examples/org.eclipse.swt.examples/doc-html/swt_javaviewer_ex.html +++ b/examples/org.eclipse.swt.examples/doc-html/swt_javaviewer_ex.html @@ -1,33 +1,33 @@ -<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>SWT - Java Syntax Viewer Example</title>
-</head>
-<body>
-
-<h2>SWT Standalone Example - Java Syntax Viewer</h2>
-
-<p>
-This example demonstrates how to implement a user-defined line styler for the StyledText widget.
-The example provides a typical editor interface.
-To see the effect of the line styler, open a *.java file.
-When the contents of the file are displayed in the editor area, notice that the keywords have been highlighted.
-</p>
-
-<h3>Running the example</h3>
-<p>
-Follow the <a href="swt_manual_setup.html">Manual Setup</a>
-instructions to install and run the example from your workspace.
-</p>
-<p>
-The "Main" class is <code>org.eclipse.swt.examples.javaviewer.JavaViewer</code>.
-</p>
-<p>
-This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>.
-Select the Java Syntax Viewer item from the Standalone category and click Run.
-</p>
-
-<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p>
-</body>
-</html>
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>SWT - Java Syntax Viewer Example</title> +</head> +<body> + +<h2>SWT Standalone Example - Java Syntax Viewer</h2> + +<p> +This example demonstrates how to implement a user-defined line styler for the StyledText widget. +The example provides a typical editor interface. +To see the effect of the line styler, open a *.java file. +When the contents of the file are displayed in the editor area, notice that the keywords have been highlighted. +</p> + +<h3>Running the example</h3> +<p> +Follow the <a href="swt_manual_setup.html">Manual Setup</a> +instructions to install and run the example from your workspace. +</p> +<p> +The "Main" class is <code>org.eclipse.swt.examples.javaviewer.JavaViewer</code>. +</p> +<p> +This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>. +Select the Java Syntax Viewer item from the Standalone category and click Run. +</p> + +<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p> +</body> +</html> diff --git a/examples/org.eclipse.swt.examples/doc-html/swt_manual_setup.html b/examples/org.eclipse.swt.examples/doc-html/swt_manual_setup.html index 9f36ca2756..2681c4d14a 100755 --- a/examples/org.eclipse.swt.examples/doc-html/swt_manual_setup.html +++ b/examples/org.eclipse.swt.examples/doc-html/swt_manual_setup.html @@ -1,119 +1,119 @@ -<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>SWT Standalone Examples Setup</title>
-</head>
-<body>
-
-<h2>SWT Standalone Examples Setup</h2>
-
-<h3>Importing Example Source</h3>
-
-<p>
-*** In the following description, substitute the location in which you installed Eclipse for INSTALLDIR ***
-</p>
-
-<p>Import the example code and all its required resources into your workspace:</p>
-
-<ol>
-<li>Create a Java Project called "SWT Examples".
-<li>Select the project "SWT Examples" in the Packages view.
-<li>Select the File --> Import menu. Select Zip File. Click on Next.
-<li>Locate the source zip file for the SWT examples. For example:
- <ul>
- <li><b>win32: </b><code>INSTALLDIR\eclipse\plugins\org.eclipse.swt.examples_2.0.0\swtexamplessrc.zip</code>
- <li><b>*nix: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.examples_2.0.0/swtexamplessrc.zip</code>
- </ul>
-<li>Click on Finish.
-<li>Select the File --> Import menu. In the Import dialog, select Zip File. Click on Next.
-<li>Locate the jar file for the SWT examples. For example:
- <ul>
- <li><b>win32: </b><code>INSTALLDIR\eclipse\plugins\org.eclipse.swt.examples_2.0.0\swtexamples.jar</code>
- <li><b>*nix: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.examples_2.0.0/swtexamples.jar</code>
- </ul>
-<li>Expand the top level directory of the zip file (/). <b>Uncheck "org" and "META-INF"</b>.
-<li>Click on Finish.
-</ol>
-
-<p>Now you need to compile the SWT examples. In order to do this, you must add the SWT jar(s) to
-the compile path:</p>
-<ol>
-<li>Select the project "SWT Examples" in the Packages view and from the pop up menu select Properties.
-<li>Select the Java Build Path item.
-<li>Go to the Libraries tab.
-<li>Click on the Add External JARS... button.
-<li>Locate the swt jar for the platform on which you wish to run:<br>
- <ul>
- <li><b>win32: </b><code>INSTALLDIR\eclipse\plugins\org.eclipse.swt.win32_2.0.0\ws\win32\swt.jar</code>
- <li><b>gtk: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.gtk_2.0.0/ws/gtk/swt.jar</code>
- <li><b>motif: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.0.0/ws/motif/swt.jar</code>
- <li><b>photon: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.photon_2.0.0/ws/photon/swt.jar</code>
- <li><b>macosx: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.carbon_2.0.0/ws/carbon/swt.jar</code>
- </ul>
-<li>Click on OK.
-</ol>
-<p><b>NOTE:</b> For some platforms (such as GTK), more than one jar is required to run SWT (on
-GTK there is a swt.jar and a swt-pi.jar file). In this case, all the required jars must
-be added to the class path. This is done by repeating the steps above for each jar file.
-All jar files are located in the same directory/folder.</p>
-
-<p>At this point your SWT examples should be compiled without any errors. Check the Task
-view for errors. If you get an error like "<code>java.lang.Object</code> not found" it means
-you have not configured a JRE. Go to the Window --> Preferences dialog.
-Select Java --> Installed JREs and ensure that a JRE is installed
-and that the path to the JRE is correct.</p>
-
-<h3><a NAME="Run"></a>Running the Example</h3>
-
-<p>Now you have to configure Eclipse to run the example. This requires putting the SWT
-JNI libraries on the library path so that the VM can find them:
-
-<ol>
-<li>Open the Java Perspective.
-<li>In the Packages view, select the Main class that you want to run.
- For example, the Main class for the Address Book example is
- <code>org.eclipse.swt.examples.addressbook.AddressBook</code>.
-<li>SelectRun --> Run... from the main menu.
-<li>In the Launch Configurations dialog that appears, select Java Application and click
- on the New button.
-<li>Fill in the Name, Project and Main class fields according to the example you wish to run.
-<li>Select the Arguments tab. In the VM Arguements area specify the location of the SWT
- library depending on your target platform as follows:
- <ul>
- <li><b>win32: </b><code>-Djava.library.path=INSTALLDIR\plugins\org.eclipse.swt.win32_2.0.0\os\win32\x86</code>
- <li><b>linux gtk: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.gtk_2.0.0/os/linux/x86</code>
- <li><b>linux motif: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.0.0/os/linux/x86</code>
- <li><b>solaris motif: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.0.0/os/solaris/sparc</code>
- <li><b>aix motif: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.0.0/os/aix/ppc</code>
- <li><b>hpux motif: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.0.0/os/hpux/PA_RISC</code>
- <li><b>photon qnx: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.photon_2.0.0/os/qnx/x86</code>
- <li><b>macosx: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.carbon_2.0.0/os/macosx/ppc</code>
- </ul>
-<li>Click on the Run button.
-</ol>
-
-
-<h3>Examples Overview</h3>
-<p>
-Consult the documentation of each individual example for the names of
-its Main class and additional details.
-</p>
-<p>
-The following examples are included in the <code>swtexamples.jar</code>:
-</p>
-<ul>
-<li><a href="swt_addressbook_ex.html">Address Book</a>
-<li><a href="swt_controls_ex.html">Controls</a>
-<li><a href="swt_fileviewer_ex.html">File Viewer</a>
-<li><a href="swt_helloworld_ex.html">Hello World [1-5]</a>
-<li><a href="swt_hoverhelp_ex.html">Hover Help</a>
-<li><a href="swt_imageanalyzer_ex.html">Image Analyzer</a>
-<li><a href="swt_javaviewer_ex.html">Java Viewer</a>
-<li><a href="swt_layout_ex.html">Layout</a>
-<li><a href="swt_texteditor_ex.html">Text Editor</a>
-</ul>
-
-<p><br><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a>
-</body>
-</html>
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>SWT Standalone Examples Setup</title> +</head> +<body> + +<h2>SWT Standalone Examples Setup</h2> + +<h3>Importing Example Source</h3> + +<p> +*** In the following description, substitute the location in which you installed Eclipse for INSTALLDIR *** +</p> + +<p>Import the example code and all its required resources into your workspace:</p> + +<ol> +<li>Create a Java Project called "SWT Examples". +<li>Select the project "SWT Examples" in the Packages view. +<li>Select the File --> Import menu. Select Zip File. Click on Next. +<li>Locate the source zip file for the SWT examples. For example: + <ul> + <li><b>win32: </b><code>INSTALLDIR\eclipse\plugins\org.eclipse.swt.examples_2.0.0\swtexamplessrc.zip</code> + <li><b>*nix: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.examples_2.0.0/swtexamplessrc.zip</code> + </ul> +<li>Click on Finish. +<li>Select the File --> Import menu. In the Import dialog, select Zip File. Click on Next. +<li>Locate the jar file for the SWT examples. For example: + <ul> + <li><b>win32: </b><code>INSTALLDIR\eclipse\plugins\org.eclipse.swt.examples_2.0.0\swtexamples.jar</code> + <li><b>*nix: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.examples_2.0.0/swtexamples.jar</code> + </ul> +<li>Expand the top level directory of the zip file (/). <b>Uncheck "org" and "META-INF"</b>. +<li>Click on Finish. +</ol> + +<p>Now you need to compile the SWT examples. In order to do this, you must add the SWT jar(s) to +the compile path:</p> +<ol> +<li>Select the project "SWT Examples" in the Packages view and from the pop up menu select Properties. +<li>Select the Java Build Path item. +<li>Go to the Libraries tab. +<li>Click on the Add External JARS... button. +<li>Locate the swt jar for the platform on which you wish to run:<br> + <ul> + <li><b>win32: </b><code>INSTALLDIR\eclipse\plugins\org.eclipse.swt.win32_2.0.0\ws\win32\swt.jar</code> + <li><b>gtk: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.gtk_2.0.0/ws/gtk/swt.jar</code> + <li><b>motif: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.0.0/ws/motif/swt.jar</code> + <li><b>photon: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.photon_2.0.0/ws/photon/swt.jar</code> + <li><b>macosx: </b><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.carbon_2.0.0/ws/carbon/swt.jar</code> + </ul> +<li>Click on OK. +</ol> +<p><b>NOTE:</b> For some platforms (such as GTK), more than one jar is required to run SWT (on +GTK there is a swt.jar and a swt-pi.jar file). In this case, all the required jars must +be added to the class path. This is done by repeating the steps above for each jar file. +All jar files are located in the same directory/folder.</p> + +<p>At this point your SWT examples should be compiled without any errors. Check the Task +view for errors. If you get an error like "<code>java.lang.Object</code> not found" it means +you have not configured a JRE. Go to the Window --> Preferences dialog. +Select Java --> Installed JREs and ensure that a JRE is installed +and that the path to the JRE is correct.</p> + +<h3><a NAME="Run"></a>Running the Example</h3> + +<p>Now you have to configure Eclipse to run the example. This requires putting the SWT +JNI libraries on the library path so that the VM can find them: + +<ol> +<li>Open the Java Perspective. +<li>In the Packages view, select the Main class that you want to run. + For example, the Main class for the Address Book example is + <code>org.eclipse.swt.examples.addressbook.AddressBook</code>. +<li>SelectRun --> Run... from the main menu. +<li>In the Launch Configurations dialog that appears, select Java Application and click + on the New button. +<li>Fill in the Name, Project and Main class fields according to the example you wish to run. +<li>Select the Arguments tab. In the VM Arguements area specify the location of the SWT + library depending on your target platform as follows: + <ul> + <li><b>win32: </b><code>-Djava.library.path=INSTALLDIR\plugins\org.eclipse.swt.win32_2.0.0\os\win32\x86</code> + <li><b>linux gtk: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.gtk_2.0.0/os/linux/x86</code> + <li><b>linux motif: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.0.0/os/linux/x86</code> + <li><b>solaris motif: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.0.0/os/solaris/sparc</code> + <li><b>aix motif: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.0.0/os/aix/ppc</code> + <li><b>hpux motif: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.0.0/os/hpux/PA_RISC</code> + <li><b>photon qnx: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.photon_2.0.0/os/qnx/x86</code> + <li><b>macosx: </b><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.carbon_2.0.0/os/macosx/ppc</code> + </ul> +<li>Click on the Run button. +</ol> + + +<h3>Examples Overview</h3> +<p> +Consult the documentation of each individual example for the names of +its Main class and additional details. +</p> +<p> +The following examples are included in the <code>swtexamples.jar</code>: +</p> +<ul> +<li><a href="swt_addressbook_ex.html">Address Book</a> +<li><a href="swt_controls_ex.html">Controls</a> +<li><a href="swt_fileviewer_ex.html">File Viewer</a> +<li><a href="swt_helloworld_ex.html">Hello World [1-5]</a> +<li><a href="swt_hoverhelp_ex.html">Hover Help</a> +<li><a href="swt_imageanalyzer_ex.html">Image Analyzer</a> +<li><a href="swt_javaviewer_ex.html">Java Viewer</a> +<li><a href="swt_layout_ex.html">Layout</a> +<li><a href="swt_texteditor_ex.html">Text Editor</a> +</ul> + +<p><br><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a> +</body> +</html> diff --git a/examples/org.eclipse.swt.examples/doc-html/swt_texteditor_ex.html b/examples/org.eclipse.swt.examples/doc-html/swt_texteditor_ex.html index 3d5571b25f..563887b98b 100755 --- a/examples/org.eclipse.swt.examples/doc-html/swt_texteditor_ex.html +++ b/examples/org.eclipse.swt.examples/doc-html/swt_texteditor_ex.html @@ -1,35 +1,35 @@ -<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>SWT - Text Editor Example</title>
-</head>
-<body>
-
-<h2>SWT Standalone Example - Text Editor</h2>
-
-<p>
-This example demonstrates how to use the StyledText widget to implement
-a text editor with formatting support.
-The example has a typical text editor interface.
-The Edit menu contains Cut, Copy, Paste and Set Font items and the toolbar
-provides a bold text toggle, three colour tools that operate on the current
-selection, and a reset to defaults button that also operates on the current selection.
-</p>
-
-<h3>Running the example</h3>
-<p>
-Follow the <a href="swt_manual_setup.html">Manual Setup</a>
-instructions to install and run the example from your workspace.
-</p>
-<p>
-The "Main" class is <code>org.eclipse.swt.examples.texteditor.TextEditor</code>.
-</p>
-<p>
-This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>.
-Select the Text Editor item from the Standalone category and click Run.
-</p>
-
-<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p>
-</body>
-</html>
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>SWT - Text Editor Example</title> +</head> +<body> + +<h2>SWT Standalone Example - Text Editor</h2> + +<p> +This example demonstrates how to use the StyledText widget to implement +a text editor with formatting support. +The example has a typical text editor interface. +The Edit menu contains Cut, Copy, Paste and Set Font items and the toolbar +provides a bold text toggle, three colour tools that operate on the current +selection, and a reset to defaults button that also operates on the current selection. +</p> + +<h3>Running the example</h3> +<p> +Follow the <a href="swt_manual_setup.html">Manual Setup</a> +instructions to install and run the example from your workspace. +</p> +<p> +The "Main" class is <code>org.eclipse.swt.examples.texteditor.TextEditor</code>. +</p> +<p> +This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>. +Select the Text Editor item from the Standalone category and click Run. +</p> + +<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p> +</body> +</html> |