Search in sources :

Example 1 with CvsTree

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;
}
Also used : Observer(java.util.Observer) ModalityState(com.intellij.openapi.application.ModalityState) CvsBundle(com.intellij.CvsBundle) Nullable(org.jetbrains.annotations.Nullable) CvsTree(com.intellij.cvsSupport2.cvsBrowser.CvsTree) LoginPerformer(com.intellij.cvsSupport2.cvsoperations.common.LoginPerformer) CvsRootException(com.intellij.cvsSupport2.connections.CvsRootException) ApplicationManager(com.intellij.openapi.application.ApplicationManager) Project(com.intellij.openapi.project.Project) Messages(com.intellij.openapi.ui.Messages) VcsException(com.intellij.openapi.vcs.VcsException) Observable(java.util.Observable) Ref(com.intellij.openapi.util.Ref) JdkConstants(org.intellij.lang.annotations.JdkConstants) Collections(java.util.Collections) CvsRootConfiguration(com.intellij.cvsSupport2.config.CvsRootConfiguration) CvsElement(com.intellij.cvsSupport2.cvsBrowser.CvsElement) Consumer(com.intellij.util.Consumer) CvsEnvironment(com.intellij.cvsSupport2.connections.CvsEnvironment) javax.swing(javax.swing) CvsTree(com.intellij.cvsSupport2.cvsBrowser.CvsTree) Observer(java.util.Observer) Observable(java.util.Observable)

Aggregations

CvsBundle (com.intellij.CvsBundle)1 CvsRootConfiguration (com.intellij.cvsSupport2.config.CvsRootConfiguration)1 CvsEnvironment (com.intellij.cvsSupport2.connections.CvsEnvironment)1 CvsRootException (com.intellij.cvsSupport2.connections.CvsRootException)1 CvsElement (com.intellij.cvsSupport2.cvsBrowser.CvsElement)1 CvsTree (com.intellij.cvsSupport2.cvsBrowser.CvsTree)1 LoginPerformer (com.intellij.cvsSupport2.cvsoperations.common.LoginPerformer)1 ApplicationManager (com.intellij.openapi.application.ApplicationManager)1 ModalityState (com.intellij.openapi.application.ModalityState)1 Project (com.intellij.openapi.project.Project)1 Messages (com.intellij.openapi.ui.Messages)1 Ref (com.intellij.openapi.util.Ref)1 VcsException (com.intellij.openapi.vcs.VcsException)1 Consumer (com.intellij.util.Consumer)1 Collections (java.util.Collections)1 Observable (java.util.Observable)1 Observer (java.util.Observer)1 javax.swing (javax.swing)1 JdkConstants (org.intellij.lang.annotations.JdkConstants)1 Nullable (org.jetbrains.annotations.Nullable)1