summaryrefslogtreecommitdiffstats
path: root/examples/org.eclipse.swt.examples.browser.demos
diff options
context:
space:
mode:
authorChristophe Cornu <ccornu>2004-08-30 16:57:55 +0000
committerChristophe Cornu <ccornu>2004-08-30 16:57:55 +0000
commitf5cb3e62240f9b314de4ced0b7ccd5e824a2abbd (patch)
treefa4921982fd3ea64f28e76aa6a675f2936d0b2df /examples/org.eclipse.swt.examples.browser.demos
parentb04d97b6187de17b0c44d1c191646a0fa08d3298 (diff)
downloadeclipse.platform.swt-f5cb3e62240f9b314de4ced0b7ccd5e824a2abbd.tar.gz
eclipse.platform.swt-f5cb3e62240f9b314de4ced0b7ccd5e824a2abbd.tar.xz
eclipse.platform.swt-f5cb3e62240f9b314de4ced0b7ccd5e824a2abbd.zip
integrate Browser Demos plug-in with SWT Plugin launcher
Diffstat (limited to 'examples/org.eclipse.swt.examples.browser.demos')
-rw-r--r--examples/org.eclipse.swt.examples.browser.demos/doc-html/hglegal.htm14
-rw-r--r--examples/org.eclipse.swt.examples.browser.demos/doc-html/ngibmcpy.gifbin0 -> 1101 bytes
-rw-r--r--examples/org.eclipse.swt.examples.browser.demos/doc-html/swt_browser_ex.html41
-rw-r--r--examples/org.eclipse.swt.examples.browser.demos/plugin.properties31
-rw-r--r--examples/org.eclipse.swt.examples.browser.demos/plugin.xml30
5 files changed, 104 insertions, 12 deletions
diff --git a/examples/org.eclipse.swt.examples.browser.demos/doc-html/hglegal.htm b/examples/org.eclipse.swt.examples.browser.demos/doc-html/hglegal.htm
new file mode 100644
index 0000000000..621115699c
--- /dev/null
+++ b/examples/org.eclipse.swt.examples.browser.demos/doc-html/hglegal.htm
@@ -0,0 +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">
+ <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, 2004 IBM Corporation and others. All Rights Reserved.
+</body>
+</html>
diff --git a/examples/org.eclipse.swt.examples.browser.demos/doc-html/ngibmcpy.gif b/examples/org.eclipse.swt.examples.browser.demos/doc-html/ngibmcpy.gif
new file mode 100644
index 0000000000..c786e43e1f
--- /dev/null
+++ b/examples/org.eclipse.swt.examples.browser.demos/doc-html/ngibmcpy.gif
Binary files differ
diff --git a/examples/org.eclipse.swt.examples.browser.demos/doc-html/swt_browser_ex.html b/examples/org.eclipse.swt.examples.browser.demos/doc-html/swt_browser_ex.html
new file mode 100644
index 0000000000..0960d0d445
--- /dev/null
+++ b/examples/org.eclipse.swt.examples.browser.demos/doc-html/swt_browser_ex.html
@@ -0,0 +1,41 @@
+<!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 - Controls Overview</title>
+</head>
+<body>
+
+<h2>SWT example - Browser Demos</h2>
+
+<p>
+The Browser Demos demonstrate various features of the SWT Browser widget.
+<li>The Pawns Game is a board game that can be played against the computer
+or against another player. Rendering is based on HTML and CSS techniques. The
+board is a table filled with hyperlinks. Cascading Style Sheets
+provide various themes and control the table aesthetic appearance.
+The API <code>org.eclipse.swt.browser.Browser.setText(java.lang.String)</code> draws
+the board game from HTML generated in memory.
+Player moves are captured by implementing the interface <code>org.eclipse.swt.browser.LocationListener</code>.
+e.g the player clicks on a cell that may generate an hyperlink with a URL similar to
+http://www.org.eclipse.swt.examples.browser.demos/xx1yy2. That hyperlink identifies
+the position of the cell selected by the player. The move is completed by generating
+new HTML content and invoking <code>Browser.setText</code> to update the board game.
+</p>
+
+<h3>Running the example</h3>
+<p>
+Follow the <a href="../../org.eclipse.swt.examples/doc-html/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.browser.demos.BrowserDemoView</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>Browser Demos</strong> item from the <strong>Workbench Views</strong> category and click <strong>Run</strong>.
+</p>
+
+<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2004. All Rights Reserved." BORDER=0 height=14 width=324></a></p>
+</body>
+</html>
diff --git a/examples/org.eclipse.swt.examples.browser.demos/plugin.properties b/examples/org.eclipse.swt.examples.browser.demos/plugin.properties
new file mode 100644
index 0000000000..99a8ef4787
--- /dev/null
+++ b/examples/org.eclipse.swt.examples.browser.demos/plugin.properties
@@ -0,0 +1,31 @@
+###############################################################################
+# Copyright (c) 2000, 2003 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Common Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/cpl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+providerName = Eclipse.org
+plugin.SWTBrowserDemos.name = SWT Browser Demos Plugin
+category.SWTExamples.name = SWT Examples
+view.BrowserDemos.name = Browser Demo
+
+launchcategory.SWTViewExamples.name = Workbench Views
+launchcategory.SWTViewExamples.description = \
+ A collection of Standard Widget Toolkit examples that run as Views inside the Workbench. \
+ These examples will create a new View in the current Perspective.
+
+launchitem.BrowserDemos.name = Browser Demo
+launchitem.BrowserDemos.description = \
+ The example illustrates how to use the SWT Browser widget for HTML rendering.\n\n\
+ The Pawns Game is a board game that can be played against the computer or against another player.\n\n\
+ Rendering is based on HTML and CSS techniques. The board is a table filled with hyperlinks. Cascading Style Sheets \
+ provide various themes and control the table aesthetic appearance. \n\
+ The API org.eclipse.swt.browser.Browser.setText(java.lang.String) draws the board game from HTML generated in memory.\n\
+ Player moves are captured by implementing the interface org.eclipse.swt.browser.LocationListener. e.g the player clicks \
+ on a cell that defines an hyperlink with a URL http://www.org.eclipse.swt.examples.browser.demos/xx1yy2.\
+ That hyperlink identifies the position of the cell selected by the player. The move is completed by generating \
+ new HTML content and invoking Browser.setText to update the board game.
diff --git a/examples/org.eclipse.swt.examples.browser.demos/plugin.xml b/examples/org.eclipse.swt.examples.browser.demos/plugin.xml
index b4b5ebd6d3..3ef59e5655 100644
--- a/examples/org.eclipse.swt.examples.browser.demos/plugin.xml
+++ b/examples/org.eclipse.swt.examples.browser.demos/plugin.xml
@@ -2,9 +2,9 @@
<?eclipse version="3.0"?>
<plugin
id="org.eclipse.swt.examples.browser.demos"
- name="BrowserDemo Plug-in"
+ name="%plugin.SWTBrowserDemos.name"
version="3.1.0"
- provider-name="SWT"
+ provider-name="%providerName"
class="org.eclipse.swt.examples.browser.demos.BrowserDemoPlugin">
<runtime>
@@ -21,7 +21,7 @@
<extension
point="org.eclipse.ui.views">
<category
- name="Browser"
+ name="%view.BrowserDemos.name"
id="org.eclipse.swt.examples.browser.demos.BrowserDemo">
</category>
<view
@@ -33,17 +33,23 @@
id="org.eclipse.swt.examples.browser.demos.views.BrowserDemoView">
</view>
</extension>
+
<extension
- point="org.eclipse.ui.perspectiveExtensions">
- <perspectiveExtension
- targetID="org.eclipse.ui.resourcePerspective">
+ point="org.eclipse.swt.examples.launcher.launchItems">
+ <category
+ name="%launchcategory.SWTViewExamples.name"
+ description="%launchcategory.SWTViewExamples.description"
+ id="org.eclipse.swt.examples.launchViewCategory">
+ </category>
+ <item
+ name="%launchitem.BrowserDemos.name"
+ icon="icons/sample.gif"
+ category="org.eclipse.swt.examples.launchViewCategory"
+ description="%launchitem.BrowserDemos.description"
+ id="org.eclipse.swt.examples.browserdemos.viewlauncher">
<view
- ratio="0.5"
- relative="org.eclipse.ui.views.TaskList"
- relationship="right"
- id="org.eclipse.swt.examples.browser.demos.BrowserDemo.views.BrowserDemoView">
+ viewId="org.eclipse.swt.examples.browser.demos.views.BrowserDemoView">
</view>
- </perspectiveExtension>
+ </item>
</extension>
-
</plugin>