KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > IWorkingSetElementAdapter


1 /*******************************************************************************
2  * Copyright (c) 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
12 package org.eclipse.ui;
13
14 import org.eclipse.core.runtime.IAdaptable;
15
16 /**
17  * Interface that describes a mechanism that may be provided by working set
18  * implementors to help manage the addition of elements to working sets.
19  * Instances of this class are capable of transforming possible working set
20  * content into the most applicable form.
21  *
22  * @since 3.3
23  */

24 public interface IWorkingSetElementAdapter {
25
26     /**
27      * Converts the given elements for addition to /removal from the working
28      * set.
29      *
30      * @return the (possibly adapted) elements to add to /remove from the
31      * working set
32      */

33     IAdaptable[] adaptElements(IWorkingSet ws, IAdaptable[] elements);
34     
35     /**
36      * Disposes of this element adaptor.
37      */

38     void dispose();
39 }
Popular Tags