Search in sources :

Example 1 with RegexFormatter

use of io.github.satr.idea.plugin.connector.la.ui.components.RegexFormatter in project intellij-idea-plugin-connector-for-aws-lambda by satr.

the class ConnectorViewFactory method getRegexFormatterFactory.

private JFormattedTextField.AbstractFormatterFactory getRegexFormatterFactory(String pattern) {
    RegExFormatter formatter = new RegExFormatter();
    formatter.setAllowsInvalid(false);
    return new DefaultFormatterFactory(new RegexFormatter(pattern));
}
Also used : RegExFormatter(com.intellij.codeInspection.ui.RegExFormatter) RegexFormatter(io.github.satr.idea.plugin.connector.la.ui.components.RegexFormatter) DefaultFormatterFactory(javax.swing.text.DefaultFormatterFactory)

Aggregations

RegExFormatter (com.intellij.codeInspection.ui.RegExFormatter)1 RegexFormatter (io.github.satr.idea.plugin.connector.la.ui.components.RegexFormatter)1 DefaultFormatterFactory (javax.swing.text.DefaultFormatterFactory)1