1 11 package org.eclipse.jdt.core; 12 13 import org.eclipse.core.resources.IResource; 14 import org.eclipse.core.runtime.IProgressMonitor; 15 16 34 public interface IBuffer { 35 36 43 public void addBufferChangedListener(IBufferChangedListener listener); 44 54 public void append(char[] text); 55 65 public void append(String text); 66 74 public void close(); 75 83 public char getChar(int position); 84 98 public char[] getCharacters(); 99 108 public String getContents(); 109 116 public int getLength(); 117 122 public IOpenable getOwner(); 123 132 public String getText(int offset, int length); 133 140 public IResource getUnderlyingResource(); 141 154 public boolean hasUnsavedChanges(); 155 160 public boolean isClosed(); 161 166 public boolean isReadOnly(); 167 173 public void removeBufferChangedListener(IBufferChangedListener listener); 174 185 public void replace(int position, int length, char[] text); 186 197 public void replace(int position, int length, String text); 198 229 public void save(IProgressMonitor progress, boolean force) throws JavaModelException; 230 242 public void setContents(char[] contents); 243 255 public void setContents(String contents); 256 } 257 | Popular Tags |