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.
Copyright (C) 2005, TOP Informatie Systemen bv and others
All source is made available under the terms of the Eclipse Public License v1.0, a copy of which is available at http://www.eclipse.org/legal/epl-v10.html