view test/mergertest/REPTextWithLinkedList.java @ 471:d2762d669617

sleep command to wait for singleton prevention
author one
date Tue, 12 Oct 2010 10:19:59 +0900
parents 5c95a9020e31
children
line wrap: on
line source

package test.mergertest;

import java.util.ArrayList;
import java.util.List;

import test.editortest.REPText;
import test.editortest.REPTextListener;

public class REPTextWithLinkedList implements REPText {
	
	ArrayList<String> textList = new ArrayList<String>();

	public void addTextListener(REPTextListener listener) {
		// TODO Auto-generated method stub

	}

	public String delete(int lineno) {
		return null;
	}

	public String get(int i) {
		// TODO Auto-generated method stub
		return null;
	}

	public void insert(int lineno, String text) {
		int d = lineno - textList.size() + 1;

		for(int i = 0; i < d; i++){
			textList.add("");
		}

		textList.add(lineno, text);
	}

	public List<String> list() {
		// TODO Auto-generated method stub
		return textList;
	}

	public int size() {
		// TODO Auto-generated method stub
		return 0;
	}

}