什么是“设置输入处理程序”新新新新旗新新新新新新新旗新新旗新新旗新新200新新 [英] What does "Set an Input handler" mean in Eclipse?

查看:100
本文介绍了什么是“设置输入处理程序”新新新新旗新新新新新新新旗新新旗新新旗新新200新新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,当配置外部工具(Run-> External Tools-> External Tools Configurations ...)时,特别是Ant Build,在Main选项卡下有一个复选框,标记为Set an Input Handler。这是默认情况下检查的。

In Eclipse, when configuring an external tool (Run->External Tools->External Tools Configurations...), specifically an Ant Build, under the Main tab there is a checkbox labeled "Set an Input Handler". This is checked by default.

这是做什么的?你什么时候要取消选中它的好处是什么?

What does this do? When would you want to uncheck it and what would the benefits be?

推荐答案

我相信这是当你使用 输入 Ant任务 ,可能需要 InputHandler

I believe this is when you are using the input Ant Task, which can need an InputHandler.


当一个任务想提示用户输入时,不要简单地从控制台读取输入,因为这样就不可能将Ant嵌入到IDE 中。

而是要求执行 org.apache。 tools.ant.input.InputHandler 界面,提示用户并将用户输入转回任务。

When a task wants to prompt a user for input, it doesn't simply read the input from the console as this would make it impossible to embed Ant in an IDE.
Instead it asks an implementation of the org.apache.tools.ant.input.InputHandler interface to prompt the user and hand the user input back to the task.

这篇关于什么是“设置输入处理程序”新新新新旗新新新新新新新旗新新旗新新旗新新200新新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