KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > presentations > util > TabOrder


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 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.util;
12
13 import org.eclipse.ui.IMemento;
14 import org.eclipse.ui.presentations.IPresentablePart;
15 import org.eclipse.ui.presentations.IPresentationSerializer;
16
17 /**
18  * @since 3.0
19  */

20 public abstract class TabOrder {
21     /**
22      * Adds a part due to a user action that opened a part
23      *
24      * @param newPart part being added
25      */

26     public abstract void add(IPresentablePart newPart);
27
28     /**
29      * Adds a part at initialization-time (the part was added as
30      * part of a perspective, rather than by a user action)
31      *
32      * @param newPart the part being added
33      */

34     public abstract void addInitial(IPresentablePart newPart);
35
36     public abstract void restoreState(IPresentationSerializer serializer,
37             IMemento savedState);
38     
39     public abstract void saveState(IPresentationSerializer serializer, IMemento memento);
40     
41     /**
42      * Adds a part at a particular index due to a drag/drop operation.
43      *
44      * @param added part being added
45      * @param index index where the part is added at
46      */

47     public abstract void insert(IPresentablePart added, int index);
48
49     public abstract void move(IPresentablePart toMove, int newIndex);
50     
51     /**
52      * Removes a part
53      *
54      * @param removed part being removed
55      */

56     public abstract void remove(IPresentablePart removed);
57
58     /**
59      * Selects a part
60      *
61      * @param selected part being selected
62      */

63     public abstract void select(IPresentablePart selected);
64     
65     public abstract IPresentablePart[] getPartList();
66 }
67
Popular Tags