View view = getView(evt); Buffer buffer = view.getBuffer(); JEditTextArea textArea = view.getTextArea(); if(!textArea.isEditable()) { view.getToolkit().beep(); return; }  String str = evt.getActionCommand();  char ch = str.charAt(0); if(Abbrevs.getExpandOnInput() && ch == ' ' && Abbrevs.expandAbbrev(view,false)) ; else { int repeatCount = view.getInputHandler().getRepeatCount();  StringBuffer buf = new StringBuffer(); for(int i = 0; i < repeatCount; i++) buf.append(str); textArea.overwriteSetSelectedText(buf.toString()); }   try { doWordWrap(buffer,textArea,textArea.getCaretLine()); } catch(BadLocationException bl) { Log.log(Log.ERROR,this,bl); }
getView(evt).getTextArea().userInput(evt.getActionCommand());
	public void actionPerformed(ActionEvent evt)	{		View view = getView(evt);		Buffer buffer = view.getBuffer();		JEditTextArea textArea = view.getTextArea();		if(!textArea.isEditable())		{			view.getToolkit().beep();			return;		}		String str = evt.getActionCommand();		char ch = str.charAt(0);		if(Abbrevs.getExpandOnInput() && ch == ' '			&& Abbrevs.expandAbbrev(view,false))			; // do nothing		else		{			int repeatCount = view.getInputHandler().getRepeatCount();			StringBuffer buf = new StringBuffer();			for(int i = 0; i < repeatCount; i++)				buf.append(str);			textArea.overwriteSetSelectedText(buf.toString());		}		// do word wrap		try		{			doWordWrap(buffer,textArea,textArea.getCaretLine());		}		catch(BadLocationException bl)		{			Log.log(Log.ERROR,this,bl);		}	}