1 11 package org.eclipse.team.internal.ui.synchronize; 12 13 import org.eclipse.swt.graphics.Image; 14 import org.eclipse.swt.widgets.Composite; 15 import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration; 16 import org.eclipse.team.ui.synchronize.ISynchronizeParticipant; 17 import org.eclipse.ui.IPropertyListener; 18 import org.eclipse.ui.IWorkbenchPart; 19 import org.eclipse.ui.IWorkbenchPartSite; 20 21 24 public class SynchronizeViewWorkbenchPart implements IWorkbenchPart { 25 26 private ISynchronizeParticipant participant; 27 private IWorkbenchPartSite site; 28 private ISynchronizePageConfiguration configuration; 29 30 33 public boolean equals(Object obj) { 34 return (obj instanceof SynchronizeViewWorkbenchPart) && 35 participant.equals(((SynchronizeViewWorkbenchPart)obj).getParticipant()); 36 } 37 38 41 public int hashCode() { 42 return participant.hashCode(); 43 } 44 45 49 public SynchronizeViewWorkbenchPart(ISynchronizeParticipant participant, IWorkbenchPartSite site) { 50 this.participant = participant; 51 this.site = site; 52 } 53 54 57 public void addPropertyListener(IPropertyListener listener) { 58 } 59 60 63 public void createPartControl(Composite parent) { 64 } 65 66 69 public void dispose() { 70 } 71 72 75 public IWorkbenchPartSite getSite() { 76 return site; 77 } 78 79 82 public String getTitle() { 83 return ""; } 85 86 89 public Image getTitleImage() { 90 return null; 91 } 92 93 96 public String getTitleToolTip() { 97 return ""; } 99 100 103 public void removePropertyListener(IPropertyListener listener) { 104 } 105 106 109 public void setFocus() { 110 } 111 112 115 public Object getAdapter(Class adapter) { 116 return null; 117 } 118 119 124 public ISynchronizeParticipant getParticipant() { 125 return participant; 126 } 127 128 public void setConfiguration(ISynchronizePageConfiguration configuration) { 129 this.configuration = configuration; 130 } 131 132 public ISynchronizePageConfiguration getConfiguration() { 133 return configuration; 134 } 135 } 136 | Popular Tags |