1 11 package org.eclipse.jface.text; 12 13 26 public interface IDocumentExtension4 { 27 28 41 DocumentRewriteSession startRewriteSession(DocumentRewriteSessionType sessionType) throws IllegalStateException ; 42 43 52 void stopRewriteSession(DocumentRewriteSession session); 53 54 59 DocumentRewriteSession getActiveRewriteSession(); 60 61 74 void addDocumentRewriteSessionListener(IDocumentRewriteSessionListener listener); 75 76 86 void removeDocumentRewriteSessionListener(IDocumentRewriteSessionListener listener); 87 88 101 void replace(int offset, int length, String text, long modificationStamp) throws BadLocationException; 102 103 114 void set(String text, long modificationStamp); 115 116 119 long UNKNOWN_MODIFICATION_STAMP= -1; 120 121 133 long getModificationStamp(); 134 135 143 String getDefaultLineDelimiter(); 144 145 152 void setInitialLineDelimiter(String lineDelimiter); 153 } 154 | Popular Tags |