blob: 6eda06d190d5cc8106157aff59e2d83a58527306 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2006 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.dtd.core.internal.text;
import org.eclipse.wst.dtd.core.text.IDTDPartitions;
import org.eclipse.wst.sse.core.internal.text.rules.StructuredTextPartitioner;
import org.eclipse.wst.sse.core.text.IStructuredPartitions;
public class StructuredTextPartitionerForDTD extends StructuredTextPartitioner {
public StructuredTextPartitionerForDTD() {
super();
}
/*
* (non-Javadoc)
*
* @see org.eclipse.wst.sse.core.text.rules.StructuredTextPartitioner#getDefault()
*/
public String getDefaultPartitionType() {
return IDTDPartitions.DTD_DEFAULT;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.wst.sse.core.text.rules.StructuredTextPartitioner#initLegalContentTypes()
*/
protected void initLegalContentTypes() {
fSupportedTypes = new String[]{IDTDPartitions.DTD_DEFAULT, IStructuredPartitions.UNKNOWN_PARTITION};
}
}