blob: 56ba66f77c9dff38011b53da48f1d3291bcfcd9d [file] [log] [blame]
package org.eclipse.ui;
/*
* (c) Copyright IBM Corp. 2000, 2002.
* All Rights Reserved.
*/
import org.eclipse.core.runtime.IAdaptable;
/**
* A working set holds a number of IAdaptable elements.
* A working set is intended to group elements for presentation to
* the user or for operations on a set of elements.
* <p>
* This interface is not intended to be implemented by clients.
* </p>
*
* @since 2.0
*/
public interface IWorkingSet {
/**
* Returns the name of the working set.
*
* @return the name of the working set
*/
public String getName();
/**
* Returns the elements that are contained in this working set.
*
* @return the working set's elements
*/
public IAdaptable[] getElements();
/**
* Sets the elements that are contained in this working set.
*
* @param elements the elements to set in this working set
*/
public void setElements(IAdaptable[] elements);
/**
* Sets the name of the working set.
* The working set name should be unique.
* The working set name must not have leading or trailing
* whitespace.
*
* @param name the name of the working set
*/
public void setName(String name);
}