Changeset 34
- Timestamp:
- 10/03/02 15:23:55 (20 years ago)
- Location:
- trunk/j/src/org/armedbear/j
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/j/AbstractLine.java
r2 r34 30 30 private Annotation annotation; 31 31 32 public final Line previous()32 public final synchronized Line previous() 33 33 { 34 34 return prev; 35 35 } 36 36 37 public final void setPrevious(Line line)37 public final synchronized void setPrevious(Line line) 38 38 { 39 39 prev = line; 40 40 } 41 41 42 public final Line next()42 public final synchronized Line next() 43 43 { 44 44 return next; 45 45 } 46 46 47 public final void setNext(Line line)47 public final synchronized void setNext(Line line) 48 48 { 49 49 next = line; 50 50 } 51 51 52 public final void insertAfter(Line line)52 public final synchronized void insertAfter(Line line) 53 53 { 54 54 if (line != null) { … … 63 63 } 64 64 65 public final int lineNumber()65 public final synchronized int lineNumber() 66 66 { 67 67 return lineNumber; 68 68 } 69 69 70 public final void setLineNumber(int n)70 public final synchronized void setLineNumber(int n) 71 71 { 72 72 lineNumber = n; 73 73 } 74 74 75 public final int originalLineNumber()75 public final synchronized int originalLineNumber() 76 76 { 77 77 return originalLineNumber; 78 78 } 79 79 80 public final void setOriginalLineNumber(int n)80 public final synchronized void setOriginalLineNumber(int n) 81 81 { 82 82 originalLineNumber = n; … … 192 192 } 193 193 194 public final Line previousVisible()194 public final synchronized Line previousVisible() 195 195 { 196 196 Line line = previous(); … … 200 200 } 201 201 202 public final Line nextVisible()202 public final synchronized Line nextVisible() 203 203 { 204 204 Line line = next(); -
trunk/j/src/org/armedbear/j/TextLine.java
r33 r34 3 3 * 4 4 * Copyright (C) 1998-2002 Peter Graves 5 * $Id: TextLine.java,v 1. 2 2002-10-03 14:59:38piso Exp $5 * $Id: TextLine.java,v 1.3 2002-10-03 15:23:55 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 48 48 } 49 49 50 public final int flags()50 public final synchronized int flags() 51 51 { 52 52 return flags; 53 53 } 54 54 55 public final void setFlags(int flags)55 public final synchronized void setFlags(int flags) 56 56 { 57 57 this.flags = flags; 58 58 } 59 59 60 public final String getText()60 public final synchronized String getText() 61 61 { 62 62 return text != null ? text : ""; 63 63 } 64 64 65 public final void setText(String s)65 public final synchronized void setText(String s) 66 66 { 67 67 if (originalText == null)
Note: See TracChangeset
for help on using the changeset viewer.