* @author Angelo De Caro (angelo.decaro@gmail.com)
*/
public class ToolsComboBoxModel extends DefaultComboBoxModel {
public ToolsComboBoxModel(ViewContext viewContext) {
viewContext.get(ToolWindowManager.class).addToolWindowManagerListener(new ToolWindowManagerListener() {
public void toolWindowRegistered(ToolWindowManagerEvent event) {
addElement(event.getToolWindow().getId());
fireContentsChanged(this, getSize() - 2, getSize() - 1);
}