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