01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jface.viewers;
11:
12: /**
13: * Interface for a selection.
14: *
15: * @see ISelectionProvider
16: * @see ISelectionChangedListener
17: * @see SelectionChangedEvent
18: */
19: public interface ISelection {
20:
21: /**
22: * Returns whether this selection is empty.
23: *
24: * @return <code>true</code> if this selection is empty,
25: * and <code>false</code> otherwise
26: */
27: public boolean isEmpty();
28: }
|