diff options
author | Dean Roberts <droberts> | 2003-03-10 21:25:12 +0000 |
---|---|---|
committer | Dean Roberts <droberts> | 2003-03-10 21:25:12 +0000 |
commit | 57c55e5836cb6a66a2e0337cee21416cf56ef60a (patch) | |
tree | 52324a6d5ad63460d633654dba654ca6b0b9ca19 /examples | |
parent | 471852b0a6139fe4ef9c7bf47844355416ab4f5c (diff) | |
download | eclipse.platform.swt-57c55e5836cb6a66a2e0337cee21416cf56ef60a.tar.gz eclipse.platform.swt-57c55e5836cb6a66a2e0337cee21416cf56ef60a.tar.xz eclipse.platform.swt-57c55e5836cb6a66a2e0337cee21416cf56ef60a.zip |
Fix copyrights - automated changes
Diffstat (limited to 'examples')
13 files changed, 339 insertions, 55 deletions
diff --git a/examples/org.eclipse.swt.examples.launcher/build.properties b/examples/org.eclipse.swt.examples.launcher/build.properties index a5438fcbe1..2ca3829db3 100755 --- a/examples/org.eclipse.swt.examples.launcher/build.properties +++ b/examples/org.eclipse.swt.examples.launcher/build.properties @@ -1,3 +1,13 @@ +############################################################################### +# 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 +############################################################################### bin.includes = doc/,\ doc-html/,\ icons/,\ diff --git a/examples/org.eclipse.swt.examples.launcher/plugin.properties b/examples/org.eclipse.swt.examples.launcher/plugin.properties index 28db6584d6..7b0f95c5de 100755 --- a/examples/org.eclipse.swt.examples.launcher/plugin.properties +++ b/examples/org.eclipse.swt.examples.launcher/plugin.properties @@ -1,3 +1,13 @@ +############################################################################### +# 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.SWTLauncherExample.name = SWT Launcher Example Plugin category.SWTExamples.name = SWT Examples diff --git a/examples/org.eclipse.swt.examples.launcher/src/import.properties b/examples/org.eclipse.swt.examples.launcher/src/import.properties index 265131a99c..58344f0d3e 100644 --- a/examples/org.eclipse.swt.examples.launcher/src/import.properties +++ b/examples/org.eclipse.swt.examples.launcher/src/import.properties @@ -1,3 +1,13 @@ +############################################################################### +# 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 +############################################################################### # Persist project settings for later import natures = org.eclipse.jdt.core.javanature; org.eclipse.pde.PluginNature builders = org.eclipse.jdt.core.javabuilder; org.eclipse.pde.ManifestBuilder; org.eclipse.pde.SchemaBuilder diff --git a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemDescriptor.java b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemDescriptor.java index 11ebb38e50..7ec10195b8 100755 --- a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemDescriptor.java +++ b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemDescriptor.java @@ -1,27 +1,51 @@ -package org.eclipse.swt.examples.launcher;
/*
* Copyright (c) 2000, 2002 IBM Corp. All rights reserved. - * This file is made available under the terms of the Common Public License v1.0 +/******************************************************************************* + * 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
*/
import org.eclipse.swt.graphics.*; -
/**
* ItemDescriptor collects information about a launch item.
*/ + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.swt.examples.launcher; + + +import org.eclipse.swt.graphics.*; + +/** + * ItemDescriptor collects information about a launch item. + */ class ItemDescriptor { private String id; private String name; - private String description;
private Image icon;
private String view;
private String mainType;
private String pluginId;
+ private String description; + private Image icon; + private String view; + private String mainType; + private String pluginId; + /** * Constructs an ItemDescriptor. * * @param id the id * @param name the name - * @param description the description
* @param icon the icon - * @param view the host view may be null if it is a standalone application
* @param mainType the fully qualified class name to run may be null if it is a view
* @param pluginId the name of the plugin which contains the main class + * @param description the description + * @param icon the icon + * @param view the host view may be null if it is a standalone application + * @param mainType the fully qualified class name to run may be null if it is a view + * @param pluginId the name of the plugin which contains the main class */ public ItemDescriptor(String id, String name, String description, Image icon, String view, String mainType, String pluginId) { this.id = id; this.name = name; - this.description = description;
this.icon = icon; - this.view = view;
this.mainType = mainType;
this.pluginId = pluginId; + this.description = description; + this.icon = icon; + this.view = view; + this.mainType = mainType; + this.pluginId = pluginId; } /** @@ -50,23 +74,72 @@ class ItemDescriptor { public String getDescription() { return description; } -
/**
* Returns an icon for this descriptor
*
* @returns an icon, null if the item is a folder
*/
public Image getIcon() {
return icon;
}
+ + /** + * Returns an icon for this descriptor + * + * @returns an icon, null if the item is a folder + */ + public Image getIcon() { + return icon; + } + /** * Returns the host view for the program. * * @return the host view, null if the item is a standalone program. */ - public String getView () {
return view;
}
/**
* Returns the fully qualified class to run
* for the program.
*
* @return the class to run for the program.
*/
public String getMainType () {
return mainType;
}
/**
* Returns the name of the plugin that contains the program.
*
* @return the name of the plugin that contains the program.
*/
public String getPluginId () {
return pluginId;
}
/**
* Determines if an item is a folder.
*
* @return true if the item is a folder
*/
public boolean isFolder() {
return (mainType == null && view == null);
} + public String getView () { + return view; + } + + /** + * Returns the fully qualified class to run + * for the program. + * + * @return the class to run for the program. + */ + public String getMainType () { + return mainType; + } + + /** + * Returns the name of the plugin that contains the program. + * + * @return the name of the plugin that contains the program. + */ + public String getPluginId () { + return pluginId; + } + + /** + * Determines if an item is a folder. + * + * @return true if the item is a folder + */ + public boolean isFolder() { + return (mainType == null && view == null); + } /** * Determines the equality of descriptors. * * @return true if this.getId().equalsIgnoreCase(other.getId()) */ - public boolean equals(Object other) {
if (other instanceof ItemDescriptor) { + public boolean equals(Object other) { + if (other instanceof ItemDescriptor) { ItemDescriptor otherDescriptor = (ItemDescriptor) other; return getId().equalsIgnoreCase(otherDescriptor.getId()); } return false; - }
/**
* Produces a hashcode.
*
* @return the hashcode
*/
public int hashCode() {
return id.toUpperCase().hashCode();
} + } + + /** + * Produces a hashcode. + * + * @return the hashcode + */ + public int hashCode() { + return id.toUpperCase().hashCode(); + } } diff --git a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemTreeNode.java b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemTreeNode.java index 9f6717e43c..6088090e96 100755 --- a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemTreeNode.java +++ b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemTreeNode.java @@ -1,11 +1,15 @@ -package org.eclipse.swt.examples.launcher; - -/* - * (c) Copyright IBM Corp. 2000, 2002. - * This file is made available under the terms of the Common Public License v1.0 +/******************************************************************************* + * 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 + *******************************************************************************/ +package org.eclipse.swt.examples.launcher; + /** * Internal class used to store tree structures of ItemDescriptors diff --git a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/LauncherPlugin.java b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/LauncherPlugin.java index ed1b30cd3a..2d6abb35f5 100755 --- a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/LauncherPlugin.java +++ b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/LauncherPlugin.java @@ -1,13 +1,24 @@ -package org.eclipse.swt.examples.launcher; - -/* - * Copyright (c) 2000, 2002 IBM Corp. All rights reserved. - * This file is made available under the terms of the Common Public License v1.0 +/******************************************************************************* + * 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 + *******************************************************************************/ +package org.eclipse.swt.examples.launcher; + + +import java.io.*; +import java.net.*; +import java.text.*; +import java.util.*; -import java.io.*;
import java.net.*;
import java.text.*;
import java.util.*;
import org.eclipse.core.runtime.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.ui.plugin.*; +import org.eclipse.core.runtime.*; +import org.eclipse.swt.graphics.*; +import org.eclipse.ui.plugin.*; /** * The main plugin class to be used in the desktop. @@ -376,4 +387,4 @@ public class LauncherPlugin extends AbstractUIPlugin { } } } -}
\ No newline at end of file +} diff --git a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/LauncherView.java b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/LauncherView.java index 33beeee555..663dfd6415 100755 --- a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/LauncherView.java +++ b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/LauncherView.java @@ -1,11 +1,15 @@ -package org.eclipse.swt.examples.launcher; - -/* - * Copyright (c) 2000, 2002 IBM Corp. All rights reserved. - * This file is made available under the terms of the Common Public License v1.0 +/******************************************************************************* + * 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 + *******************************************************************************/ +package org.eclipse.swt.examples.launcher; + import org.eclipse.swt.SWT; import org.eclipse.swt.events.*; @@ -226,4 +230,4 @@ public class LauncherView extends ViewPart { } descriptionText.setText(description); } -}
\ No newline at end of file +} diff --git a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/SplitLayout.java b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/SplitLayout.java index f7be09acfb..47dbfddd89 100755 --- a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/SplitLayout.java +++ b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/SplitLayout.java @@ -1,15 +1,139 @@ -package org.eclipse.swt.examples.launcher;
/*
* (c) Copyright IBM Corp. 2000, 2002. - * This file is made available under the terms of the Common Public License v1.0 +/******************************************************************************* + * 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
*/
import org.eclipse.swt.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.widgets.*;
/**
* A Layout class that automatically switches from a horizontal split to a vertical
* split layout to accomodate changing size conditions.
*
* Later on we might improve this class to take into account the "preferred" size of
* the widgets.
*/ -public class SplitLayout extends Layout {
private static final int
splitHorizontally = 0,
splitVertically = 1;
private int splitDirection = splitHorizontally;
public int spacing = 3;
public int marginTop = 3; - public int marginLeft = 3;
public int marginRight = 3;
public int marginBottom = 3;
/** + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.swt.examples.launcher; + + +import org.eclipse.swt.*; +import org.eclipse.swt.graphics.*; +import org.eclipse.swt.widgets.*; + +/** + * A Layout class that automatically switches from a horizontal split to a vertical + * split layout to accomodate changing size conditions. + * + * Later on we might improve this class to take into account the "preferred" size of + * the widgets. + */ +public class SplitLayout extends Layout { + private static final int + splitHorizontally = 0, + splitVertically = 1; + private int splitDirection = splitHorizontally; + + public int spacing = 3; + public int marginTop = 3; + public int marginLeft = 3; + public int marginRight = 3; + public int marginBottom = 3; + + /** * Creates a new layout */ - public SplitLayout() {
} -
/**
* @see Layout#computeSize(Composite, int, int, boolean)
*/
protected Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache) {
if (wHint == SWT.DEFAULT) {
if (hHint == SWT.DEFAULT) {
Point hSplitSize = computeHSplitSize(composite, wHint, hHint, flushCache);
Point vSplitSize = computeVSplitSize(composite, wHint, hHint, false);
int hSplitArea = hSplitSize.x * hSplitSize.y;
int vSplitArea = vSplitSize.x * vSplitSize.y;
// Choose direction consuming least area
if (hSplitArea < vSplitArea) {
splitDirection = splitHorizontally;
return hSplitSize;
} else {
splitDirection = splitVertically;
return vSplitSize;
}
} else {
// Constrained in height: split vertically
splitDirection = splitVertically;
return computeVSplitSize(composite, wHint, hHint, flushCache);
}
} else {
if (hHint == SWT.DEFAULT) {
// Constrained in width: split horizontally
splitDirection = splitHorizontally;
return computeHSplitSize(composite, wHint, hHint, flushCache);
} else {
if (hHint < wHint) {
splitDirection = splitVertically;
return computeVSplitSize(composite, wHint, hHint, flushCache);
} else {
splitDirection = splitHorizontally;
return computeHSplitSize(composite, wHint, hHint, flushCache);
}
}
}
}
+ public SplitLayout() { + } + + /** + * @see Layout#computeSize(Composite, int, int, boolean) + */ + protected Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache) { + if (wHint == SWT.DEFAULT) { + if (hHint == SWT.DEFAULT) { + Point hSplitSize = computeHSplitSize(composite, wHint, hHint, flushCache); + Point vSplitSize = computeVSplitSize(composite, wHint, hHint, false); + int hSplitArea = hSplitSize.x * hSplitSize.y; + int vSplitArea = vSplitSize.x * vSplitSize.y; + // Choose direction consuming least area + if (hSplitArea < vSplitArea) { + splitDirection = splitHorizontally; + return hSplitSize; + } else { + splitDirection = splitVertically; + return vSplitSize; + } + } else { + // Constrained in height: split vertically + splitDirection = splitVertically; + return computeVSplitSize(composite, wHint, hHint, flushCache); + } + } else { + if (hHint == SWT.DEFAULT) { + // Constrained in width: split horizontally + splitDirection = splitHorizontally; + return computeHSplitSize(composite, wHint, hHint, flushCache); + } else { + if (hHint < wHint) { + splitDirection = splitVertically; + return computeVSplitSize(composite, wHint, hHint, flushCache); + } else { + splitDirection = splitHorizontally; + return computeHSplitSize(composite, wHint, hHint, flushCache); + } + } + } + } /** * @see Layout#layout(Composite, boolean) */ - protected void layout(Composite composite, boolean flushCache) {
Rectangle clientArea = composite.getClientArea();
computeSize(composite, clientArea.width, clientArea.height, false);
Control[] children = composite.getChildren();
clientArea.x += marginLeft;
clientArea.y += marginTop;
clientArea.width -= marginRight + marginLeft;
clientArea.height -= marginBottom + marginTop;
Point position = new Point(clientArea.x, clientArea.y);
for (int i = 0; i < children.length; ++i) {
final Control child = children[i];
final Rectangle bounds;
if (splitDirection == splitHorizontally) {
int height = clientArea.height / children.length;
bounds = new Rectangle(position.x, position.y, clientArea.width, height);
position.y += height + spacing;
} else {
int width = clientArea.width / children.length;
bounds = new Rectangle(position.x, position.y, width, clientArea.height);
position.x += width + spacing;
}
bounds.width = Math.max(bounds.width, 0);
bounds.height = Math.max(bounds.height, 0);
child.setBounds(bounds);
}
} -
private Point computeHSplitSize(Composite composite, int wHint, int hHint, boolean flushCache) {
Point size = new Point(marginLeft + marginRight, marginTop + marginBottom);
Control[] children = composite.getChildren();
for (int i = 0; i < children.length; ++i) {
final Control child = children[i];
Point childSize = child.computeSize(wHint, hHint, flushCache);
size.x = Math.max(size.x, childSize.x);
size.y += childSize.y + spacing;
}
return size;
}
private Point computeVSplitSize(Composite composite, int wHint, int hHint, boolean flushCache) {
Point size = new Point(marginLeft + marginRight, marginTop + marginBottom);
Control[] children = composite.getChildren();
for (int i = 0; i < children.length; ++i) {
final Control child = children[i];
Point childSize = child.computeSize(wHint, hHint, flushCache);
size.x += childSize.x + spacing;
size.y = Math.max(size.y, childSize.y);
}
return size;
}
} + protected void layout(Composite composite, boolean flushCache) { + Rectangle clientArea = composite.getClientArea(); + computeSize(composite, clientArea.width, clientArea.height, false); + + Control[] children = composite.getChildren(); + clientArea.x += marginLeft; + clientArea.y += marginTop; + clientArea.width -= marginRight + marginLeft; + clientArea.height -= marginBottom + marginTop; + Point position = new Point(clientArea.x, clientArea.y); + + for (int i = 0; i < children.length; ++i) { + final Control child = children[i]; + final Rectangle bounds; + if (splitDirection == splitHorizontally) { + int height = clientArea.height / children.length; + bounds = new Rectangle(position.x, position.y, clientArea.width, height); + position.y += height + spacing; + } else { + int width = clientArea.width / children.length; + bounds = new Rectangle(position.x, position.y, width, clientArea.height); + position.x += width + spacing; + } + bounds.width = Math.max(bounds.width, 0); + bounds.height = Math.max(bounds.height, 0); + child.setBounds(bounds); + } + } + + private Point computeHSplitSize(Composite composite, int wHint, int hHint, boolean flushCache) { + Point size = new Point(marginLeft + marginRight, marginTop + marginBottom); + Control[] children = composite.getChildren(); + for (int i = 0; i < children.length; ++i) { + final Control child = children[i]; + + Point childSize = child.computeSize(wHint, hHint, flushCache); + size.x = Math.max(size.x, childSize.x); + size.y += childSize.y + spacing; + } + return size; + } + + private Point computeVSplitSize(Composite composite, int wHint, int hHint, boolean flushCache) { + Point size = new Point(marginLeft + marginRight, marginTop + marginBottom); + Control[] children = composite.getChildren(); + for (int i = 0; i < children.length; ++i) { + final Control child = children[i]; + + Point childSize = child.computeSize(wHint, hHint, flushCache); + size.x += childSize.x + spacing; + size.y = Math.max(size.y, childSize.y); + } + return size; + } +} diff --git a/examples/org.eclipse.swt.examples.layouts/build.properties b/examples/org.eclipse.swt.examples.layouts/build.properties index a6d8f5e768..1c236e8ba2 100644 --- a/examples/org.eclipse.swt.examples.layouts/build.properties +++ b/examples/org.eclipse.swt.examples.layouts/build.properties @@ -1,3 +1,13 @@ +############################################################################### +# 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 +############################################################################### bin.includes = doc-html/,\ icons/,\ plugin.properties,\ diff --git a/examples/org.eclipse.swt.examples.layouts/plugin.properties b/examples/org.eclipse.swt.examples.layouts/plugin.properties index 2e18a431a5..59ffc928d5 100644 --- a/examples/org.eclipse.swt.examples.layouts/plugin.properties +++ b/examples/org.eclipse.swt.examples.layouts/plugin.properties @@ -1,3 +1,13 @@ +############################################################################### +# 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.SWTLayoutExample.name = SWT Layout Example Plugin category.SWTExamples.name = SWT Examples diff --git a/examples/org.eclipse.swt.examples.layouts/src/import.properties b/examples/org.eclipse.swt.examples.layouts/src/import.properties index 265131a99c..58344f0d3e 100644 --- a/examples/org.eclipse.swt.examples.layouts/src/import.properties +++ b/examples/org.eclipse.swt.examples.layouts/src/import.properties @@ -1,3 +1,13 @@ +############################################################################### +# 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 +############################################################################### # Persist project settings for later import natures = org.eclipse.jdt.core.javanature; org.eclipse.pde.PluginNature builders = org.eclipse.jdt.core.javabuilder; org.eclipse.pde.ManifestBuilder; org.eclipse.pde.SchemaBuilder diff --git a/examples/org.eclipse.swt.examples.layouts/src/org/eclipse/swt/examples/layouts/LayoutPlugin.java b/examples/org.eclipse.swt.examples.layouts/src/org/eclipse/swt/examples/layouts/LayoutPlugin.java index 2a0312a2d1..d207dfdfc0 100644 --- a/examples/org.eclipse.swt.examples.layouts/src/org/eclipse/swt/examples/layouts/LayoutPlugin.java +++ b/examples/org.eclipse.swt.examples.layouts/src/org/eclipse/swt/examples/layouts/LayoutPlugin.java @@ -1,11 +1,15 @@ -package org.eclipse.swt.examples.layouts; - -/* - * (c) Copyright IBM Corp. 2000, 2002. - * This file is made available under the terms of the Common Public License v1.0 +/******************************************************************************* + * 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 + *******************************************************************************/ +package org.eclipse.swt.examples.layouts; + import org.eclipse.core.runtime.*; import org.eclipse.ui.plugin.*; diff --git a/examples/org.eclipse.swt.examples.layouts/src/org/eclipse/swt/examples/layouts/LayoutView.java b/examples/org.eclipse.swt.examples.layouts/src/org/eclipse/swt/examples/layouts/LayoutView.java index 3ab737a279..a765800c3e 100644 --- a/examples/org.eclipse.swt.examples.layouts/src/org/eclipse/swt/examples/layouts/LayoutView.java +++ b/examples/org.eclipse.swt.examples.layouts/src/org/eclipse/swt/examples/layouts/LayoutView.java @@ -1,11 +1,15 @@ -package org.eclipse.swt.examples.layouts; - -/* - * (c) Copyright IBM Corp. 2000, 2002. - * This file is made available under the terms of the Common Public License v1.0 +/******************************************************************************* + * 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 + *******************************************************************************/ +package org.eclipse.swt.examples.layouts; + import org.eclipse.swt.examples.layoutexample.*; import org.eclipse.swt.widgets.*; |