KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > viewers > ISelection


1 /*******************************************************************************
2  * Copyright (c) 2000, 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 package org.eclipse.jface.viewers;
12
13 /**
14  * Interface for a selection.
15  *
16  * @see ISelectionProvider
17  * @see ISelectionChangedListener
18  * @see SelectionChangedEvent
19  */

20 public interface ISelection {
21
22     /**
23      * Returns whether this selection is empty.
24      *
25      * @return <code>true</code> if this selection is empty,
26      * and <code>false</code> otherwise
27      */

28     public boolean isEmpty();
29 }
30
Popular Tags