Object obj = getEditor().getItem(); if(obj == null) obj = getSelectedItem(); ((HistoryModel)getModel()).addItem((String)obj);
String str = (String)getEditor().getItem(); if(str == null) str = (String)getSelectedItem(); if(str != null && str.length() != 0) { ((HistoryModel)getModel()).addItem(str); setSelectedIndex(0); }
	public void addCurrentToHistory()	{		Object obj = getEditor().getItem();		if(obj == null)			obj = getSelectedItem();		((HistoryModel)getModel()).addItem((String)obj);	}