1// BEGIN LICENSE BLOCK 2// Version: CMPL 1.1 3// 4// The contents of this file are subject to the Cisco-style Mozilla Public 5// License Version 1.1 (the "License"); you may not use this file except 6// in compliance with the License. You may obtain a copy of the License 7// at www.eclipse-clp.org/license. 8// 9// Software distributed under the License is distributed on an "AS IS" 10// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 11// the License for the specific language governing rights and limitations 12// under the License. 13// 14// The Original Code is The ECLiPSe Constraint Logic Programming System. 15// The Initial Developer of the Original Code is Cisco Systems, Inc. 16// Portions created by the Initial Developer are 17// Copyright (C) 2006 Cisco Systems, Inc. All Rights Reserved. 18// 19// Contributor(s): 20// 21// END LICENSE BLOCK 22 23package com.parctechnologies.eclipse.visualisation; 24 25import java.util.*; 26import javax.swing.*; 27import java.awt.event.*; 28import java.beans.*; 29 30/** 31 * Set of selected viewlets. As well as implementing Collection, this is 32 * responsible for: 33 * <ul> 34 * <li> Setting the selected property true for Viewlets that "enter" the 35 * selection, and setting it to false when they leave. 36 * <li> Providing access to a set of "common" actions. Each member of this set 37 * is of the same class as an action in the actions of every viewlet in the 38 * selection. Furthermore, each common action is <em>compound</em> i.e. it 39 * applies to all viewlets in the selection. 40 * </ul> 41 */ 42public interface ViewletSelection extends Collection, Cloneable 43{ 44 // Return a collection of common actions. 45 // Each action in the collection is a compound 46 // action. There is one compound action in the collection 47 // for each action which is common to all viewlets in the selection. 48 public Collection getCommonActions(); 49 50 // clone the selection 51 public Object clone() throws CloneNotSupportedException; 52} 53 54