Tabnine Logo
JBTextField.getText
Code IndexAdd Tabnine to your IDE (free)

How to use
getText
method
in
com.intellij.ui.components.JBTextField

Best Java code snippets using com.intellij.ui.components.JBTextField.getText (Showing top 20 results out of 315)

origin: go-lang-plugin-org/go-lang-idea-plugin

@Override
protected void applyEditorTo(@NotNull GoAppEngineRunConfiguration configuration) throws ConfigurationException {
 configuration.setHost(StringUtil.nullize(myHostField.getText().trim()));
 configuration.setPort(StringUtil.nullize(myPortField.getText().trim()));
 configuration.setAdminPort(StringUtil.nullize(myAdminPortField.getText().trim()));
 configuration.setConfigFile(StringUtil.nullize(myConfigFileField.getText().trim()));
 myCommonSettingsPanel.applyEditorTo(configuration);
}
origin: hsz/idea-gitignore

  /**
   * Creates new user template.
   */
  private void performCreateAction() {
    IgnoreSettings.UserTemplate template =
        new IgnoreSettings.UserTemplate(name.getText(), previewDocument.getText());
    settings.getUserTemplates().add(template);

    Notifications.Bus.notify(new Notification(
        IgnoreBundle.PLUGIN_ID,
        IgnoreBundle.message("dialog.userTemplate.added"),
        IgnoreBundle.message("dialog.userTemplate.added.description", template.getName()),
        NotificationType.INFORMATION
    ), project);

    super.doOKAction();
  }
}
origin: GoogleCloudPlatform/google-cloud-intellij

public String getText() {
 return textField.getText();
}
origin: SonarSource/sonarlint-intellij

@CheckForNull
public String getSelectedProjectKey() {
 return projectKeyTextField.getText();
}
origin: liias/monkey

 @Override
 public Float getValue() {
  return Float.valueOf(component.getText());
 }
}
origin: uwolfer/gerrit-intellij-plugin

  public JComponent getPreferrableFocusComponent() {
    return hostTextField.getText().isEmpty() ? hostTextField : loginTextField;
  }
}
origin: uwolfer/gerrit-intellij-plugin

public String getHost() {
  return hostTextField.getText().trim();
}
origin: uwolfer/gerrit-intellij-plugin

public String getHost() {
  return hostTextField.getText().trim();
}
origin: neueda/jetbrains-plugin-graph-database-support

private void extractData() {
  data = new Data();
  data.dataSourceName = dataSourceNameField.getText();
  data.host = hostField.getText();
  data.port = portField.getText();
  data.user = userField.getText();
  data.password = String.valueOf(passwordField.getPassword()); // TODO: use password API
}
origin: antlr/intellij-plugin-v4

@Override
protected void doOKAction() {
  super.doOKAction();
  ruleName = nameField.getText();
}
origin: SonarSource/sonarlint-intellij

@CheckForNull
public ExclusionItem getExclusion() {
 if (directoryRadioButton.isSelected()) {
  return new ExclusionItem(DIRECTORY, relative(directoryTextField.getText()));
 } else if (fileRadioButton.isSelected()) {
  return new ExclusionItem(FILE, relative(fileTextField.getText()));
 } else {
  return new ExclusionItem(GLOB, relative(globTextField.getText()));
 }
}
origin: SonarSource/sonarlint-intellij

 @Override public void actionPerformed(ActionEvent e) {
  Map<String, RemoteProject> map = downloadProjectList();
  if (map != null) {
   SearchProjectKeyDialog dialog = new SearchProjectKeyDialog(rootPanel, projectKeyTextField.getText(), map);
   if (dialog.showAndGet()) {
    projectKeyTextField.setText(dialog.getSelectedProjectKey() != null ? dialog.getSelectedProjectKey() : "");
   }
  }
 }
});
origin: GoogleCloudPlatform/google-cloud-intellij

