buffer.beginCompoundEdit(); for(int i = selectionStartLine; i <= selectionEndLine; i++) { buffer.indentLine(i,true,true); } buffer.endCompoundEdit();
if(!buffer.isEditable()) getToolkit().beep(); else buffer.indentLines(selectionStartLine,selectionEndLine);
	public void indentSelectedLines()	{		buffer.beginCompoundEdit();		for(int i = selectionStartLine; i <= selectionEndLine; i++)		{			buffer.indentLine(i,true,true);		}		buffer.endCompoundEdit();	}