01: /*******************************************************************************
02: * Copyright (c) 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.ui.internal.navigator.extensions;
11:
12: import org.eclipse.jface.viewers.IStructuredSelection;
13: import org.eclipse.jface.viewers.StructuredSelection;
14: import org.eclipse.ui.IEditorInput;
15: import org.eclipse.ui.IWorkbenchPage;
16: import org.eclipse.ui.navigator.ILinkHelper;
17:
18: /**
19: * @since 3.2
20: *
21: */
22: public class SkeletonLinkHelper implements ILinkHelper {
23:
24: /**
25: * The singleton instance.
26: */
27: public static final ILinkHelper INSTANCE = new SkeletonLinkHelper();
28:
29: private SkeletonLinkHelper() {
30:
31: }
32:
33: /* (non-Javadoc)
34: * @see org.eclipse.ui.navigator.ILinkHelper#findSelection(org.eclipse.ui.IEditorInput)
35: */
36: public IStructuredSelection findSelection(IEditorInput anInput) {
37: return StructuredSelection.EMPTY;
38: }
39:
40: /* (non-Javadoc)
41: * @see org.eclipse.ui.navigator.ILinkHelper#activateEditor(org.eclipse.ui.IWorkbenchPage, org.eclipse.jface.viewers.IStructuredSelection)
42: */
43: public void activateEditor(IWorkbenchPage aPage,
44: IStructuredSelection aSelection) {
45: // no-op
46:
47: }
48:
49: }
|