aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbrun2013-08-05 11:35:39 (EDT)
committercbrun2013-09-20 08:12:19 (EDT)
commit6768086d5edf14a12279267ddeb5db602737687b (patch)
tree6614939fb1bc32a633f9993d9aa551fae96f3526
parent2d174d707e273a5100530855b98d853ed05fab13 (diff)
downloadorg.eclipse.nebula-6768086d5edf14a12279267ddeb5db602737687b.zip
org.eclipse.nebula-6768086d5edf14a12279267ddeb5db602737687b.tar.gz
org.eclipse.nebula-6768086d5edf14a12279267ddeb5db602737687b.tar.bz2
[414433] Add PaperClips in the examples gallery
-rw-r--r--widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.classpath7
-rw-r--r--widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.project28
-rw-r--r--widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.settings/org.eclipse.jdt.core.prefs6
-rw-r--r--widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/META-INF/MANIFEST.MF12
-rw-r--r--widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/about.html107
-rw-r--r--widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/build.properties4
-rw-r--r--widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/plugin.properties3
-rw-r--r--widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/plugin.xml12
-rw-r--r--widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/pom.xml18
-rw-r--r--widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/src/org/eclipse/nebula/widgets/paperclips/example/PaperclipsExampleTab.java144
-rw-r--r--widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/src/org/eclipse/nebula/widgets/paperclips/example/logo.pngbin0 -> 52347 bytes
11 files changed, 341 insertions, 0 deletions
diff --git a/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.classpath b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.classpath
new file mode 100644
index 0000000..2fbb7a2
--- /dev/null
+++ b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.project b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.project
new file mode 100644
index 0000000..7faab27
--- /dev/null
+++ b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.nebula.widgets.paperclips.example</name>
+ <comment></comment>
+ <projects>
+ </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.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.settings/org.eclipse.jdt.core.prefs b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..d243776
--- /dev/null
+++ b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,6 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.3
diff --git a/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/META-INF/MANIFEST.MF b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..0620c96
--- /dev/null
+++ b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/META-INF/MANIFEST.MF
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.nebula.widgets.paperclips.example;singleton:=true
+Bundle-Version: 2.0.0.qualifier
+Bundle-RequiredExecutionEnvironment: J2SE-1.4
+Bundle-Vendor: %providerName
+Require-Bundle: org.eclipse.nebula.examples;bundle-version="1.0.4",
+ org.eclipse.nebula.paperclips.core;bundle-version="[2.0.0,3.0.0)",
+ org.eclipse.nebula.paperclips.widgets;bundle-version="[2.0.0,3.0.0)",
+ org.eclipse.swt;bundle-version="[3.2.0,4.0.0)"
+Bundle-Localization: plugin
diff --git a/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/about.html b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/about.html
new file mode 100644
index 0000000..5507b29
--- /dev/null
+++ b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/about.html
@@ -0,0 +1,107 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+<title>Eclipse Foundation Software User Agreement</title>
+</head>
+
+
+<body lang="EN-US">
+<h2>Eclipse Foundation Software User Agreement</h2>
+<p>April 14, 2010</p>
+
+<h3>Usage Of Content</h3>
+
+<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
+ (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
+ CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
+ OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
+ NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
+ CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
+
+<h3>Applicable Licenses</h3>
+
+<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
+ (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+ For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
+ repository (&quot;Repository&quot;) in software modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
+
+<ul>
+ <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
+ <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java&trade; ARchive) in a directory named &quot;plugins&quot;.</li>
+ <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
+ and/or Fragments associated with that Feature.</li>
+ <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
+</ul>
+
+<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
+Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
+including, but not limited to the following locations:</p>
+
+<ul>
+ <li>The top-level (root) directory</li>
+ <li>Plug-in and Fragment directories</li>
+ <li>Inside Plug-ins and Fragments packaged as JARs</li>
+ <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
+ <li>Feature directories</li>
+</ul>
+
+<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license (&quot;Feature Update License&quot;) during the
+installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
+inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
+Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
+that directory.</p>
+
+<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
+OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
+
+<ul>
+ <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
+ <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
+ <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
+ <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
+ <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
+</ul>
+
+<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
+contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
+
+
+<h3>Use of Provisioning Technology</h3>
+
+<p>The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
+ Update Manager (&quot;Provisioning Technology&quot;) for the purpose of allowing users to install software, documentation, information and/or
+ other materials (collectively &quot;Installable Software&quot;). This capability is provided with the intent of allowing such users to
+ install, extend and update Eclipse-based products. Information about packaging Installable Software is available at <a
+ href="http://eclipse.org/equinox/p2/repository_packaging.html">http://eclipse.org/equinox/p2/repository_packaging.html</a>
+ (&quot;Specification&quot;).</p>
+
+<p>You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
+ applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
+ in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
+ Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:</p>
+
+<ol>
+ <li>A series of actions may occur (&quot;Provisioning Process&quot;) in which a user may execute the Provisioning Technology
+ on a machine (&quot;Target Machine&quot;) with the intent of installing, extending or updating the functionality of an Eclipse-based
+ product.</li>
+ <li>During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
+ accessed and copied to the Target Machine.</li>
+ <li>Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
+ Software (&quot;Installable Software Agreement&quot;) and such Installable Software Agreement shall be accessed from the Target
+ Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
+ the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
+ indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.</li>
+</ol>
+
+<h3>Cryptography</h3>
+
+<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
+ another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
+ possession, or use, and re-export of encryption software, to see if this is permitted.</p>
+
+<p><small>Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.</small></p>
+</body>
+</html>
diff --git a/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/build.properties b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/build.properties
new file mode 100644
index 0000000..34d2e4d
--- /dev/null
+++ b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/plugin.properties b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/plugin.properties
new file mode 100644
index 0000000..ee594f0
--- /dev/null
+++ b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/plugin.properties
@@ -0,0 +1,3 @@
+
+pluginName=PaperClips Example Plug-in
+providerName=Eclipse.org \ No newline at end of file
diff --git a/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/plugin.xml b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/plugin.xml
new file mode 100644
index 0000000..0ccb13a
--- /dev/null
+++ b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/plugin.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.nebula.examples.examples">
+ <tab
+ class="org.eclipse.nebula.widgets.paperclips.example.PaperclipsExampleTab"
+ name="Paperclips">
+ </tab>
+ </extension>
+
+</plugin>
diff --git a/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/pom.xml b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/pom.xml
new file mode 100644
index 0000000..0cca8af
--- /dev/null
+++ b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/pom.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+ xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>nebula-parent</artifactId>
+ <groupId>org.eclipse.nebula</groupId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../../../releng/org.eclipse.nebula.nebula-parent</relativePath>
+ </parent>
+
+ <groupId>org.eclipse.nebula</groupId>
+ <artifactId>org.eclipse.nebula.widgets.paperclips.example</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+
+ <name>Nebula paperclips Example</name>
+</project>
diff --git a/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/src/org/eclipse/nebula/widgets/paperclips/example/PaperclipsExampleTab.java b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/src/org/eclipse/nebula/widgets/paperclips/example/PaperclipsExampleTab.java
new file mode 100644
index 0000000..3246c9d
--- /dev/null
+++ b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/src/org/eclipse/nebula/widgets/paperclips/example/PaperclipsExampleTab.java
@@ -0,0 +1,144 @@
+/*
+ * Copyright (c) 2006 Matthew Hall and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Matthew Hall - initial API and implementation
+ * Cedric Brun - adapt to embed in the ExampleTab
+ */
+package org.eclipse.nebula.widgets.paperclips.example;
+
+import org.eclipse.nebula.examples.AbstractExampleTab;
+import org.eclipse.nebula.paperclips.core.ImagePrint;
+import org.eclipse.nebula.paperclips.core.LinePrint;
+import org.eclipse.nebula.paperclips.core.PaperClips;
+import org.eclipse.nebula.paperclips.core.Print;
+import org.eclipse.nebula.paperclips.core.PrintJob;
+import org.eclipse.nebula.paperclips.core.grid.DefaultGridLook;
+import org.eclipse.nebula.paperclips.core.grid.GridPrint;
+import org.eclipse.nebula.paperclips.core.text.TextPrint;
+import org.eclipse.nebula.paperclips.widgets.PrintPreview;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.ImageData;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.RowLayout;
+import org.eclipse.swt.printing.PrinterData;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Listener;
+
+public class PaperclipsExampleTab extends AbstractExampleTab {
+
+ private static final String BUNDLE = "org.eclipse.nebula.widgets.paperclips.example";
+
+
+ public Control createControl(Composite parent) {
+ Composite shell = new Composite(parent, SWT.None);
+
+ final PrintJob job = new PrintJob(
+ "GridPrintVerticalAlignmentExample.java", createPrint());
+ shell.setLayout(new org.eclipse.swt.layout.GridLayout());
+
+ Composite buttonPanel = new Composite(shell, SWT.NONE);
+ buttonPanel
+ .setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ buttonPanel.setLayout(new RowLayout(SWT.HORIZONTAL));
+
+ final PrintPreview preview = new PrintPreview(shell, SWT.BORDER);
+
+ Button prev = new Button(buttonPanel, SWT.PUSH);
+ prev.setText("<< Prev");
+ prev.addListener(SWT.Selection, new Listener() {
+ public void handleEvent(Event event) {
+ preview.setPageIndex(Math.max(preview.getPageIndex() - 1, 0));
+ }
+ });
+
+ Button next = new Button(buttonPanel, SWT.PUSH);
+ next.setText("Next >>");
+ next.addListener(SWT.Selection, new Listener() {
+ public void handleEvent(Event event) {
+ preview.setPageIndex(Math.min(preview.getPageIndex() + 1,
+ preview.getPageCount() - 1));
+ }
+ });
+
+ Button print = new Button(buttonPanel, SWT.PUSH);
+ print.setText("Print");
+ print.addListener(SWT.Selection, new Listener() {
+ public void handleEvent(Event event) {
+ PaperClips.print(job, new PrinterData());
+ }
+ });
+
+ preview.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ preview.setFitHorizontal(true);
+ preview.setFitVertical(true);
+ preview.setPrintJob(job);
+ return shell;
+ }
+
+ public static Print createPrint() {
+ DefaultGridLook look = new DefaultGridLook(5, 5);
+ look.setHeaderGap(5);
+ GridPrint grid = new GridPrint("d:g, d, d:g, d, d:g, d, d:g", look);
+
+ ImageData imageData = new ImageData(
+ PaperclipsExampleTab.class
+ .getResourceAsStream("logo.png"));
+ ImagePrint image = new ImagePrint(imageData);
+ image.setDPI(300, 300);
+
+ Print verticalRule = new LinePrint(SWT.VERTICAL);
+
+ grid.addHeader(SWT.CENTER, SWT.DEFAULT, new TextPrint("Column 1"));
+ grid.addHeader(SWT.DEFAULT, SWT.FILL, verticalRule);
+ grid.addHeader(SWT.CENTER, SWT.DEFAULT, new TextPrint("Column 2"));
+ grid.addHeader(SWT.DEFAULT, SWT.FILL, verticalRule);
+ grid.addHeader(SWT.CENTER, SWT.DEFAULT, new TextPrint("Column 3"));
+ grid.addHeader(SWT.DEFAULT, SWT.FILL, verticalRule);
+ grid.addHeader(SWT.CENTER, SWT.DEFAULT, new TextPrint("Column 4"));
+
+ grid.addHeader(new LinePrint(SWT.HORIZONTAL), GridPrint.REMAINDER);
+
+ grid.add(SWT.LEFT, SWT.CENTER, image);
+ grid.add(SWT.DEFAULT, SWT.FILL, verticalRule);
+ grid.add(SWT.DEFAULT, SWT.DEFAULT,
+ new TextPrint("triple\nline\nleft\n"));
+ grid.add(SWT.DEFAULT, SWT.FILL, verticalRule);
+ grid.add(SWT.CENTER, SWT.CENTER, new TextPrint("double line\ncenter",
+ SWT.CENTER));
+ grid.add(SWT.DEFAULT, SWT.FILL, verticalRule);
+ grid.add(SWT.RIGHT, SWT.BOTTOM, new TextPrint("single line right"));
+
+ grid.add(new LinePrint(SWT.HORIZONTAL), GridPrint.REMAINDER);
+
+ grid.add(SWT.CENTER, SWT.CENTER, new TextPrint(
+ "several\nlines\nof\ntext\nhere", SWT.CENTER));
+ grid.add(SWT.DEFAULT, SWT.FILL, verticalRule);
+ grid.add(SWT.LEFT, SWT.FILL, verticalRule);
+ grid.add(SWT.DEFAULT, SWT.FILL, verticalRule);
+ grid.add(SWT.CENTER, SWT.FILL, verticalRule);
+ grid.add(SWT.DEFAULT, SWT.FILL, verticalRule);
+ grid.add(SWT.RIGHT, SWT.FILL, verticalRule);
+
+ return grid;
+ }
+
+
+ public void createParameters(Composite parent) {
+ // do nothing
+
+ }
+
+
+ public String[] createLinks() {
+ String[] links = { "<a href=\"https://github.com/eclipse/nebula/tree/master/widgets/paperclips/org.eclipse.nebula.paperclips.snippets/src/org/eclipse/nebula/paperclips/snippets\" >Paperclips Snippets</a>" };
+ return links;
+ }
+} \ No newline at end of file
diff --git a/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/src/org/eclipse/nebula/widgets/paperclips/example/logo.png b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/src/org/eclipse/nebula/widgets/paperclips/example/logo.png
new file mode 100644
index 0000000..daa254e
--- /dev/null
+++ b/widgets/paperclips/org.eclipse.nebula.widgets.paperclips.example/src/org/eclipse/nebula/widgets/paperclips/example/logo.png
Binary files differ