KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > presentations > PaneFolderButtonListener


1 /*******************************************************************************
2  * Copyright (c) 2004, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.internal.presentations;
12
13 import org.eclipse.swt.custom.CTabFolderEvent;
14 import org.eclipse.swt.custom.CTabItem;
15
16 /**
17  * This listener receives notifications when the user clicks on one of
18  * the buttons (minimize, maximize, or restore) on a pane folder.
19  *
20  * @since 3.0
21  */

22 public abstract class PaneFolderButtonListener {
23
24     /**
25      * Called when the minimize, maximize, or restore buttons are pressed.
26      *
27      * @param buttonId one of the IStackPresentationSite.STATE_* constants
28      */

29     public void stateButtonPressed(int buttonId) {
30     }
31
32     /**
33      * Called when a close button is pressed.
34      *
35      * @param item the tab whose close button was pressed
36      */

37     public void closeButtonPressed(CTabItem item) {
38     }
39
40     /**
41      *
42      * @since 3.0
43      */

44     public void showList(CTabFolderEvent event) {
45     }
46 }
47
Popular Tags