comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/DefaultContent.d @ 49:7a2dd761a8b2

more work until dmd 2.026 linux segfaults.
author Frank Benoit <benoit@tionex.de>
date Fri, 27 Mar 2009 12:59:54 +0100
parents ddbfe84d86df
children d5075f5226e5
comparison
equal deleted inserted replaced
48:ddbfe84d86df 49:7a2dd761a8b2
22 import org.eclipse.swt.custom.StyledTextListener; 22 import org.eclipse.swt.custom.StyledTextListener;
23 import org.eclipse.swt.custom.StyledText; 23 import org.eclipse.swt.custom.StyledText;
24 import java.lang.all; 24 import java.lang.all;
25 25
26 version(Tango){ 26 version(Tango){
27 static import tango.io.model.IFile; 27 static import tango.io.model.IFile;
28 } else { // Phobos 28 } else { // Phobos
29 } 29 }
30 30
31 31
32 class DefaultContent : StyledTextContent { 32 class DefaultContent : StyledTextContent {
33 private final static String LineDelimiter = tango.io.model.IFile.FileConst.NewlineString; 33 version(Tango){
34 private const static String LineDelimiter = tango.io.model.IFile.FileConst.NewlineString;
35 } else { // Phobos
36 private const static String LineDelimiter = std.string.newline;
37 }
34 38
35 StyledTextListener[] textListeners; // stores text listeners for event sending 39 StyledTextListener[] textListeners; // stores text listeners for event sending
36 char[] textStore; // stores the actual text 40 char[] textStore; // stores the actual text
37 int gapStart = -1; // the character position start of the gap 41 int gapStart = -1; // the character position start of the gap
38 int gapEnd = -1; // the character position after the end of the gap 42 int gapEnd = -1; // the character position after the end of the gap