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 23/** 24 * A viewer command which applies to a range of viewlets. 25 */ 26 27package com.parctechnologies.eclipse.visualisation; 28 29import java.util.Collection; 30import java.util.LinkedList; 31import java.util.Iterator; 32 33public abstract class ViewerRangeCommand extends ViewerCommand { 34 35 private ViewletRange viewletRange; 36 37 public ViewerRangeCommand(ContainerViewer viewer, 38 ViewletRange viewletRange) { 39 super(viewer); 40 this.viewletRange = viewletRange; 41 } 42 43 protected ViewletRange getViewletRange() { 44 return viewletRange; 45 } 46 47 protected ContainerViewer getContainerViewer() 48 { 49 return((ContainerViewer) getViewer()); 50 } 51 52} 53