diff options
author | Silenio Quarti | 2004-08-17 04:02:08 +0000 |
---|---|---|
committer | Silenio Quarti | 2004-08-17 04:02:08 +0000 |
commit | 923446d1cfffdbd9ab941e6352aaa8c343b04d37 (patch) | |
tree | 3ef909bdbb6f425e9618c44b5444f19fad93f51d /examples | |
parent | a945bf9f4b7f31f83b0a1a0c801d7cda5a2b5325 (diff) | |
download | eclipse.platform.swt-923446d1cfffdbd9ab941e6352aaa8c343b04d37.tar.gz eclipse.platform.swt-923446d1cfffdbd9ab941e6352aaa8c343b04d37.tar.xz eclipse.platform.swt-923446d1cfffdbd9ab941e6352aaa8c343b04d37.zip |
start
Diffstat (limited to 'examples')
-rw-r--r-- | examples/org.eclipse.swt.snippets/.classpath | 7 | ||||
-rw-r--r-- | examples/org.eclipse.swt.snippets/.cvsignore | 1 | ||||
-rw-r--r-- | examples/org.eclipse.swt.snippets/.project | 29 | ||||
-rw-r--r-- | examples/org.eclipse.swt.snippets/about.html | 30 | ||||
-rw-r--r-- | examples/org.eclipse.swt.snippets/build.properties | 11 | ||||
-rw-r--r-- | examples/org.eclipse.swt.snippets/plugin.properties | 12 | ||||
-rw-r--r-- | examples/org.eclipse.swt.snippets/plugin.xml | 12 | ||||
-rw-r--r-- | examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet1.java | 33 |
8 files changed, 135 insertions, 0 deletions
diff --git a/examples/org.eclipse.swt.snippets/.classpath b/examples/org.eclipse.swt.snippets/.classpath new file mode 100644 index 0000000000..065ac06e19 --- /dev/null +++ b/examples/org.eclipse.swt.snippets/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/examples/org.eclipse.swt.snippets/.cvsignore b/examples/org.eclipse.swt.snippets/.cvsignore new file mode 100644 index 0000000000..c5e82d7458 --- /dev/null +++ b/examples/org.eclipse.swt.snippets/.cvsignore @@ -0,0 +1 @@ +bin
\ No newline at end of file diff --git a/examples/org.eclipse.swt.snippets/.project b/examples/org.eclipse.swt.snippets/.project new file mode 100644 index 0000000000..069b3a1b00 --- /dev/null +++ b/examples/org.eclipse.swt.snippets/.project @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.swt.examples</name> + <comment></comment> + <projects> + <project>org.eclipse.swt</project> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + </natures> +</projectDescription> diff --git a/examples/org.eclipse.swt.snippets/about.html b/examples/org.eclipse.swt.snippets/about.html new file mode 100644 index 0000000000..9db411aab9 --- /dev/null +++ b/examples/org.eclipse.swt.snippets/about.html @@ -0,0 +1,30 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> +<html> +<head> +<title>About</title> +<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> +</head> +<body lang="EN-US"> +<h2>About This Content</h2> + +<p>20th June, 2002</p> +<h3>License</h3> +<p>Eclipse.org makes available all content in this plug-in ("Content"). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the +Common Public License Version 1.0 ("CPL"). A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>. +For purposes of the CPL, "Program" will mean the Content.</p> + +<h3>Contributions</h3> + +<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise +made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such +Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p> + +<p>If this Content is licensed to you under license terms and conditions other than the CPL ("Other License"), any modifications, enhancements and/or +other code and/or documentation ("Modifications") uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the +host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available +to others under the terms of the Other License. In addition, with regard to Modifications for which you are the copyright holder, you are also +providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of +the CPL.</p> + +</body> +</html>
\ No newline at end of file diff --git a/examples/org.eclipse.swt.snippets/build.properties b/examples/org.eclipse.swt.snippets/build.properties new file mode 100644 index 0000000000..6bd494b6cb --- /dev/null +++ b/examples/org.eclipse.swt.snippets/build.properties @@ -0,0 +1,11 @@ +############################################################################### +# Copyright (c) 2000, 2004 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 +############################################################################### +source.swtsnippets.jar = src/ diff --git a/examples/org.eclipse.swt.snippets/plugin.properties b/examples/org.eclipse.swt.snippets/plugin.properties new file mode 100644 index 0000000000..cfc2a843ce --- /dev/null +++ b/examples/org.eclipse.swt.snippets/plugin.properties @@ -0,0 +1,12 @@ +############################################################################### +# Copyright (c) 2000, 2004 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 +############################################################################### +pluginName = SWT Snippets +providerName = Eclipse.org diff --git a/examples/org.eclipse.swt.snippets/plugin.xml b/examples/org.eclipse.swt.snippets/plugin.xml new file mode 100644 index 0000000000..1190339a0a --- /dev/null +++ b/examples/org.eclipse.swt.snippets/plugin.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<plugin + id="org.eclipse.swt.snippets" + name="%pluginName" + version="3.1.0" + provider-name="%providerName"> + + <requires> + <import plugin="org.eclipse.swt" export="true"/> + </requires> + +</plugin> diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet1.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet1.java new file mode 100644 index 0000000000..a53b328aad --- /dev/null +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet1.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package org.eclipse.swt.snippets; + +/* + * example snippet: Hello World + * + * For a list of all SWT example snippets see + * http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/dev.html#snippets + */ +import org.eclipse.swt.widgets.*; + +public class Snippet1 { + +public static void main (String [] args) { + Display display = new Display (); + Shell shell = new Shell(display); + shell.open (); + while (!shell.isDisposed ()) { + if (!display.readAndDispatch ()) display.sleep (); + } + display.dispose (); +} +} + |