コード例 #1
0
 private boolean promptToFixMethod(
     UIExecutionContext context, String methodName, String propertyName) {
   UIPrompt prompt = context.getPrompt();
   return prompt.promptBoolean(
       "Method '"
           + methodName
           + "'already exists for property"
           + propertyName
           + " . Method is not following the selected pattern."
           + " Should it be fixed?");
 }
コード例 #2
0
ファイル: WaitCommand.java プロジェクト: higoramp/core
 @Command(value = "wait", help = "Wait for ENTER.", enabled = NonGUIEnabledPredicate.class)
 public void wait(UIPrompt prompt) {
   prompt.prompt("Press <ENTER> to continue...");
 }