@Override
protected void applyEditorTo(@NotNull AppEngineDeploymentConfiguration configuration) {
 commonConfig.applyEditorTo(configuration);
 commonConfig.setDeploymentProjectAndVersion(deploymentSource);
 if (appYamlCombobox.getSelectedItem() != null) {
  configuration.setModuleName(
    ((AppEngineFlexibleFacet) appYamlCombobox.getSelectedItem()).getModule().getName());
 } else {
  configuration.setModuleName(null);
 }
 configuration.setEnvironment(AppEngineEnvironment.APP_ENGINE_FLEX);
 configuration.setUserSpecifiedArtifactPath(archiveSelector.getText());
 configuration.setStagedArtifactName(stagedArtifactNameTextField.getText());
 updateSelectors();
}
origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void resetEditorFrom_withStagedArtifactName_doesSetStagedArtifactName() {
 String stagedArtifactName = "some-artifact.war";
 configuration.setStagedArtifactName(stagedArtifactName);
 editor.resetEditorFrom(configuration);
 assertThat(editor.getStagedArtifactNameTextField().getText()).isEqualTo(stagedArtifactName);
}
origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void resetEditorFrom_withStagedArtifactNameLegacyBit_andJarArtifact_doesSetName() {
 when(deploymentSource.getFile()).thenReturn(jarArtifact);
 configuration.setStagedArtifactNameLegacy(true);
 editor.resetEditorFrom(configuration);
 assertThat(editor.getStagedArtifactNameTextField().getText()).isEqualTo("target.jar");
 assertThat(configuration.getStagedArtifactName()).isEqualTo("target.jar");
 assertThat(configuration.isStagedArtifactNameLegacy()).isFalse();
}
origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void resetEditorFrom_withStagedArtifactNameLegacyBit_andWarArtifact_doesSetName() {
 when(deploymentSource.getFile()).thenReturn(warArtifact);
 configuration.setStagedArtifactNameLegacy(true);
 editor.resetEditorFrom(configuration);
 assertThat(editor.getStagedArtifactNameTextField().getText()).isEqualTo("target.war");
 assertThat(configuration.getStagedArtifactName()).isEqualTo("target.war");
 assertThat(configuration.isStagedArtifactNameLegacy()).isFalse();
}
origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void resetEditorFrom_withStagedArtifactNameLegacyBit_andUnknownArtifact_doesSetName() {
 when(deploymentSource.getFile()).thenReturn(unknownArtifact);
 configuration.setStagedArtifactNameLegacy(true);
 editor.resetEditorFrom(configuration);
 assertThat(editor.getStagedArtifactNameTextField().getText()).isEqualTo("target");
 assertThat(configuration.getStagedArtifactName()).isEqualTo("target");
 assertThat(configuration.isStagedArtifactNameLegacy()).isFalse();
}
origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void resetEditorFrom_withStagedArtifactNameLegacyBit_andNoArtifact_doesNothing() {
 configuration.setStagedArtifactNameLegacy(true);
 editor.resetEditorFrom(configuration);
 assertThat(editor.getStagedArtifactNameTextField().getText()).isEmpty();
 assertThat(configuration.getStagedArtifactName()).isNull();
 assertThat(configuration.isStagedArtifactNameLegacy()).isTrue();
}
origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void resetEditorFrom_withDefaultConfiguration_doesSetDefaults() {
 editor.resetEditorFrom(configuration);
 assertThat(editor.getCommonConfig().getVersionIdField().getText()).isEmpty();
 assertThat(editor.getCommonConfig().getPromoteCheckbox().isSelected()).isFalse();
 assertThat(editor.getCommonConfig().getProjectSelector().getSelectedProject()).isNull();
 assertThat(editor.getCommonConfig().getStopPreviousVersionCheckbox().isSelected()).isFalse();
 assertThat(editor.getCommonConfig().getDeployAllConfigsCheckbox().isSelected()).isFalse();
 assertThat(editor.getCommonConfig().getEnvironmentLabel().getText()).isEmpty();
}
origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void resetEditorFrom_doesSetVersion() {
 String version = "some-version;";
 configuration.setVersion(version);
 editor.resetEditorFrom(configuration);
 assertThat(editor.getCommonConfig().getVersionIdField().getText()).isEqualTo(version);
}
com.intellij.ui.componentsJBTextFieldgetText

Popular methods of JBTextField

  • setText
  • getEmptyText
  • <init>
  • addFocusListener
  • getDocument
  • selectAll
  • setEnabled
  • addMouseListener
  • getSize
  • getWidth
  • grabFocus
  • isFocusOwner
  • grabFocus,
  • isFocusOwner,
  • setBorder,
  • setCursor,
  • setEditable,
  • setPreferredSize

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Kernel (java.awt.image)
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now