KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > navigator > extensions > SkeletonLinkHelper


1 /*******************************************************************************
2  * Copyright (c) 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
12 package org.eclipse.ui.internal.navigator.extensions;
13
14 import org.eclipse.jface.viewers.IStructuredSelection;
15 import org.eclipse.jface.viewers.StructuredSelection;
16 import org.eclipse.ui.IEditorInput;
17 import org.eclipse.ui.IWorkbenchPage;
18 import org.eclipse.ui.navigator.ILinkHelper;
19
20 /**
21  * @since 3.2
22  *
23  */

24 public class SkeletonLinkHelper implements ILinkHelper {
25
26     /**
27      * The singleton instance.
28      */

29     public static final ILinkHelper INSTANCE = new SkeletonLinkHelper();
30     
31     private SkeletonLinkHelper() {
32         
33     }
34
35     /* (non-Javadoc)
36      * @see org.eclipse.ui.navigator.ILinkHelper#findSelection(org.eclipse.ui.IEditorInput)
37      */

38     public IStructuredSelection findSelection(IEditorInput anInput) {
39         return StructuredSelection.EMPTY;
40     }
41
42     /* (non-Javadoc)
43      * @see org.eclipse.ui.navigator.ILinkHelper#activateEditor(org.eclipse.ui.IWorkbenchPage, org.eclipse.jface.viewers.IStructuredSelection)
44      */

45     public void activateEditor(IWorkbenchPage aPage, IStructuredSelection aSelection) {
46         // no-op
47

48     }
49
50 }
51
Popular Tags