changeset 3:5dfd6e42e2ef

some adapters
author Frank Benoit <benoit@tionex.de>
date Sat, 05 Jan 2008 02:29:20 +0100
parents b8884f396ec8
children 94c5d794407f
files org/eclipse/swt/events/ArmListener.d org/eclipse/swt/events/ControlAdapter.d org/eclipse/swt/events/ControlListener.d org/eclipse/swt/events/DisposeListener.d org/eclipse/swt/events/DragDetectListener.d org/eclipse/swt/events/ExpandAdapter.d org/eclipse/swt/events/ExpandListener.d org/eclipse/swt/events/FocusAdapter.d org/eclipse/swt/events/FocusListener.d org/eclipse/swt/events/HelpListener.d org/eclipse/swt/events/KeyAdapter.d org/eclipse/swt/events/KeyListener.d org/eclipse/swt/events/MenuAdapter.d org/eclipse/swt/events/MenuDetectListener.d org/eclipse/swt/events/MenuListener.d org/eclipse/swt/events/ModifyListener.d org/eclipse/swt/events/MouseAdapter.d org/eclipse/swt/events/MouseListener.d org/eclipse/swt/events/MouseMoveListener.d org/eclipse/swt/events/MouseTrackAdapter.d org/eclipse/swt/events/MouseTrackListener.d org/eclipse/swt/events/MouseWheelListener.d org/eclipse/swt/events/PaintListener.d org/eclipse/swt/events/SelectionAdapter.d org/eclipse/swt/events/SelectionListener.d org/eclipse/swt/events/ShellAdapter.d org/eclipse/swt/events/ShellListener.d org/eclipse/swt/events/TraverseListener.d org/eclipse/swt/events/TreeAdapter.d org/eclipse/swt/events/TreeListener.d org/eclipse/swt/events/VerifyListener.d
diffstat 31 files changed, 558 insertions(+), 42 deletions(-) [+]
line wrap: on
line diff
--- a/org/eclipse/swt/events/ArmListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/ArmListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -10,8 +10,8 @@
  *******************************************************************************/
 module org.eclipse.swt.events.ArmListener;
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.ArmEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.ArmEvent;
 
 /**
  * Classes which implement this interface provide a method
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org/eclipse/swt/events/ControlAdapter.d	Sat Jan 05 02:29:20 2008 +0100
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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 Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module org.eclipse.swt.events.ControlAdapter;
+
+import org.eclipse.swt.events.ControlListener;
+/**
+ * This adapter class provides default implementations for the
+ * methods described by the <code>ControlListener</code> interface.
+ * <p>
+ * Classes that wish to deal with <code>ControlEvent</code>s can
+ * extend this class and override only the methods which they are
+ * interested in.
+ * </p>
+ *
+ * @see ControlListener
+ * @see ControlEvent
+ */
+public abstract class ControlAdapter : ControlListener {
+
+/**
+ * Sent when the location (x, y) of a control changes relative
+ * to its parent (or relative to the display, for <code>Shell</code>s).
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the move
+ */
+public void controlMoved(ControlEvent e) {
+}
+
+/**
+ * Sent when the size (width, height) of a control changes.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the resize
+ */
+public void controlResized(ControlEvent e) {
+}
+}
--- a/org/eclipse/swt/events/ControlListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/ControlListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -10,8 +10,8 @@
  *******************************************************************************/
 module org.eclipse.swt.events.ControlListener;
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.ControlEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.ControlEvent;
 
 /**
  * Classes which implement this interface provide methods
--- a/org/eclipse/swt/events/DisposeListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/DisposeListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.DisposeListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.DisposeEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.DisposeEvent;
 
 /**
  * Classes which implement this interface provide a method
--- a/org/eclipse/swt/events/DragDetectListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/DragDetectListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.DragDetectListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.DragDetectEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.DragDetectEvent;
 
 /**
  * Classes which implement this interface provide methods
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org/eclipse/swt/events/ExpandAdapter.d	Sat Jan 05 02:29:20 2008 +0100
@@ -0,0 +1,48 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 IBM Corporation 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:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module org.eclipse.swt.events.ExpandAdapter;
+
+import org.eclipse.swt.events.ExpandListener;
+
+/**
+ * This adapter class provides default implementations for the
+ * methods described by the <code>ExpandListener</code> interface.
+ * <p>
+ * Classes that wish to deal with <code>ExpandEvent</code>s can
+ * extend this class and override only the methods which they are
+ * interested in.
+ * </p>
+ *
+ * @see ExpandListener
+ * @see ExpandEvent
+ *
+ * @since 3.2
+ */
+public abstract class ExpandAdapter : ExpandListener {
+
+/**
+ * Sent when an item is collapsed.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the operation
+ */
+public void itemCollapsed(ExpandEvent e) {
+}
+
+/**
+ * Sent when an item is expanded.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the operation
+ */
+public void itemExpanded(ExpandEvent e) {
+}
+}
--- a/org/eclipse/swt/events/ExpandListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/ExpandListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.ExpandListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.ExpandEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.ExpandEvent;
 
 /**
  * Classes which implement this interface provide methods
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org/eclipse/swt/events/FocusAdapter.d	Sat Jan 05 02:29:20 2008 +0100
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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 Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module org.eclipse.swt.events.FocusAdapter;
+
+import org.eclipse.swt.events.FocusListener;
+
+/**
+ * This adapter class provides default implementations for the
+ * methods described by the <code>FocusListener</code> interface.
+ * <p>
+ * Classes that wish to deal with <code>FocusEvent</code>s can
+ * extend this class and override only the methods which they are
+ * interested in.
+ * </p>
+ *
+ * @see FocusListener
+ * @see FocusEvent
+ */
+public abstract class FocusAdapter : FocusListener {
+
+/**
+ * Sent when a control gets focus.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the focus change
+ */
+public void focusGained(FocusEvent e) {
+}
+
+/**
+ * Sent when a control loses focus.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the focus change
+ */
+public void focusLost(FocusEvent e) {
+}
+}
--- a/org/eclipse/swt/events/FocusListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/FocusListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.FocusListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.FocusEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.FocusEvent;
 
 /**
  * Classes which implement this interface provide methods
--- a/org/eclipse/swt/events/HelpListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/HelpListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.HelpListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.HelpEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.HelpEvent;
 
 /**
  * Classes which implement this interface provide a method
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org/eclipse/swt/events/KeyAdapter.d	Sat Jan 05 02:29:20 2008 +0100
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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 Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module org.eclipse.swt.events.KeyAdapter;
+
+import org.eclipse.swt.events.KeyListener;
+
+/**
+ * This adapter class provides default implementations for the
+ * methods described by the <code>KeyListener</code> interface.
+ * <p>
+ * Classes that wish to deal with <code>KeyEvent</code>s can
+ * extend this class and override only the methods which they are
+ * interested in.
+ * </p>
+ *
+ * @see KeyListener
+ * @see KeyEvent
+ */
+public abstract class KeyAdapter : KeyListener {
+
+/**
+ * Sent when a key is pressed on the system keyboard.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the key press
+ */
+public void keyPressed(KeyEvent e) {
+}
+
+/**
+ * Sent when a key is released on the system keyboard.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the key release
+ */
+public void keyReleased(KeyEvent e) {
+}
+}
--- a/org/eclipse/swt/events/KeyListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/KeyListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.KeyListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.KeyEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.KeyEvent;
 
 /**
  * Classes which implement this interface provide methods
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org/eclipse/swt/events/MenuAdapter.d	Sat Jan 05 02:29:20 2008 +0100
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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 Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module org.eclipse.swt.events.MenuAdapter;
+
+import org.eclipse.swt.events.MenuListener;
+
+/**
+ * This adapter class provides default implementations for the
+ * methods described by the <code>MenuListener</code> interface.
+ * <p>
+ * Classes that wish to deal with <code>MenuEvent</code>s can
+ * extend this class and override only the methods which they are
+ * interested in.
+ * </p>
+ *
+ * @see MenuListener
+ * @see MenuEvent
+ */
+public abstract class MenuAdapter : MenuListener {
+
+/**
+ * Sent when a menu is hidden.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the menu operation
+ */
+public void menuHidden(MenuEvent e) {
+}
+
+/**
+ * Sent when a menu is shown.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the menu operation
+ */
+public void menuShown(MenuEvent e) {
+}
+}
--- a/org/eclipse/swt/events/MenuDetectListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/MenuDetectListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.MenuDetectListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.MenuDetectEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.MenuDetectEvent;
 
 /**
  * Classes which implement this interface provide methods
--- a/org/eclipse/swt/events/MenuListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/MenuListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.MenuListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.MenuEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.MenuEvent;
 
 /**
  * Classes which implement this interface provide methods
--- a/org/eclipse/swt/events/ModifyListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/ModifyListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.ModifyListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.ModifyEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.ModifyEvent;
 
 /**
  * Classes which implement this interface provide a method
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org/eclipse/swt/events/MouseAdapter.d	Sat Jan 05 02:29:20 2008 +0100
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * 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 Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module org.eclipse.swt.events.MouseAdapter;
+
+import org.eclipse.swt.events.MouseListener;
+
+/**
+ * This adapter class provides default implementations for the
+ * methods described by the <code>MouseListener</code> interface.
+ * <p>
+ * Classes that wish to deal with <code>MouseEvent</code>s
+ * which occur as mouse buttons are pressed and released can
+ * extend this class and override only the methods which they are
+ * interested in.
+ * </p>
+ *
+ * @see MouseListener
+ * @see MouseEvent
+ */
+public abstract class MouseAdapter : MouseListener {
+
+/**
+ * Sent when a mouse button is pressed twice within the
+ * (operating system specified) double click period.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the mouse double click
+ *
+ * @see org.eclipse.swt.widgets.Display#getDoubleClickTime()
+ */
+public void mouseDoubleClick(MouseEvent e) {
+}
+
+/**
+ * Sent when a mouse button is pressed.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the mouse button press
+ */
+public void mouseDown(MouseEvent e) {
+}
+
+/**
+ * Sent when a mouse button is released.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the mouse button release
+ */
+public void mouseUp(MouseEvent e) {
+}
+}
--- a/org/eclipse/swt/events/MouseListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/MouseListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.MouseListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.MouseEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.MouseEvent;
 
 /**
  * Classes which implement this interface provide methods
--- a/org/eclipse/swt/events/MouseMoveListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/MouseMoveListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.MouseMoveListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.MouseEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.MouseEvent;
 
 /**
  * Classes which implement this interface provide a method
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org/eclipse/swt/events/MouseTrackAdapter.d	Sat Jan 05 02:29:20 2008 +0100
@@ -0,0 +1,60 @@
+/*******************************************************************************
+ * 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 Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module org.eclipse.swt.events.MouseTrackAdapter;
+
+import org.eclipse.swt.events.MouseTrackListener;
+
+/**
+ * This adapter class provides default implementations for the
+ * methods described by the <code>MouseTrackListener</code> interface.
+ * <p>
+ * Classes that wish to deal with <code>MouseEvent</code>s which
+ * occur as the mouse pointer passes (or hovers) over controls can
+ * extend this class and override only the methods which they are
+ * interested in.
+ * </p>
+ *
+ * @see MouseTrackListener
+ * @see MouseEvent
+ */
+public abstract class MouseTrackAdapter : MouseTrackListener {
+
+/**
+ * Sent when the mouse pointer passes into the area of
+ * the screen covered by a control.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the mouse enter
+ */
+public void mouseEnter(MouseEvent e) {
+}
+
+/**
+ * Sent when the mouse pointer passes out of the area of
+ * the screen covered by a control.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the mouse exit
+ */
+public void mouseExit(MouseEvent e) {
+}
+
+/**
+ * Sent when the mouse pointer hovers (that is, stops moving
+ * for an (operating system specified) period of time) over
+ * a control.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the hover
+ */
+public void mouseHover(MouseEvent e) {
+}
+}
--- a/org/eclipse/swt/events/MouseTrackListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/MouseTrackListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.MouseTrackListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.MouseEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.MouseEvent;
 
 /**
  * Classes which implement this interface provide methods
--- a/org/eclipse/swt/events/MouseWheelListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/MouseWheelListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.MouseWheelListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.MouseEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.MouseEvent;
 
 /**
  * Classes which implement this interface provide a method
--- a/org/eclipse/swt/events/PaintListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/PaintListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.PaintListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.PaintEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.PaintEvent;
 
 /**
  * Classes which implement this interface provide methods
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org/eclipse/swt/events/SelectionAdapter.d	Sat Jan 05 02:29:20 2008 +0100
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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 Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module org.eclipse.swt.events.SelectionAdapter;
+
+import org.eclipse.swt.events.SelectionListener;
+
+/**
+ * This adapter class provides default implementations for the
+ * methods described by the <code>SelectionListener</code> interface.
+ * <p>
+ * Classes that wish to deal with <code>SelectionEvent</code>s can
+ * extend this class and override only the methods which they are
+ * interested in.
+ * </p>
+ *
+ * @see SelectionListener
+ * @see SelectionEvent
+ */
+public abstract class SelectionAdapter : SelectionListener {
+
+/**
+ * Sent when selection occurs in the control.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the selection
+ */
+public void widgetSelected(SelectionEvent e) {
+}
+
+/**
+ * Sent when default selection occurs in the control.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the default selection
+ */
+public void widgetDefaultSelected(SelectionEvent e) {
+}
+}
--- a/org/eclipse/swt/events/SelectionListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/SelectionListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.SelectionListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.SelectionEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.SelectionEvent;
 
 /**
  * Classes which implement this interface provide methods
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org/eclipse/swt/events/ShellAdapter.d	Sat Jan 05 02:29:20 2008 +0100
@@ -0,0 +1,73 @@
+/*******************************************************************************
+ * 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 Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module org.eclipse.swt.events.ShellAdapter;
+
+import org.eclipse.swt.events.ShellListener;
+
+/**
+ * This adapter class provides default implementations for the
+ * methods described by the <code>ShellListener</code> interface.
+ * <p>
+ * Classes that wish to deal with <code>ShellEvent</code>s can
+ * extend this class and override only the methods which they are
+ * interested in.
+ * </p>
+ *
+ * @see ShellListener
+ * @see ShellEvent
+ */
+public abstract class ShellAdapter : ShellListener {
+
+/**
+ * Sent when a shell becomes the active window.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the activation
+ */
+public void shellActivated(ShellEvent e) {
+}
+
+/**
+ * Sent when a shell is closed.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the close
+ */
+public void shellClosed(ShellEvent e) {
+}
+
+/**
+ * Sent when a shell stops being the active window.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the deactivation
+ */
+public void shellDeactivated(ShellEvent e) {
+}
+
+/**
+ * Sent when a shell is un-minimized.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the un-minimization
+ */
+public void shellDeiconified(ShellEvent e) {
+}
+
+/**
+ * Sent when a shell is minimized.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the minimization
+ */
+public void shellIconified(ShellEvent e) {
+}
+}
--- a/org/eclipse/swt/events/ShellListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/ShellListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.ShellListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.ShellEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.ShellEvent;
 
 /**
  * Classes which implement this interface provide methods
--- a/org/eclipse/swt/events/TraverseListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/TraverseListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.TraverseListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.TraverseEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.TraverseEvent;
 
 /**
  * Classes which implement this interface provide a method
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org/eclipse/swt/events/TreeAdapter.d	Sat Jan 05 02:29:20 2008 +0100
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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 Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module org.eclipse.swt.events.TreeAdapter;
+
+import org.eclipse.swt.events.TreeListener;
+
+/**
+ * This adapter class provides default implementations for the
+ * methods described by the <code>TreeListener</code> interface.
+ * <p>
+ * Classes that wish to deal with <code>TreeEvent</code>s can
+ * extend this class and override only the methods which they are
+ * interested in.
+ * </p>
+ *
+ * @see TreeListener
+ * @see TreeEvent
+ */
+public abstract class TreeAdapter : TreeListener {
+
+/**
+ * Sent when a tree branch is collapsed.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the tree operation
+ */
+public void treeCollapsed(TreeEvent e) {
+}
+
+/**
+ * Sent when a tree branch is expanded.
+ * The default behavior is to do nothing.
+ *
+ * @param e an event containing information about the tree operation
+ */
+public void treeExpanded(TreeEvent e) {
+}
+}
--- a/org/eclipse/swt/events/TreeListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/TreeListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.TreeListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.TreeEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.TreeEvent;
 
 /**
  * Classes which implement this interface provide methods
--- a/org/eclipse/swt/events/VerifyListener.d	Sat Jan 05 02:22:54 2008 +0100
+++ b/org/eclipse/swt/events/VerifyListener.d	Sat Jan 05 02:29:20 2008 +0100
@@ -11,8 +11,8 @@
 module org.eclipse.swt.events.VerifyListener;
 
 
-import org.eclipse.swt.internal.SWTEventListener;
-import org.eclipse.swt.events.VerifyEvent;
+public import org.eclipse.swt.internal.SWTEventListener;
+public import org.eclipse.swt.events.VerifyEvent;
 
 /**
  * Classes which implement this interface provide a method