1 11 package org.eclipse.ui.internal.part; 12 13 import org.eclipse.jface.resource.ImageDescriptor; 14 import org.eclipse.ui.IEditorInput; 15 import org.eclipse.ui.IPersistableElement; 16 17 20 public class NullEditorInput implements IEditorInput { 21 22 25 public boolean exists() { 26 return false; 27 } 28 29 32 public ImageDescriptor getImageDescriptor() { 33 return ImageDescriptor.getMissingImageDescriptor(); 34 } 35 36 39 public String getName() { 40 return ""; } 42 43 46 public IPersistableElement getPersistable() { 47 return null; 48 } 49 50 53 public String getToolTipText() { 54 return ""; } 56 57 60 public Object getAdapter(Class adapter) { 61 return null; 62 } 63 64 } 65 | Popular Tags |