mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
Minor code cleanup.
This commit is contained in:
parent
b25c644007
commit
a3758a0664
4 changed files with 6 additions and 5 deletions
|
@ -24,7 +24,7 @@ import org.eclipse.cdt.codan.core.model.IProblemLocation;
|
||||||
import org.eclipse.cdt.codan.ui.cxx.externaltool.AbstractCxxExternalToolBasedChecker;
|
import org.eclipse.cdt.codan.ui.cxx.externaltool.AbstractCxxExternalToolBasedChecker;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checker that invokes <a href="http://cppcheck.sourceforge.net/">Cppcheck</a> when a C/C++ is
|
* Checker that invokes <a href="http://cppcheck.sourceforge.net/">Cppcheck</a> when a C/C++ file is
|
||||||
* saved.
|
* saved.
|
||||||
*
|
*
|
||||||
* @author alruiz@google.com (Alex Ruiz)
|
* @author alruiz@google.com (Alex Ruiz)
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Alex Ruiz - initial API and implementation
|
* Alex Ruiz - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.codan.ui.cxx.externaltool;
|
package org.eclipse.cdt.codan.internal.ui.cxx.externaltool;
|
||||||
|
|
||||||
import static org.eclipse.cdt.codan.core.cxx.util.FileTypes.isCppFile;
|
import static org.eclipse.cdt.codan.core.cxx.util.FileTypes.isCppFile;
|
||||||
import static org.eclipse.cdt.codan.core.cxx.util.FileTypes.isHeaderFile;
|
import static org.eclipse.cdt.codan.core.cxx.util.FileTypes.isHeaderFile;
|
||||||
import static org.eclipse.cdt.codan.ui.CodanEditorUtility.isResourceOpenInEditor;
|
import static org.eclipse.cdt.codan.ui.CodanEditorUtility.isResourceOpenInEditor;
|
||||||
import static org.eclipse.cdt.codan.ui.cxx.externaltool.CEditors.activeCEditor;
|
import static org.eclipse.cdt.codan.ui.cxx.util.CEditors.activeCEditor;
|
||||||
|
|
||||||
import org.eclipse.cdt.codan.core.externaltool.ISupportedResourceVerifier;
|
import org.eclipse.cdt.codan.core.externaltool.ISupportedResourceVerifier;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
|
@ -24,7 +24,7 @@ import org.eclipse.ui.editors.text.TextEditor;
|
||||||
*
|
*
|
||||||
* @author alruiz@google.com (Alex Ruiz)
|
* @author alruiz@google.com (Alex Ruiz)
|
||||||
*/
|
*/
|
||||||
class CxxSupportedResourceVerifier implements ISupportedResourceVerifier {
|
public class CxxSupportedResourceVerifier implements ISupportedResourceVerifier {
|
||||||
/**
|
/**
|
||||||
* Indicates whether the external tool is capable of processing the given
|
* Indicates whether the external tool is capable of processing the given
|
||||||
* <code>{@link IResource}</code>.
|
* <code>{@link IResource}</code>.
|
|
@ -17,6 +17,7 @@ import org.eclipse.cdt.codan.core.externaltool.ISupportedResourceVerifier;
|
||||||
import org.eclipse.cdt.codan.core.externaltool.InvocationParametersProvider;
|
import org.eclipse.cdt.codan.core.externaltool.InvocationParametersProvider;
|
||||||
import org.eclipse.cdt.codan.core.externaltool.SpaceDelimitedArgsSeparator;
|
import org.eclipse.cdt.codan.core.externaltool.SpaceDelimitedArgsSeparator;
|
||||||
import org.eclipse.cdt.codan.core.model.AbstractExternalToolBasedChecker;
|
import org.eclipse.cdt.codan.core.model.AbstractExternalToolBasedChecker;
|
||||||
|
import org.eclipse.cdt.codan.internal.ui.cxx.externaltool.CxxSupportedResourceVerifier;
|
||||||
import org.eclipse.cdt.codan.ui.externaltool.CommandLauncher;
|
import org.eclipse.cdt.codan.ui.externaltool.CommandLauncher;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Alex Ruiz - initial API and implementation
|
* Alex Ruiz - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.codan.ui.cxx.externaltool;
|
package org.eclipse.cdt.codan.ui.cxx.util;
|
||||||
|
|
||||||
import org.eclipse.cdt.internal.ui.editor.CEditor;
|
import org.eclipse.cdt.internal.ui.editor.CEditor;
|
||||||
import org.eclipse.ui.IEditorPart;
|
import org.eclipse.ui.IEditorPart;
|
Loading…
Add table
Reference in a new issue