Correcting the cause of some problems is trivial, so the rule author may provide a "Quickfix" routine.
修正某些问题的诱因是琐碎的,所以规则的作者可能会提供一个“快速修复”程序。
If you omit this value, the analysis framework will automatically set the QuickFix label to "QuickFix."
如果您省略这个值,这个分析框架将自动设置这个QuickFix标签来“QuickFix。”
Strictly speaking, this is required only to implement a quickfix method that receives the analysis result being fixed.
严格地说,这样只需要执行一个接受被确定分析结果的quickfix方法。
The only time that you actually need to specify a label is in cases where you have more than one QuickFix for the rule.
唯一您需要指定一个标签的实际时间是为了以防万一您的一个规则有多个QuickFix的时间。
If the Quickfix menu option is enabled, selecting it will walk you through a process to correct the problem (Figure 19).
如果快速修补菜单选项有效的话,那么如果您选中它,就将启动一个修正问题的处理过程(请参见图19所示)。
Oh, you added a method to an interface but forgot to rev the version number, API tools can help you with a nice quickfix!
比如,你给一个接口增加了一个方法但却忘记增加版本号,API工具能帮助你又快又好地解决这个问题!
If you have syntax errors, it won't be able to interpret your code correctly, and won't be able to provide you with a QuickFix.
如果有语法错误,那么它就无法正确解释您的代码,从而无法为您提供QuickFix。
If violations of your rule can be resolved in more than one way, you can place more than one quickfix extension in the rule definition.
如果您的规则违背可以用更多的方法来解决,那么您可以在这个规则定义中设置更多的quickfix扩展。
The "x", of course, means there is a problem, but the light bulb means Eclipse has a QuickFix: one or more Suggestions for solving the problem.
“x”当然意味着存在问题,但是灯泡表示Eclipse能提供QuickFix:即解决此问题的一条或多条建议。
Next, use Eclipse's QuickFix (by clicking greet and pressing Ctrl-1, for example) to generate a method stub for greet , and add code to the stub as follows.
接下来,用Eclipse的quickfix为greet生成一个方法存根,然后为存根加入代码。
Next, use Eclipse's QuickFix (by clicking on greet and pressing Ctrl-1, for example) to generate a method stub for greet , and add code to the stub as follows.
接下来,使用Eclipse的QuickFix(比如,通过单击greet并按Ctrl - 1)为greet生成一个方法存根,并将代码添加到该存根,如下所示。
Next, use Eclipse's QuickFix (by clicking on greet and pressing Ctrl-1, for example) to generate a method stub for greet , and add code to the stub as follows.
接下来,使用Eclipse的QuickFix(比如,通过单击greet并按Ctrl - 1)为greet生成一个方法存根,并将代码添加到该存根,如下所示。
应用推荐