TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.analysis.codereview.cpp.quickfix.declaration
Class RuleDeclarationMultipleDeclarationsQuickFix

java.lang.Object
  extended by org.eclipse.tptp.platform.analysis.core.quickfix.AbstractAnalysisQuickFix
      extended by org.eclipse.tptp.platform.analysis.codereview.cpp.quickfix.CppCodeReviewQuickFix
          extended by org.eclipse.tptp.platform.analysis.codereview.cpp.quickfix.declaration.RuleDeclarationMultipleDeclarationsQuickFix
All Implemented Interfaces:
org.eclipse.core.runtime.IExecutableExtension, IAnalysisQuickFix

public class RuleDeclarationMultipleDeclarationsQuickFix
extends CppCodeReviewQuickFix

This class is a first attempt at quickfix support for C++ Analysis rules. Currently, it is waiting for CDT refactoring support, for more info, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=75364


Field Summary
 
Fields inherited from class org.eclipse.tptp.platform.analysis.codereview.cpp.quickfix.CppCodeReviewQuickFix
EMPTY_MONITOR, TEXT_CHANGE, TEXT_CHANGE_UNDO
 
Constructor Summary
RuleDeclarationMultipleDeclarationsQuickFix()
           
 
Method Summary
 org.eclipse.text.edits.TextEdit fixCodeReviewResult(org.eclipse.cdt.core.dom.ast.IASTNode node, org.eclipse.jface.text.IDocument docToChange)
          Perform the actual quickfix
 
Methods inherited from class org.eclipse.tptp.platform.analysis.codereview.cpp.quickfix.CppCodeReviewQuickFix
getTextEdit, getWorkingCompilationUnit, quickfix
 
Methods inherited from class org.eclipse.tptp.platform.analysis.core.quickfix.AbstractAnalysisQuickFix
getId, getLabel, setId, setInitializationData, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleDeclarationMultipleDeclarationsQuickFix

public RuleDeclarationMultipleDeclarationsQuickFix()
Method Detail

fixCodeReviewResult

public org.eclipse.text.edits.TextEdit fixCodeReviewResult(org.eclipse.cdt.core.dom.ast.IASTNode node,
                                                           org.eclipse.jface.text.IDocument docToChange)
Description copied from class: CppCodeReviewQuickFix
Perform the actual quickfix

Specified by:
fixCodeReviewResult in class CppCodeReviewQuickFix
Returns:
true if the quickfix operated successfully; return false otherwise

TPTP 4.5.0 Platform Project
Public API Specification