Examples of DocumentAdapter


Examples of com.intellij.ui.DocumentAdapter

      FileTextField fileTextField = FileChooserFactory.getInstance().createFileTextField(
        fileChooser.getDescriptor(), false, myDisposable);

      tfFile = fileTextField.getField();
      tfFile.setColumns(60);
      DocumentAdapter textFieldsListener = new DocumentAdapter()
      {
        public void textChanged(DocumentEvent event)
        {
          setOKActionEnabled(!tfFile.getText().trim().equals(review.getFile()));
        }
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

    DefaultListCellRenderer comboRenderer = createComboReviewRenderer();
    cbReviewCopy.setRenderer(comboRenderer);
    cbReviewLink.setRenderer(comboRenderer);

    DocumentAdapter textFieldsListener = new DocumentAdapter()
    {
      public void textChanged(DocumentEvent event)
      {
        setOKActionEnabled((!createMode)
        || ((tfName.getText().trim().length() > 0)
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

        for (StatementExecutionVariable variable: variablesBundle.getVariables()) {
            StatementExecutionVariableValueForm variableValueForm = new StatementExecutionVariableValueForm(variable);
            variableValueForms.add(variableValueForm);
            variablesPanel.add(variableValueForm.getComponent());
            variableValueForm.addDocumentListener(new DocumentAdapter() {
                protected void textChanged(DocumentEvent e) {
                    updatePreview();
                }
            });
            variableValueForm.addActionListener(new ActionListener() {
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

        }

        JTextField[] modifiableFields = new JTextField[]{pathToEclipsePreferenceFileJava, pathToEclipsePreferenceFileJS,
                optimizeImportGroups, disabledFileTypes, importOrder};
        for (JTextField field : modifiableFields) {
            field.getDocument().addDocumentListener(new DocumentAdapter() {
                protected void textChanged(DocumentEvent e) {
                    updateComponents();
                }
            });
        }
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

    }

    JTextField[] modifiableFields = new JTextField[]{pathToEclipsePreferenceFileJava,
        pathToEclipsePreferenceFileJS, disabledFileTypes, importOrder, pathToImportOrderPreferenceFile};
    for (JTextField field : modifiableFields) {
      field.getDocument().addDocumentListener(new DocumentAdapter() {
        protected void textChanged(DocumentEvent e) {
          updateComponents();
        }
      });
    }

    eclipsePreferenceFilePathJavaBrowse.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        browseForFile(pathToEclipsePreferenceFileJava);
      }
    });
    pathToImportOrderPreferenceFileBrowse.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        browseForFile(pathToImportOrderPreferenceFile);
      }
    });
    eclipsePreferenceFilePathJSBrowse.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        browseForFile(pathToEclipsePreferenceFileJS);
      }
    });

    rootComponent.addAncestorListener(new AncestorListener() {
      public void ancestorAdded(AncestorEvent event) {
        // Called when component becomes visible, to ensure that the
        // popups
        // are visible when the form is shown for the first time.
        updateComponents();
      }

      public void ancestorRemoved(AncestorEvent event) {
      }

      public void ancestorMoved(AncestorEvent event) {
      }
    });

    pathToEclipsePreferenceFileJava.getDocument().addDocumentListener(new DocumentAdapter() {
      @Override
      protected void textChanged(DocumentEvent e) {
        setJavaFormatterProfileModel();
      }
    });

    pathToEclipsePreferenceFileJS.getDocument().addDocumentListener(new DocumentAdapter() {
      @Override
      protected void textChanged(DocumentEvent e) {
        setJavaScriptFormatterProfileModel();
      }
    });
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

    JTextField[] modifyableFields = new JTextField[]{
        eclipsePrefs,
    };
    for (JTextField field : modifyableFields) {
      field.getDocument().addDocumentListener(new DocumentAdapter() {
        protected void textChanged(DocumentEvent e) {
          updateComponents();
        }
      });
    }
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

        watcher.register(pnlRoot);

        txtIvyFile.addBrowseFolderListener("Select ivy file", "", editorContext.getProject(), new FileChooserDescriptor(true, false, false, false, false, false));
        txtIvySettingsFile.addBrowseFolderListener("Select ivy settings file", "", editorContext.getProject(), new FileChooserDescriptor(true, false, false, false, false, false));

        txtIvyFile.getTextField().getDocument().addDocumentListener(new DocumentAdapter() {
            public void textChanged(DocumentEvent e) {
                reloadIvyFile();
            }
        });
        chkOverrideProjectIvySettings.addChangeListener(new ChangeListener() {
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

  }

  @Override
  public void addSettingsStateListener(final @NotNull WebProjectGenerator.SettingsStateListener stateListener) {
    // invalid Dartium path is not a blocking error
    mySdkPathTextWithBrowse.getTextField().getDocument().addDocumentListener(new DocumentAdapter() {
      protected void textChanged(final DocumentEvent e) {
        stateListener.stateChanged(validate() == null);
      }
    });
  }
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

    setUpListener(myWorkingDirectory.getChildComponent().getTextEditor());
  }

  private void setUpListener(final JTextField textField) {
    final Ref<String> prevExecutablePathRef = Ref.create(StringUtil.notNullize(textField.getText()));
    textField.getDocument().addDocumentListener(new DocumentAdapter() {
      @Override
      protected void textChanged(DocumentEvent e) {
        String executablePath = StringUtil.notNullize(textField.getText());
        String prevExecutablePath = prevExecutablePathRef.get();
        if (!prevExecutablePath.equals(executablePath)) {
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

  }

  private void setListenerForExecutablePath() {
    final Ref<String> prevExecutablePathRef = Ref.create(StringUtil.notNullize(myExecutablePathField.getText()));
    final JTextField textEditor = myExecutablePathField.getChildComponent().getTextEditor();
    textEditor.getDocument().addDocumentListener(new DocumentAdapter() {
      @Override
      protected void textChanged(DocumentEvent e) {
        String executablePath = StringUtil.notNullize(textEditor.getText());
        if (StringUtil.isEmpty(executablePath)) return;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.