1 11 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 32 public EmptyOutlinePage() { 33 } 34 37 public void createControl(Composite parent) { 38 control = new Composite(parent, SWT.NULL); 39 } 40 43 public void dispose() { 44 } 45 48 public Control getControl() { 49 return control; 50 } 51 54 public void setActionBars(IActionBars actionBars) { 55 } 56 59 public void setFocus() { 60 } 61 64 public void addSelectionChangedListener(ISelectionChangedListener listener) { 65 } 66 69 public ISelection getSelection() { 70 return new ISelection() { 71 public boolean isEmpty() { return true; } 72 }; 73 } 74 77 public void removeSelectionChangedListener( 78 ISelectionChangedListener listener) { 79 } 80 83 public void setSelection(ISelection selection) { 84 } 85 88 public void sort(boolean sorting) { 89 } 90 } 91 | Popular Tags |