Пример #1
0
 public void checkInvariants() {
   Validator.checkString(
       mainClass, Validator.MAX_PATH, "mainClass", Messages.getString("ClassPath.mainClass"));
   Validator.checkOptStrings(
       paths,
       Validator.MAX_PATH,
       Validator.MAX_BIG_STR,
       "paths",
       Messages.getString("ClassPath.path"));
 }
Пример #2
0
 public void actionPerformed(ActionEvent e) {
   final int pos = _jvmOptionsTextArea.getCaretPosition();
   final String var = getText().replaceAll("\"", "").replaceAll("%", "");
   if (Validator.isEmpty(var)) {
     signalViolation(Messages.getString("specifyVar"));
     return;
   }
   add(var, pos);
   clear();
 }