KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > editor > feature > FeatureSourcePage


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.feature;
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
21 public class FeatureSourcePage extends XMLSourcePage {
22
23     public FeatureSourcePage(PDEFormEditor editor, String JavaDoc id, String JavaDoc 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 JavaDoc object) {
68         // NO-OP
69
}
70 }
71
Popular Tags