Search in sources :

Example 6 with ProjectSelector

use of com.google.cloud.tools.intellij.project.ProjectSelector in project google-cloud-intellij by GoogleCloudPlatform.

the class CloneCloudRepositoryDialog method createUIComponents.

private void createUIComponents() {
    projectSelector = new ProjectSelector(project);
    projectSelector.setMinimumSize(new Dimension(400, 0));
    projectSelector.addProjectSelectionListener(this::updateRepositorySelector);
    repositorySelector = new RepositorySelector(projectSelector.getSelectedProject(), false);
    repositorySelector.getDocument().addDocumentListener(new DocumentAdapter() {

        @Override
        protected void textChanged(DocumentEvent event) {
            updateButtons();
        }
    });
}
Also used : DocumentAdapter(com.intellij.ui.DocumentAdapter) Dimension(java.awt.Dimension) DocumentEvent(javax.swing.event.DocumentEvent) ProjectSelector(com.google.cloud.tools.intellij.project.ProjectSelector)

Aggregations

ProjectSelector (com.google.cloud.tools.intellij.project.ProjectSelector)6 DocumentAdapter (com.intellij.ui.DocumentAdapter)2 JBCheckBox (com.intellij.ui.components.JBCheckBox)2 Dimension (java.awt.Dimension)2 DocumentEvent (javax.swing.event.DocumentEvent)2 CloudProject (com.google.cloud.tools.intellij.project.CloudProject)1 TestCloudLibrary (com.google.cloud.tools.intellij.testing.apis.TestCloudLibrary)1 CloudLibrary (com.google.cloud.tools.libraries.json.CloudLibrary)1 ModulesComboBox (com.intellij.application.options.ModulesComboBox)1 Module (com.intellij.openapi.module.Module)1 JTable (javax.swing.JTable)1 Test (org.junit.Test)1