Java Code Examples for com.intellij.ui.TextAccessor#getText()
The following examples show how to use
com.intellij.ui.TextAccessor#getText() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HaskellToolsConfigurable.java From intellij-haskforce with Apache License 2.0 | 4 votes |
public void validateExecutable(String name, TextAccessor field) throws ConfigurationException { if (new File(field.getText()).canExecute()) return; throw new ConfigurationException("Not a valid '" + name + "' executable: '" + field.getText() + "'"); }
Example 2
Source File: HaskellCompilerConfigurable.java From intellij-haskforce with Apache License 2.0 | 4 votes |
private void validateExecutable(String name, TextAccessor field) throws ConfigurationException { if (new File(field.getText()).canExecute() || new File(myProject.getBasePath(), field.getText()).exists()) return; throw new ConfigurationException("Not a valid '" + name + "' executable: '" + field.getText() + "'"); }
Example 3
Source File: HaskellCompilerConfigurable.java From intellij-haskforce with Apache License 2.0 | 4 votes |
private void validateFileExists(String name, TextAccessor field) throws ConfigurationException { if (new File(field.getText()).exists() || new File(myProject.getBasePath(), field.getText()).exists()) return; throw new ConfigurationException("'" + name + "' file does not exist: '" + field.getText() + "'"); }
Example 4
Source File: CommonProgramParametersPanel.java From consulo with Apache License 2.0 | 4 votes |
@Nullable protected String fromTextField(@Nonnull TextAccessor textAccessor, @Nonnull CommonProgramRunConfigurationParameters configuration) { return textAccessor.getText(); }