KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > part > services > DefaultSelectionProvider


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 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.ui.internal.part.services;
12
13 import org.eclipse.jface.viewers.ISelection;
14 import org.eclipse.jface.viewers.ISelectionChangedListener;
15 import org.eclipse.jface.viewers.ISelectionProvider;
16
17 /**
18  * @since 3.1
19  */

20 public class DefaultSelectionProvider implements ISelectionProvider {
21     
22     /* (non-Javadoc)
23      * @see org.eclipse.jface.viewers.ISelectionProvider#addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener)
24      */

25     public void addSelectionChangedListener(ISelectionChangedListener listener) {
26         
27     }
28
29     /* (non-Javadoc)
30      * @see org.eclipse.jface.viewers.ISelectionProvider#getSelection()
31      */

32     public ISelection getSelection() {
33         return null;
34     }
35
36     /* (non-Javadoc)
37      * @see org.eclipse.jface.viewers.ISelectionProvider#removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener)
38      */

39     public void removeSelectionChangedListener(
40             ISelectionChangedListener listener) {
41
42     }
43
44     /* (non-Javadoc)
45      * @see org.eclipse.jface.viewers.ISelectionProvider#setSelection(org.eclipse.jface.viewers.ISelection)
46      */

47     public void setSelection(ISelection selection) {
48
49     }
50
51 }
52
Popular Tags