01: /*******************************************************************************
02: * Copyright (c) 2003, 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;
11:
12: import org.eclipse.jface.viewers.ISelection;
13: import org.eclipse.jface.viewers.ISelectionChangedListener;
14: import org.eclipse.swt.SWT;
15: import org.eclipse.swt.widgets.Composite;
16: import org.eclipse.swt.widgets.Control;
17: import org.eclipse.ui.IActionBars;
18:
19: public class EmptyOutlinePage implements ISortableContentOutlinePage {
20: private Composite control;
21:
22: /**
23: *
24: */
25: public EmptyOutlinePage() {
26: }
27:
28: /* (non-Javadoc)
29: * @see org.eclipse.ui.part.IPage#createControl(org.eclipse.swt.widgets.Composite)
30: */
31: public void createControl(Composite parent) {
32: control = new Composite(parent, SWT.NULL);
33: }
34:
35: /* (non-Javadoc)
36: * @see org.eclipse.ui.part.IPage#dispose()
37: */
38: public void dispose() {
39: }
40:
41: /* (non-Javadoc)
42: * @see org.eclipse.ui.part.IPage#getControl()
43: */
44: public Control getControl() {
45: return control;
46: }
47:
48: /* (non-Javadoc)
49: * @see org.eclipse.ui.part.IPage#setActionBars(org.eclipse.ui.IActionBars)
50: */
51: public void setActionBars(IActionBars actionBars) {
52: }
53:
54: /* (non-Javadoc)
55: * @see org.eclipse.ui.part.IPage#setFocus()
56: */
57: public void setFocus() {
58: }
59:
60: /* (non-Javadoc)
61: * @see org.eclipse.jface.viewers.ISelectionProvider#addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener)
62: */
63: public void addSelectionChangedListener(
64: ISelectionChangedListener listener) {
65: }
66:
67: /* (non-Javadoc)
68: * @see org.eclipse.jface.viewers.ISelectionProvider#getSelection()
69: */
70: public ISelection getSelection() {
71: return new ISelection() {
72: public boolean isEmpty() {
73: return true;
74: }
75: };
76: }
77:
78: /* (non-Javadoc)
79: * @see org.eclipse.jface.viewers.ISelectionProvider#removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener)
80: */
81: public void removeSelectionChangedListener(
82: ISelectionChangedListener listener) {
83: }
84:
85: /* (non-Javadoc)
86: * @see org.eclipse.jface.viewers.ISelectionProvider#setSelection(org.eclipse.jface.viewers.ISelection)
87: */
88: public void setSelection(ISelection selection) {
89: }
90:
91: /* (non-Javadoc)
92: * @see org.eclipse.pde.internal.ui.editor.ISortable#sort(boolean)
93: */
94: public void sort(boolean sorting) {
95: }
96: }
|