VFSManager.runInAWTThread(new Runnable()
Runnable runnable = new Runnable()
	public void setBuffer(final Buffer buffer)	{		if(this.buffer == buffer)			return;		if(buffer.isClosed())			throw new InternalError(buffer + " has been closed");		recentBuffer = this.buffer;		if(recentBuffer != null)			saveCaretInfo();		this.buffer = buffer;		textArea.setBuffer(buffer);		if(bufferTabs != null)			bufferTabs.selectBufferTab(buffer);		updateTextArea();		focusOnTextArea();		if(!init)		{			view.updateTitle();			view.updateBufferStatus();			view.updateBuffersMenu();			view.updateMarkerMenus();			EditBus.send(new EditPaneUpdate(this,EditPaneUpdate				.BUFFER_CHANGED));		}		// Only do this after all I/O requests are complete		VFSManager.runInAWTThread(new Runnable()		{			public void run()			{				loadCaretInfo();				buffer.checkModTime(view);			}		});	}