Boolean overwrite = (Boolean)buffer.getProperty(Buffer.OVERWRITE);
	public void loadCaretInfo()	{		Integer caret = (Integer)buffer.getProperty(Buffer.CARET);		Selection[] selection = (Selection[])buffer.getProperty(Buffer.SELECTION);		Integer firstLine = (Integer)buffer.getProperty(Buffer.SCROLL_VERT);		Integer horizontalOffset = (Integer)buffer.getProperty(Buffer.SCROLL_HORIZ);		Boolean overwrite = (Boolean)buffer.getProperty(Buffer.OVERWRITE);		if(caret != null)		{			textArea.setCaretPosition(Math.min(caret.intValue(),				buffer.getLength()));		}		if(selection != null)			textArea.setSelection(selection);		if(firstLine != null)			textArea.setFirstLine(firstLine.intValue());		if(horizontalOffset != null)			textArea.setHorizontalOffset(horizontalOffset.intValue());		if(overwrite != null)			textArea.setOverwriteEnabled(overwrite.booleanValue());	}