1 11 package org.eclipse.team.ui; 12 13 import org.eclipse.compare.CompareEditorInput; 14 import org.eclipse.compare.CompareUI; 15 import org.eclipse.ui.*; 16 17 29 public abstract class SaveablePartAdapter implements ISaveableWorkbenchPart { 30 31 34 public void doSaveAs() { 35 } 36 37 40 public boolean isSaveAsAllowed() { 41 return false; 42 } 43 44 47 public boolean isSaveOnCloseNeeded() { 48 return false; 49 } 50 51 54 public void addPropertyListener(IPropertyListener listener) { 55 } 56 57 60 public void dispose() { 61 } 62 63 66 public IWorkbenchPartSite getSite() { 67 return null; 68 } 69 70 73 public String getTitleToolTip() { 74 return null; 75 } 76 77 80 public void removePropertyListener(IPropertyListener listener) { 81 } 82 83 86 public void setFocus() { 87 } 88 89 92 public Object getAdapter(Class adapter) { 93 return null; 94 } 95 } 96 | Popular Tags |