Argus Codewatch Quick fix

net.sourceforge.arguscodewatch.quickFix

0.0.1

This extension point allows to add a quick fix to a previously defined code check.

<!ELEMENT extension (quickFix)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>

Allows for quick fixes to Argus code checks



<!ELEMENT quickFix EMPTY>

<!ATTLIST quickFix

id          CDATA #REQUIRED

codeCheckId CDATA #REQUIRED

description CDATA #IMPLIED

class       CDATA #REQUIRED>

This element allows you to define new quickFixes.



<extension point=

"net.sourceforge.arguscodewatch.quickFix"

>

<quickFix class=

"net.sourceforge.arguscodewatch.QuickFixBlock"

codeCheckId=

"missingBraces"

id=

"missingBraceFix"

/>

</extension>

The class must be a subclass of net.sourceforge.arguscodewatch.CodewatchCompletionProposal. This abstract class implements IJavaCompletionProposal, and provides a stub implementation for most methods.

The class must at least implement the methods doBuildReplacement() and getRelevance(), and may override getSelection(), getAdditionalProposalInfo() and getDisplayString().

doBuildReplacement() can return its result in two ways: either by returning a TextEdit instance, or by returning null and setting a (non-null) replacement String via setReplacement(). In the latter case, clients must also provide valid range settings for the replacement. If both of these requirements are not met, no substitution is performed.

All quickFixes in the original plug-in use this extension point.