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

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

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

origin: GoogleCloudPlatform/google-cloud-intellij

private void updateStagedArtifactNameEmptyText() {
 File artifact = deploymentSource.getFile();
 if (artifact == null) {
  stagedArtifactNameTextField.getEmptyText().clear();
  return;
 }
 AppEngineFlexibleDeploymentArtifactType artifactType =
   AppEngineFlexibleDeploymentArtifactType.typeForPath(artifact.toPath());
 if (artifactType.equals(UNKNOWN)) {
  stagedArtifactNameTextField.getEmptyText().clear();
 } else {
  stagedArtifactNameTextField.getEmptyText().setText(artifact.getName());
 }
}
origin: GoogleCloudPlatform/google-cloud-intellij

public RepositorySelector(@Nullable CloudProject cloudProject, boolean canCreateRepository) {
 this.cloudProject = cloudProject;
 this.canCreateRepository = canCreateRepository;
 getTextField()
   .getEmptyText()
   .setText(CloudReposMessageBundle.message("cloud.repository.selector.placeholder.text"));
}
origin: uwolfer/gerrit-intellij-plugin

public LoginPanel(final LoginDialog dialog) {
  hostTextField.getEmptyText().setText("https://review.example.org");
  hostTextField.addFocusListener(new FocusAdapter() {
    @Override
    public void focusLost(FocusEvent e) {
      SettingsPanel.fixUrl(hostTextField);
    }
  });
  DocumentListener listener = new DocumentAdapter() {
    @Override
    protected void textChanged(DocumentEvent e) {
      dialog.clearErrors();
    }
  };
  loginTextField.getDocument().addDocumentListener(listener);
  passwordField.getDocument().addDocumentListener(listener);
  gerritLoginInfoTestField.setText(LOGIN_CREDENTIALS_INFO);
  gerritLoginInfoTestField.setMargin(new Insets(5, 0, 0, 0));
  gerritLoginInfoTestField.setBackground(UIUtil.TRANSPARENT_COLOR);
}
origin: SonarSource/sonarlint-intellij

projectKeyTextField.getEmptyText().setText("Input project key or search one");
origin: uwolfer/gerrit-intellij-plugin

public SettingsPanel() {
  hostTextField.getEmptyText().setText("https://review.example.org");
origin: SonarSource/sonarlint-intellij

 private void createUIComponents() {
  sonarcloudIcon = new JLabel(SonarLintIcons.icon("SonarCloud"));
  sonarqubeIcon = new JLabel(SonarLintIcons.icon("SonarQube"));
  sonarcloudText = SwingHelper.createHtmlViewer(false, null, null, null);
  sonarqubeText = SwingHelper.createHtmlViewer(false, null, null, null);

  JBTextField text = new JBTextField();
  text.getEmptyText().setText("Example: http://localhost:9000");
  urlText = text;

  nameField = new JBTextField();
  nameField.setDocument(new LengthRestrictedDocument(NAME_MAX_LENGTH));
 }
}
origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void fireStateChange_doesSetStagedArtifactNameEmptyText() {
 when(deploymentSource.getFile()).thenReturn(warArtifact);
 String beforeText = editor.getStagedArtifactNameTextField().getEmptyText().getText();
 editor.fireStateChange();
 String afterText = editor.getStagedArtifactNameTextField().getEmptyText().getText();
 assertThat(beforeText).isEmpty();
 assertThat(afterText).isEqualTo(warArtifact.getName());
}
origin: GoogleCloudPlatform/google-cloud-intellij

public UserSelector() {
 getTextField().setCursor(Cursor.getDefaultCursor());
 getTextField()
   .getEmptyText()
   .setText(GoogleCloudCoreMessageBundle.message("select.user.emptytext"));
}
origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void updateArtifactField_toUnknown_doesClearStagedArtifactNameEmptyText() {
 // Starts the field with non-empty text so we can verify it was cleared.
 editor.getStagedArtifactNameTextField().getEmptyText().setText("some text");
 editor.setDeploymentSource(userSpecifiedPathDeploymentSource);
 editor.getArchiveSelector().setText(unknownArtifact.toString());
 editor.fireStateChange();
 assertThat(editor.getStagedArtifactNameTextField().getEmptyText().getText()).isEmpty();
}
origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void updateArtifactField_toWar_doesSetStagedArtifactNameEmptyText() {
 editor.setDeploymentSource(userSpecifiedPathDeploymentSource);
 editor.getArchiveSelector().setText(warArtifact.toString());
 editor.fireStateChange();
 assertThat(editor.getStagedArtifactNameTextField().getEmptyText().getText())
   .isEqualTo(warArtifact.getName());
}
origin: GoogleCloudPlatform/google-cloud-intellij

.getEmptyText()
.setText(AppEngineMessageBundle.message("appengine.flex.version.placeholder.text"));
origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void updateArtifactField_toJar_doesSetStagedArtifactNameEmptyText() {
 editor.setDeploymentSource(userSpecifiedPathDeploymentSource);
 editor.getArchiveSelector().setText(jarArtifact.toString());
 editor.fireStateChange();
 assertThat(editor.getStagedArtifactNameTextField().getEmptyText().getText())
   .isEqualTo(jarArtifact.getName());
}
origin: GoogleCloudPlatform/google-cloud-intellij

 @Test
 public void updateArtifactField_withEmptyArtifact_doesClearStagedArtifactNameEmptyText() {
  // Sets up the artifact field with some text so a change is triggered when clearing it below.
  editor.getArchiveSelector().setText("some/artifact.war");

  editor.setDeploymentSource(userSpecifiedPathDeploymentSource);
  editor.getArchiveSelector().setText(null);
  editor.fireStateChange();

  assertThat(editor.getStagedArtifactNameTextField().getEmptyText().getText()).isEmpty();
 }
}
com.intellij.ui.componentsJBTextFieldgetEmptyText

Popular methods of JBTextField

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

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Notification (javax.management)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Vim plugins
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