{
	public void setState(int state)	{		if(this.state == state)			return;		this.state = state;		if(state == NULL_STATE)		{			view.showStatus(null);			textField.setModel("cli");			// must return focus to text area after a repeat			view.getEditPane().focusOnTextArea();			reset();		}		else if(state == TOPLEVEL_STATE)		{			view.showStatus(jEdit.getProperty(				"view.command-line.top-level"));			textField.setModel("cli");			reset();		}		else if(state == REPEAT_STATE)		{			view.showStatus(jEdit.getProperty(				"view.command-line.repeat"));			textField.setModel(null);			reset();		}		else if(state == PROMPT_ONE_CHAR_STATE)			reset();		else if(state == PROMPT_LINE_STATE)		{			textField.setModel("cli.prompt");			reset();		}		else if(state == QUICK_SEARCH_STATE)		{			view.showStatus(jEdit.getProperty(				"view.status.quick-search"));			textField.setModel("find");			reset();			add(BorderLayout.EAST,searchSettings);			Dimension dim = searchSettings.getPreferredSize();			dim.height = textField.getHeight();			searchSettings.setPreferredSize(dim);			revalidate();			textField.requestFocus();		}		else if(state == INCREMENTAL_SEARCH_STATE)		{			view.showStatus(jEdit.getProperty(				"view.status.incremental-search"));			textField.setModel("find");			reset();			add(BorderLayout.EAST,searchSettings);			Dimension dim = searchSettings.getPreferredSize();			dim.height = textField.getHeight();			searchSettings.setPreferredSize(dim);			revalidate();			textField.requestFocus();		}	}