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.pde.internal.ui.editor.feature;
11:
12: import org.eclipse.jface.viewers.ILabelProvider;
13: import org.eclipse.jface.viewers.ITreeContentProvider;
14: import org.eclipse.jface.viewers.SelectionChangedEvent;
15: import org.eclipse.jface.viewers.ViewerComparator;
16: import org.eclipse.pde.internal.ui.editor.ISortableContentOutlinePage;
17: import org.eclipse.pde.internal.ui.editor.PDEFormEditor;
18: import org.eclipse.pde.internal.ui.editor.XMLSourcePage;
19:
20: public class FeatureSourcePage extends XMLSourcePage {
21:
22: public FeatureSourcePage(PDEFormEditor editor, String id,
23: String title) {
24: super (editor, id, title);
25: }
26:
27: public ILabelProvider createOutlineLabelProvider() {
28: return null;
29: }
30:
31: public ITreeContentProvider createOutlineContentProvider() {
32: return null;
33: }
34:
35: /*
36: * (non-Javadoc)
37: *
38: * @see org.eclipse.pde.internal.ui.editor.PDESourcePage#createOutlineSorter()
39: */
40: public ViewerComparator createOutlineComparator() {
41: return null;
42: }
43:
44: /* (non-Javadoc)
45: * @see org.eclipse.pde.internal.ui.editor.PDESourcePage#updateSelection(org.eclipse.jface.viewers.SelectionChangedEvent)
46: */
47: public void updateSelection(SelectionChangedEvent e) {
48: // NO-OP
49: }
50:
51: protected ISortableContentOutlinePage createOutlinePage() {
52: // TODO remove this method when the above three stubs
53: // are implemented
54: return new FeatureOutlinePage((PDEFormEditor) getEditor());
55: }
56:
57: /* (non-Javadoc)
58: * @see org.eclipse.pde.internal.ui.editor.PDEProjectionSourcePage#isQuickOutlineEnabled()
59: */
60: public boolean isQuickOutlineEnabled() {
61: return false;
62: }
63:
64: /* (non-Javadoc)
65: * @see org.eclipse.pde.internal.ui.editor.PDESourcePage#updateSelection(java.lang.Object)
66: */
67: public void updateSelection(Object object) {
68: // NO-OP
69: }
70: }
|