void (TaskRepository repository) { TaskRepositoryEditor editor = repository.getRepositoryType().createEditor(repository, myProject, myChangeListener); myEditors.add(editor); JComponent component = editor.createComponent(); String name = myRepoNames.get(repository); myRepositoryEditor.add(component, name); myRepositoryEditor.doLayout(); }