// Path: org.eclipse.ec4e/src/main/java/org/eclipse/ec4e/utils/EditorUtils.java
// public class EditorUtils {
// 
// 	public static boolean isEditorConfigFile(ITextEditor textEditor) {
// 		IFile configFile = EditorUtils.getFile(textEditor);
// 		return isEditorConfigFile(configFile);
// 	}
// 
// 	public static boolean isEditorConfigFile(IFile configFile) {
// 		return configFile != null && EditorConfigConstants.EDITORCONFIG.equals(configFile.getName());
// 	}
// 
// 	public static IFile getFile(ITextEditor textEditor) {
// 		IEditorInput input = textEditor.getEditorInput();
// 		if (input instanceof IFileEditorInput) {
// 			return ((IFileEditorInput) input).getFile();
// 		}
// 		return null;
// 	}
// }


import org.eclipse.codelens.editors.DefaultCodeLensController;
import org.eclipse.codelens.editors.ICodeLensController;
import org.eclipse.codelens.editors.ICodeLensControllerFactory;
import org.eclipse.ec4e.utils.EditorUtils;
import org.eclipse.ui.texteditor.ITextEditor;

package org.eclipse.ec4e.codelens;


public class EditorConfigCodeLensControllerProvider implements ICodeLensControllerFactory {

	@Override
	public boolean isRelevant(ITextEditor textEditor) {

// Path: org.eclipse.ec4e/src/main/java/org/eclipse/ec4e/utils/EditorUtils.java
// public class EditorUtils {
// 
// 	public static boolean isEditorConfigFile(ITextEditor textEditor) {
// 		IFile configFile = EditorUtils.getFile(textEditor);
// 		return isEditorConfigFile(configFile);
// 	}
// 
// 	public static boolean isEditorConfigFile(IFile configFile) {
// 		return configFile != null && EditorConfigConstants.EDITORCONFIG.equals(configFile.getName());
// 	}
// 
// 	public static IFile getFile(ITextEditor textEditor) {
// 		IEditorInput input = textEditor.getEditorInput();
// 		if (input instanceof IFileEditorInput) {
// 			return ((IFileEditorInput) input).getFile();
// 		}
// 		return null;
// 	}
// }


// Path: org.eclipse.ec4e.codelens/src/main/java/org/eclipse/ec4e/codelens/EditorConfigCodeLensControllerProvider.java
import org.eclipse.codelens.editors.DefaultCodeLensController;
import org.eclipse.codelens.editors.ICodeLensController;
import org.eclipse.codelens.editors.ICodeLensControllerFactory;
import org.eclipse.ec4e.utils.EditorUtils;
import org.eclipse.ui.texteditor.ITextEditor;

package org.eclipse.ec4e.codelens;


public class EditorConfigCodeLensControllerProvider implements ICodeLensControllerFactory {

	@Override
	public boolean isRelevant(ITextEditor textEditor) {

		return EditorUtils.isEditorConfigFile(textEditor);
