1 11 package org.eclipse.ui.internal.console; 12 13 import org.eclipse.swt.graphics.Image; 14 import org.eclipse.swt.widgets.Composite; 15 import org.eclipse.ui.IPropertyListener; 16 import org.eclipse.ui.IWorkbenchPart; 17 import org.eclipse.ui.IWorkbenchPartSite; 18 import org.eclipse.ui.console.IConsole; 19 20 23 public class ConsoleWorkbenchPart implements IWorkbenchPart { 24 25 private IConsole fConsole = null; 26 private IWorkbenchPartSite fSite = null; 27 28 31 public boolean equals(Object obj) { 32 return (obj instanceof ConsoleWorkbenchPart) && 33 fConsole.equals(((ConsoleWorkbenchPart)obj).fConsole); 34 } 35 36 39 public int hashCode() { 40 return fConsole.hashCode(); 41 } 42 43 47 public ConsoleWorkbenchPart(IConsole console, IWorkbenchPartSite site) { 48 fConsole = console; 49 fSite = site; 50 } 51 52 55 public void addPropertyListener(IPropertyListener listener) { 56 } 57 58 61 public void createPartControl(Composite parent) { 62 } 63 64 67 public void dispose() { 68 } 69 70 73 public IWorkbenchPartSite getSite() { 74 return fSite; 75 } 76 77 80 public String getTitle() { 81 return ""; } 83 84 87 public Image getTitleImage() { 88 return null; 89 } 90 91 94 public String getTitleToolTip() { 95 return ""; } 97 98 101 public void removePropertyListener(IPropertyListener listener) { 102 } 103 104 107 public void setFocus() { 108 } 109 110 113 public Object getAdapter(Class adapter) { 114 return null; 115 } 116 117 122 protected IConsole getConsole() { 123 return fConsole; 124 } 125 } 126 | Popular Tags |