KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > editor > EmptyOutlinePage


1 /*******************************************************************************
2  * Copyright (c) 2003, 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 /*
12  * Created on Jan 28, 2004
13  *
14  * To change the template for this generated file go to
15  * Window - Preferences - Java - Code Generation - Code and Comments
16  */

17 package org.eclipse.pde.internal.ui.editor;
18
19 import org.eclipse.jface.viewers.ISelection;
20 import org.eclipse.jface.viewers.ISelectionChangedListener;
21 import org.eclipse.swt.SWT;
22 import org.eclipse.swt.widgets.Composite;
23 import org.eclipse.swt.widgets.Control;
24 import org.eclipse.ui.IActionBars;
25
26
27 public class EmptyOutlinePage implements ISortableContentOutlinePage {
28     private Composite control;
29     /**
30      *
31      */

32     public EmptyOutlinePage() {
33     }
34     /* (non-Javadoc)
35      * @see org.eclipse.ui.part.IPage#createControl(org.eclipse.swt.widgets.Composite)
36      */

37     public void createControl(Composite parent) {
38         control = new Composite(parent, SWT.NULL);
39     }
40     /* (non-Javadoc)
41      * @see org.eclipse.ui.part.IPage#dispose()
42      */

43     public void dispose() {
44     }
45     /* (non-Javadoc)
46      * @see org.eclipse.ui.part.IPage#getControl()
47      */

48     public Control getControl() {
49         return control;
50     }
51     /* (non-Javadoc)
52      * @see org.eclipse.ui.part.IPage#setActionBars(org.eclipse.ui.IActionBars)
53      */

54     public void setActionBars(IActionBars actionBars) {
55     }
56     /* (non-Javadoc)
57      * @see org.eclipse.ui.part.IPage#setFocus()
58      */

59     public void setFocus() {
60     }
61     /* (non-Javadoc)
62      * @see org.eclipse.jface.viewers.ISelectionProvider#addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener)
63      */

64     public void addSelectionChangedListener(ISelectionChangedListener listener) {
65     }
66     /* (non-Javadoc)
67      * @see org.eclipse.jface.viewers.ISelectionProvider#getSelection()
68      */

69     public ISelection getSelection() {
70         return new ISelection() {
71             public boolean isEmpty() { return true; }
72         };
73     }
74     /* (non-Javadoc)
75      * @see org.eclipse.jface.viewers.ISelectionProvider#removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener)
76      */

77     public void removeSelectionChangedListener(
78             ISelectionChangedListener listener) {
79     }
80     /* (non-Javadoc)
81      * @see org.eclipse.jface.viewers.ISelectionProvider#setSelection(org.eclipse.jface.viewers.ISelection)
82      */

83     public void setSelection(ISelection selection) {
84     }
85     /* (non-Javadoc)
86      * @see org.eclipse.pde.internal.ui.editor.ISortable#sort(boolean)
87      */

88     public void sort(boolean sorting) {
89     }
90 }
91
Popular Tags