diff options
Diffstat (limited to 'examples/org.eclipse.swt.examples/doc-html')
11 files changed, 0 insertions, 448 deletions
diff --git a/examples/org.eclipse.swt.examples/doc-html/hglegal.htm b/examples/org.eclipse.swt.examples/doc-html/hglegal.htm deleted file mode 100755 index f5871b79e0..0000000000 --- a/examples/org.eclipse.swt.examples/doc-html/hglegal.htm +++ /dev/null @@ -1,14 +0,0 @@ -<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> - <LINK REL="stylesheet" HREF="../../../book.css" CHARSET="ISO-8859-1" TYPE="text/css"> - <title>Legal Notices</title> -</head> -<body> - -<h3> -<a NAME="Notices"></a>Notices</h3> -(c) Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved. -</body> -</html> diff --git a/examples/org.eclipse.swt.examples/doc-html/ngibmcpy.gif b/examples/org.eclipse.swt.examples/doc-html/ngibmcpy.gif Binary files differdeleted file mode 100755 index c786e43e1f..0000000000 --- a/examples/org.eclipse.swt.examples/doc-html/ngibmcpy.gif +++ /dev/null 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 deleted file mode 100755 index a416a8f39f..0000000000 --- a/examples/org.eclipse.swt.examples/doc-html/swt_addressbook_ex.html +++ /dev/null @@ -1,32 +0,0 @@ -<!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 a 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">SWT standalone examples 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="../../org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html">Example Launcher</a>. -Select the <strong>Address Book</strong> item from the <strong>Standalone</strong> category and click <strong>Run</strong>. -</p> - -<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2003. All Rights Reserved." BORDER=0 height=14 width=324></a></p> -</body> -</html> diff --git a/examples/org.eclipse.swt.examples/doc-html/swt_clipboard_ex.html b/examples/org.eclipse.swt.examples/doc-html/swt_clipboard_ex.html deleted file mode 100644 index fa976db731..0000000000 --- a/examples/org.eclipse.swt.examples/doc-html/swt_clipboard_ex.html +++ /dev/null @@ -1,31 +0,0 @@ -<!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 - Clipboard Example</title> -</head> -<body> - -<h2>SWT standalone example - Clipboard</h2> - -<p> -The Clipboard example shows the various SWT clipboard transfer types in use. The example can -cut, copy and paste using Text, RTF, Binary and File transfer types. -</p> - -<h3>Running the example</h3> -<p> -Follow the <a href="swt_manual_setup.html">SWT standalone examples setup</a> -instructions to install and run the example from your workspace. -</p> -<p> -The "Main" class is <code>org.eclipse.swt.examples.clipboard.ClipboardExample</code>. -</p> -<p> -This example can also be run using the <a href="../../org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html">Example Launcher</a>. -Select the <strong>Clipboard</strong> item from the <strong>Standalone</strong> category and click <strong>Run</strong>. -</p> - -<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2003. 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 deleted file mode 100755 index 03ca6d659b..0000000000 --- a/examples/org.eclipse.swt.examples/doc-html/swt_fileviewer_ex.html +++ /dev/null @@ -1,33 +0,0 @@ -<!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 on the local file system and manipulate them using drag and drop. -It uses alternate threads for long actions and demonstrates the use of the Tree, -Table, and Toolbar widgets and the Program class. -</p> - -<h3>Running the example</h3> -<p> -Follow the <a href="swt_manual_setup.html">SWT standalone examples 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="../../org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html">Example Launcher</a>. -Select the <strong>File Viewer</strong> item from the <strong>Standalone</strong> category and click <strong>Run</strong>. -</p> - -<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2003. 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 deleted file mode 100755 index b80bfacf3b..0000000000 --- a/examples/org.eclipse.swt.examples/doc-html/swt_helloworld_ex.html +++ /dev/null @@ -1,61 +0,0 @@ -<!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 that show how to get started -on creating an application with SWT. They cover the creation of a shell, the use of event listeners, -using layouts, processing events in an event loop, and drawing with a Graphics 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 of the Shell. -</p> - -<h4>Hello World 3</h4> -<p> -This example builds on HelloWorld2 and demonstrates how to use a listener mechanism to resize the Label -when the Shell size changes. -</p> - -<h4>Hello World 4</h4> -<p> -This example builds on HelloWorld2 and demonstrates how to use a Layout to resize the Label -when the Shell size changes. -</p> - -<h4>Hello World 5</h4> -<p> -This example builds on HelloWorld1 and demonstrates how to draw directly -on an SWT Control using a Graphics Context. -</p> - -<h3>Running the example</h3> - -<p> -Follow the <a href="swt_manual_setup.html">SWT standalone examples 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="../../org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html">Example Launcher</a>. -Select one of the <strong>Hello World</strong> items from the <strong>Standalone</strong> category and click <strong>Run</strong>. -</p> - -<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2003. 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 deleted file mode 100755 index dcfddba3d8..0000000000 --- a/examples/org.eclipse.swt.examples/doc-html/swt_hoverhelp_ex.html +++ /dev/null @@ -1,36 +0,0 @@ -<!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 various SWT controls including Buttons, TableItems, ToolItems and TreeItems. -To see the custom tooltips in action, hover over an item or button in the UI, and -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. Then, without moving the mouse, press <strong>F1</strong> and a new -Shell will be shown with the extended hover help information for the UI element. -</p> - -<h3>Running the example</h3> -<p> -Follow the <a href="swt_manual_setup.html">SWT standalone examples 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="../../org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html">Example Launcher</a>. -Select the <strong>Hover Help</strong> item from the <strong>Standalone</strong> category and click <strong>Run</strong>. -</p> - -<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2003. 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 deleted file mode 100755 index 7caaced518..0000000000 --- a/examples/org.eclipse.swt.examples/doc-html/swt_imageanalyzer_ex.html +++ /dev/null @@ -1,56 +0,0 @@ -<!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 example opens image files and displays their visual contents and -an image data summary. -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 can load and display image files of type GIF, JPEG, BMP, ICO, and PNG. -If a loaded file is an interlaced GIF or PNG, or a progressive JPEG, and <strong>Incremental Display</strong> is selected, -then the ImageAnalyzer will display the image increments as they are loaded. -If the file contains an animated GIF, then the <strong>Next</strong>, <strong>Previous</strong>, and <strong>Animate</strong> buttons become enabled, -and can be used to cycle through and animate the images in the file. If a GIF defines a background color, -as many animated GIFs do, then selecting <strong>Background</strong> will use the GIF's background color. -If the image has transparency, which is possible with images of type GIF, PNG, and ICO, then selecting <strong>Display Mask</strong> will draw the image's transparency -mask to the right of the image. You can change the background color of the ImageAnalyzer in order to see the transparency work. -To turn off transparency, deselect <strong>Display Transparency</strong>. -After an image is loaded, it can be scaled with the <strong>Scale</strong> combo, or have alpha transparency applied to it using the <strong>Alpha-K</strong> combo -and <strong>Alpha</strong> menu. <strong>File</strong> > <strong>Reopen</strong> restores the scaling and alpha attributes to their default values and reloads the current image file. -If the image has transparency, -<strong>File</strong> > <strong>Save Mask As...</strong> can be used to save the image's transparency mask. -</p> -<p> -When SWT loads an image file, an instance of <code>org.eclipse.swt.graphics.ImageData</code> is created (though in the case of an ICO file or -multi-image GIF an array of <code>ImageData</code> instances is created). The ImageAnalyzer displays all of the data stored in the <code>ImageData</code> -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 <code>org.eclipse.swt.graphics.ImageLoader</code> -instance that is 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">SWT standalone examples 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="../../org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html">Example Launcher</a>. -Select the <strong>Image Analyzer</strong> item from the <strong>Standalone</strong> category and click <strong>Run</strong>. -</p> - -<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2003. 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 deleted file mode 100755 index 7563f8610f..0000000000 --- a/examples/org.eclipse.swt.examples/doc-html/swt_javaviewer_ex.html +++ /dev/null @@ -1,33 +0,0 @@ -<!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 shows 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, and -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">SWT standalone examples 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="../../org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html">Example Launcher</a>. -Select the <strong>Java Syntax Viewer</strong> item from the <strong>Standalone</strong> category and click <strong>Run</strong>. -</p> - -<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2003. 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 deleted file mode 100755 index c25ca8ba85..0000000000 --- a/examples/org.eclipse.swt.examples/doc-html/swt_manual_setup.html +++ /dev/null @@ -1,118 +0,0 @@ -<!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 <strong>File</strong> > <strong>Import</strong> menu, then select <strong>Zip File</strong> from the subsequent dialog and click <strong>Next</strong>. -<li>Locate the source zip file for the SWT examples. For example: - <ul> - <li><em>win32: </em><code>INSTALLDIR\eclipse\plugins\org.eclipse.sdk.examples.source_3.0.0\src\org.eclipse.swt.examples_3.0.0\swtexamplessrc.zip</code> - <li><em>*ix: </em><code>INSTALLDIR/eclipse/plugins/org.eclipse.sdk.examples.source_3.0.0/src/org.eclipse.swt.examples_3.0.0/swtexamplessrc.zip</code> - </ul> -<li>Click <strong>Finish</strong>. -<li>Select the <strong>File</strong> > <strong>Import</strong> menu, then select <strong>Zip File</strong> from the subsequent dialog and click <strong>Next</strong>. -<li>Locate the jar file for the SWT examples. For example: - <ul> - <li><em>win32: </em><code>INSTALLDIR\eclipse\plugins\org.eclipse.swt.examples_3.0.0\swtexamples.jar</code> - <li><em>*ix: </em><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.examples_3.0.0/swtexamples.jar</code> - </ul> -<li>Expand the top level directory of the jar file (/), uncheck "META-INF", and click <strong>Finish</strong>. -<li>In the resulting "<em>Overwrite?</em>" prompter click <strong>No To All</strong> so that only non-class resources will be imported. -</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 its context menu select <strong>Properties</strong>. -<li>Select the <strong>Java Build Path</strong> page, and then select its <strong>Libraries</strong> tab. -<li>Click on the <strong>Add External JARs...</strong> button. -<li>Locate the swt jar for the platform on which you wish to run:<br> - <ul> - <li><em>win32: </em><code>INSTALLDIR\eclipse\plugins\org.eclipse.swt.win32_3.0.0\ws\win32\swt.jar</code> - <li><em>gtk: </em><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/swt.jar</code> - <li><em>motif: </em><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_3.0.0/ws/motif/swt.jar</code> - <li><em>photon: </em><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.photon_3.0.0/ws/photon/swt.jar</code> - <li><em>macosx: </em><code>INSTALLDIR/eclipse/plugins/org.eclipse.swt.carbon_3.0.0/ws/carbon/swt.jar</code> - </ul> -<li>Click on OK. -</ol> -<p><strong>NOTE:</strong> 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 and a swt-mozilla.jar file). In this case all of 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 Tasks -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 <strong>Window</strong> > <strong>Preferences</strong> dialog -and select the <strong>Java</strong> > <strong>Installed JREs</strong> preference page 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>Select <strong>Run</strong> > <strong>Run...</strong> from the main menu. -<li>In the Launch Configurations dialog that appears, select <strong>Java Application</strong> and click - on the <strong>New</strong> button. -<li>Fill in the <strong>Name</strong>, <strong>Project</strong> and <strong>Main</strong> class fields according to the example that you wish to run. -<li>Select the <strong>Arguments</strong> tab. In the <strong>VM Arguments</strong> area specify the location of the SWT - library depending on your target platform as follows: - <ul> - <li><em>win32: </em><code>-Djava.library.path=INSTALLDIR\plugins\org.eclipse.swt.win32_3.0.0\os\win32\x86</code> - <li><em>linux gtk: </em><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/os/linux/x86</code> - <li><em>linux motif: </em><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_3.0.0/os/linux/x86</code> - <li><em>solaris motif: </em><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_3.0.0/os/solaris/sparc</code> - <li><em>aix motif: </em><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_3.0.0/os/aix/ppc</code> - <li><em>hpux motif: </em><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_3.0.0/os/hpux/PA_RISC</code> - <li><em>photon qnx: </em><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.photon_3.0.0/os/qnx/x86</code> - <li><em>macosx: </em><code>-Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.carbon_3.0.0/os/macosx/ppc</code> - </ul> -<li>Click on the <strong>Run</strong> button. -</ol> - - -<h3>Examples Overview</h3> -<p> -Consult the documentation of each individual example for the name of -its main class and additional details. -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_clipboard_ex.html">Clipboard</a> -<li><a href="../../org.eclipse.swt.examples.controls/doc-html/swt_controls_ex.html">Controls</a> -<li><a href="../../org.eclipse.swt.examples.controls/doc-html/swt_customcontrols_ex.html">Custom 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 Syntax Viewer</a> -<li><a href="../../org.eclipse.swt.examples.layouts/doc-html/swt_layout_ex.html">Layouts</a> -<li><a href="swt_texteditor_ex.html">Text Editor</a> -</ul> - -<p><br><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2003. 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 deleted file mode 100755 index 528fe6ff1d..0000000000 --- a/examples/org.eclipse.swt.examples/doc-html/swt_texteditor_ex.html +++ /dev/null @@ -1,34 +0,0 @@ -<!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 a StyledText widget to implement -a text editor with formatting support. -The example has a typical text editor interface. -The <strong>Edit</strong> menu contains <strong>Cut</strong>, <strong>Copy</strong>, <strong>Paste</strong> and <strong>Set Font</strong> items. The toolbar -provides a bold text toggle, three colour tools, and a reset button, all of which operate on the current selection. -</p> - -<h3>Running the example</h3> -<p> -Follow the <a href="swt_manual_setup.html">SWT standalone examples 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="../../org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html">Example Launcher</a>. -Select the <strong>Text Editor</strong> item from the <strong>Standalone</strong> category and click <strong>Run</strong>. -</p> - -<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2003. All Rights Reserved." BORDER=0 height=14 width=324></a></p> -</body> -</html> |