Package com.intellij.openapi.ui

Examples of com.intellij.openapi.ui.InputValidatorEx


    }
  }

  public void openNewScratchDialog(String suggestedScratchName, UserDataHolder userDataHolder) {
    String message = "Scratch name (you can use '&' for mnemonics):";
    String scratchName = Messages.showInputDialog(message, "New Scratch", NO_ICON, suggestedScratchName, new InputValidatorEx() {
      @Override public boolean checkInput(String scratchName) {
        return ScratchComponent.mrScratchManager().checkIfUserCanCreateScratchWithName(scratchName).isYes;
      }

      @Nullable @Override public String getErrorText(String scratchName) {
View Full Code Here


      addKind("OTP application resource file", ErlangIcons.OTP_APP_RESOURCE, "Erlang Application Resource File").
      addKind("OTP supervisor", ErlangIcons.OTP_SUPERVISOR, "Erlang Supervisor").
      addKind("OTP gen_server", ErlangIcons.OTP_GEN_SERVER, "Erlang Gen Server").
      addKind("OTP gen_fsm", ErlangIcons.OTP_GEN_FSM, "Erlang Gen FSM").
      addKind("OTP gen_event", ErlangIcons.OTP_GEN_EVENT, "Erlang Gen Event").
      setValidator(new InputValidatorEx() {
        @Override
        public boolean checkInput(String inputString) {
          return true;
        }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.ui.InputValidatorEx

Copyright © 2018 www.massapicom. 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.