KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > editor > site > SiteSourcePage


1 /*******************************************************************************
2  * Copyright (c) 2000, 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 package org.eclipse.pde.internal.ui.editor.site;
12
13 import org.eclipse.jface.viewers.ILabelProvider;
14 import org.eclipse.jface.viewers.ITreeContentProvider;
15 import org.eclipse.jface.viewers.SelectionChangedEvent;
16 import org.eclipse.jface.viewers.ViewerComparator;
17 import org.eclipse.pde.internal.ui.editor.ISortableContentOutlinePage;
18 import org.eclipse.pde.internal.ui.editor.PDEFormEditor;
19 import org.eclipse.pde.internal.ui.editor.XMLSourcePage;
20 import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
21
22 public class SiteSourcePage extends XMLSourcePage {
23
24     public SiteSourcePage(PDEFormEditor editor, String JavaDoc id, String JavaDoc title) {
25         super(editor, id, title);
26     }
27     public IContentOutlinePage createContentOutlinePage() {
28         return null;
29     }
30     public ILabelProvider createOutlineLabelProvider() {
31         return null;
32     }
33     public ITreeContentProvider createOutlineContentProvider() {
34         return null;
35     }
36     /* (non-Javadoc)
37      * @see org.eclipse.pde.internal.ui.editor.PDESourcePage#createOutlineSorter()
38      */

39     public ViewerComparator createOutlineComparator() {
40         return null;
41     }
42     
43     /* (non-Javadoc)
44      * @see org.eclipse.pde.internal.ui.editor.PDESourcePage#updateSelection(org.eclipse.jface.viewers.SelectionChangedEvent)
45      */

46     public void updateSelection(SelectionChangedEvent e) {
47         // NO-OP
48
}
49     
50     protected ISortableContentOutlinePage createOutlinePage() {
51         // TODO remove this method when the above three stubs
52
// are implemented
53
return new SiteOutlinePage((PDEFormEditor) getEditor());
54     }
55     
56     /* (non-Javadoc)
57      * @see org.eclipse.pde.internal.ui.editor.PDEProjectionSourcePage#isQuickOutlineEnabled()
58      */

59     public boolean isQuickOutlineEnabled() {
60         return false;
61     }
62     
63     /* (non-Javadoc)
64      * @see org.eclipse.pde.internal.ui.editor.PDESourcePage#updateSelection(java.lang.Object)
65      */

66     public void updateSelection(Object JavaDoc object) {
67         // NO-OP
68
}
69 }
70
Popular Tags