use of com.intellij.cvsSupport2.cvsBrowser.CvsTree in project intellij-community by JetBrains.
the class SelectCvsElementStep method createComponent.
@Override
protected JComponent createComponent() {
myCvsTree = new CvsTree(myProject, myAllowRootSelection, mySelectionMode, myShowModules, myShowFiles, e -> {
myErrors.set(Boolean.TRUE);
ApplicationManager.getApplication().invokeLater(() -> Messages.showErrorDialog(e.getMessage(), CvsBundle.message("error.title.cvs.error")), ModalityState.any());
});
myCvsTree.init();
myCvsTree.addSelectionObserver(new Observer() {
@Override
public void update(Observable o, Object arg) {
if (CvsTree.SELECTION_CHANGED.equals(arg)) {
getWizard().updateStep();
}
}
});
return myCvsTree;
}
Aggregations