|
Lines 48-54
Link Here
|
| 48 |
* @see org.eclipse.jface.text.ITextStore |
48 |
* @see org.eclipse.jface.text.ITextStore |
| 49 |
* @see org.eclipse.jface.text.ILineTracker |
49 |
* @see org.eclipse.jface.text.ILineTracker |
| 50 |
*/ |
50 |
*/ |
| 51 |
public abstract class AbstractDocument implements IDocument, IDocumentExtension, IDocumentExtension2, IDocumentExtension3, IDocumentExtension4, IRepairableDocument { |
51 |
public abstract class AbstractDocument implements IDocument, IDocumentExtension, IDocumentExtension2, IDocumentExtension3, IDocumentExtension4, IRepairableDocument, ILineDelimiterProvider { |
| 52 |
|
52 |
|
| 53 |
/** |
53 |
/** |
| 54 |
* Tells whether this class is in debug mode. |
54 |
* Tells whether this class is in debug mode. |
|
Lines 155-160
Link Here
|
| 155 |
* @since 3.1 |
155 |
* @since 3.1 |
| 156 |
*/ |
156 |
*/ |
| 157 |
private long fModificationStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP; |
157 |
private long fModificationStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP; |
|
|
158 |
/** |
| 159 |
* This document's default line delimiter. |
| 160 |
* @since 3.1 |
| 161 |
*/ |
| 162 |
private String fDefaultLineDelimiter; |
| 158 |
|
163 |
|
| 159 |
|
164 |
|
| 160 |
/** |
165 |
/** |
|
Lines 803-808
Link Here
|
| 803 |
public String[] getLegalLineDelimiters() { |
808 |
public String[] getLegalLineDelimiters() { |
| 804 |
return getTracker().getLegalLineDelimiters(); |
809 |
return getTracker().getLegalLineDelimiters(); |
| 805 |
} |
810 |
} |
|
|
811 |
|
| 812 |
/* |
| 813 |
* @see org.eclipse.jface.text.ILineDelimiterProvider#getDefaultLineDelimiter() |
| 814 |
* @since 3.1 |
| 815 |
*/ |
| 816 |
public String getDefaultLineDelimiter() { |
| 817 |
return fDefaultLineDelimiter; |
| 818 |
} |
| 819 |
|
| 820 |
/* |
| 821 |
* @see org.eclipse.jface.text.ILineDelimiterProvider#setDefaultLineDelimiter(java.lang.String) |
| 822 |
* @since 3.1 |
| 823 |
*/ |
| 824 |
public void setDefaultLineDelimiter(String lineDelimiter) { |
| 825 |
Assert.isNotNull(lineDelimiter); |
| 826 |
fDefaultLineDelimiter= lineDelimiter; |
| 827 |
} |
| 806 |
|
828 |
|
| 807 |
/* |
829 |
/* |
| 808 |
* @see org.eclipse.jface.text.IDocument#getLineLength(int) |
830 |
* @see org.eclipse.jface.text.IDocument#getLineLength(int) |