diff options
author | Markus Keller <markus_keller@ch.ibm.com> | 2012-11-15 19:41:21 +0100 |
---|---|---|
committer | Markus Keller <markus_keller@ch.ibm.com> | 2012-11-15 19:41:21 +0100 |
commit | 506c8c4fa6e5901c61ae4261a66accb923f2e50d (patch) | |
tree | 21f328c38ce3587f27b912f0554028a0fcdf1fba | |
parent | eacb643a2084a943e492a6d2e0b869a5541e3c3c (diff) | |
download | eclipse.platform.swt-506c8c4fa6e5901c61ae4261a66accb923f2e50d.tar.gz eclipse.platform.swt-506c8c4fa6e5901c61ae4261a66accb923f2e50d.tar.xz eclipse.platform.swt-506c8c4fa6e5901c61ae4261a66accb923f2e50d.zip |
implement complete CTabFolder2Listener
-rw-r--r-- | examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CTabFolderTab.java | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CTabFolderTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CTabFolderTab.java index 432a16c10f..ce3c659ff0 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CTabFolderTab.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CTabFolderTab.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. + * Copyright (c) 2000, 2012 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 @@ -14,8 +14,8 @@ package org.eclipse.swt.examples.controlexample; import org.eclipse.swt.*; import org.eclipse.swt.custom.*; import org.eclipse.swt.events.*; -import org.eclipse.swt.layout.*; import org.eclipse.swt.graphics.*; +import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; class CTabFolderTab extends Tab { @@ -315,10 +315,22 @@ class CTabFolderTab extends Tab { */ void hookCustomListener (final String eventName) { if (eventName == "CTabFolderEvent") { - tabFolder1.addCTabFolder2Listener (new CTabFolder2Adapter () { + tabFolder1.addCTabFolder2Listener (new CTabFolder2Listener () { public void close (CTabFolderEvent event) { log (eventName, event); } + public void minimize(CTabFolderEvent event) { + log (eventName, event); + } + public void maximize(CTabFolderEvent event) { + log (eventName, event); + } + public void restore(CTabFolderEvent event) { + log (eventName, event); + } + public void showList(CTabFolderEvent event) { + log (eventName, event); + } }); } } |