Examples of DocumentAdapter


Examples of com.intellij.ui.DocumentAdapter

    dartSdkPathComponent.addBrowseFolderListener(project, browseFolderListener);

    dartiumPathComponent.addBrowseFolderListener("Select Dartium browser path", null, project,
                                                 FileChooserDescriptorFactory.createSingleFileOrExecutableAppDescriptor());

    dartSdkPathComponent.getTextField().getDocument().addDocumentListener(new DocumentAdapter() {
      @Override
      protected void textChanged(final DocumentEvent e) {
        final String sdkHomePath = dartSdkPathComponent.getText().trim();
        versionLabel.setText(sdkHomePath.isEmpty() ? "" : getSdkVersion(sdkHomePath));
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

    UIUtil.traverse(myPanel, new UIUtil.TraverseAction() {
      public boolean executeAndContinue(Component c) {
        if (c instanceof JTextComponent) {
          JTextComponent textComponent = (JTextComponent) c;
          textComponent.getDocument().addDocumentListener(new DocumentAdapter() {
            protected void textChanged(DocumentEvent e) {
              myErrorLabel.setText(null);
            }
          });
        }
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

    myMessages.add(myConsoleView.getComponent());
    myHardWrapUtil = new HardWrapUtil(myInput);

    myMainPanel.revalidate();

    myButtonsUpdater = new DocumentAdapter() {
      @Override
      protected void textChanged(DocumentEvent e) {
        String s = myHardWrapUtil.getText();
        boolean enabled = !com.intellij.openapi.util.text.StringUtil.isEmptyOrSpaces(s);
        mySend.setEnabled(enabled);
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

        updateFileSet();
      }
    });

    mySetName.setText(fileSet.getName());
    mySetName.getDocument().addDocumentListener(new DocumentAdapter() {
      @Override
      protected void textChanged(DocumentEvent e) {
        updateFileSet();
      }
    });
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

    FileChooserDescriptor descriptor = FileChooserDescriptorFactory.createSingleFolderDescriptor();
    String title = OsmorcBundle.message("framework.path.chooser.title");
    String description = OsmorcBundle.message("framework.path.chooser.description", myIntegrator.getDisplayName());
    myBaseFolderChooser.addBrowseFolderListener(title, description, null, descriptor);
    myBaseFolderChooser.getTextField().setEditable(false);
    myBaseFolderChooser.getTextField().getDocument().addDocumentListener(new DocumentAdapter() {
      protected void textChanged(DocumentEvent e) {
        checkInstance(); updateVersion();
      }
    });

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

Examples of com.intellij.ui.DocumentAdapter

          removeButton.setEnabled(true);
        }

      }
    });
    ticketTemplateNameTextField.getDocument().addDocumentListener(new DocumentAdapter() {
      protected void textChanged(DocumentEvent e) {
        Template selected = (Template) ticketTemplatesList.getSelectedValue();
        if (selected != null) {
          selected.setName(ticketTemplateNameTextField.getText());
        }
      }
    });
    ticketTemplateContentEditorPane.getDocument().addDocumentListener(new DocumentAdapter() {
      protected void textChanged(DocumentEvent e) {
        Template selected = (Template) ticketTemplatesList.getSelectedValue();
        if (selected != null) {
          selected.setContent(ticketTemplateContentEditorPane.getText());
        }
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

    if (directory != null) {
      myDirectory.setText(directory.getPath());
    }

    myDirectory.getTextField().getDocument().addDocumentListener(new DocumentAdapter() {
      protected void textChanged(final DocumentEvent e) {
        myDirectory.getTextField().setForeground(getDirectory() != null ? SimpleTextAttributes.REGULAR_ATTRIBUTES.getFgColor() :SimpleTextAttributes.ERROR_ATTRIBUTES.getFgColor());
        updateOkButton();
      }
    });

    if (extensions.size() == 0) {
      myExtension.setEnabled(false);
    }
    else {
      for (String extension : extensions) {
        myExtension.addItem(extension);
      }
    }

    if (defaultFileName != null) myFileName.setText(defaultFileName);
    myFileName.getDocument().addDocumentListener(new DocumentAdapter() {
      protected void textChanged(final DocumentEvent e) {
        myFileName.setForeground(isValidFileName(myFileName.getText()) ? SimpleTextAttributes.REGULAR_ATTRIBUTES.getFgColor() :SimpleTextAttributes.ERROR_ATTRIBUTES.getFgColor());

        updateOkButton();
      }
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

  private JTextField myFunctionNameField;

  protected ErlangExtractFunctionDialog(@NotNull Project project, @NotNull String functionName, @NotNull List<ErlangNamedElement> inParams) {
    super(project);
    myInParams = inParams;
    myFunctionNameField.getDocument().addDocumentListener(new DocumentAdapter() {
      @Override
      protected void textChanged(DocumentEvent e) {
        mySignatureLabel.setText(createSignature());
      }
    });
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

  private boolean myRebarPathValid;

  public RebarConfigurationForm() {
    myRebarPathSelector.addBrowseFolderListener("Select Rebar executable", "", null,
      FileChooserDescriptorFactory.createSingleLocalFileDescriptor());
    myRebarPathSelector.getTextField().getDocument().addDocumentListener(new DocumentAdapter() {
      @Override
      protected void textChanged(DocumentEvent documentEvent) {
        myRebarPathValid = validateRebarPath();
      }
    });
View Full Code Here

Examples of com.intellij.ui.DocumentAdapter

  private final ErlangFacetConfiguration myConfiguration;
  private boolean myIsModified = false;

  public ErlangFacetEditor(@SuppressWarnings("UnusedParameters") FacetEditorContext editorContext, ErlangFacetConfiguration configuration) {
    myConfiguration = configuration;
    myParseTransformsEditorField.getDocument().addDocumentListener(new DocumentAdapter() {
      @Override
      protected void textChanged(DocumentEvent e) {
        myIsModified = true;
      }
    });
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.