blob: d97c9b9f8d8520e1bd21d060a570c0365679f4c2 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Jens Lukowski/Innoopract - initial renaming/restructuring
*
*******************************************************************************/
package org.eclipse.wst.sse.ui.style;
import java.util.Collection;
import org.eclipse.jface.text.ITypedRegion;
/**
* This class is used by default, if no attribute provider is found for a
* certain node type. Its probably an error in a factory somewhere if an
* adapter is not found, but this class allows the logic to proceed basically
* simply providing default colored syntax highlighting.
*/
public class LineStyleProviderForNoOp extends AbstractLineStyleProvider implements LineStyleProvider {
/**
* @see com.ibm.sed.structured.style.LineStyleProvider#prepareRegions(org.eclipse.jface.text.ITypedRegion,
* int, int, java.util.Collection)
*/
public boolean prepareRegions(ITypedRegion currentRegion, int start, int length, Collection holdResults) {
// add nothing
return true;
}
}