buffer.indentLine(textArea,i,true);
buffer.indentLine(textArea,i,canIncreaseIndent,true);
        public void actionPerformed(ActionEvent evt)        {                View view = getView(evt);		JEditTextArea textArea = view.getTextArea();		if(!textArea.isEditable())		{			view.getToolkit().beep();			return;		}                Buffer buffer = view.getBuffer();		String actionCommand = evt.getActionCommand();		/* This action is invoked with an action command when		* the user presses } or some 'indentCloseBrackets' key.		* The idea is that when the user presses } in a Java file,		* the line will be reindented properly.		*		* however, since key bindings act globally, we don't attempt		* to reindent the line in modes which don't have this key in		* 'indentCloseBrackets'.		*/		if(actionCommand != null)		{			textArea.overwriteSetSelectedText(actionCommand);			String indentOpenBrackets = (String)buffer				.getProperty("indentOpenBrackets");			String indentCloseBrackets = (String)buffer				.getProperty("indentCloseBrackets");			boolean ok = false;			if(indentOpenBrackets != null)			{				if(indentOpenBrackets.indexOf(actionCommand) != -1)					ok = true;			}			if(indentCloseBrackets != null)			{				if(indentCloseBrackets.indexOf(actionCommand) != -1)					ok = true;			}			if(!ok)				return;		}		int start = textArea.getSelectionStartLine();		int end = textArea.getSelectionEndLine();		buffer.beginCompoundEdit();		for(int i = start; i <= end; i++)		{			buffer.indentLine(textArea,i,true);		}		buffer.endCompoundEdit();	}