blob: 5790f76affaca270fa0ba55a872c884e2797e06a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 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
*******************************************************************************/
package org.eclipse.wst.html.ui.internal.search;
import java.util.ResourceBundle;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.wst.html.core.internal.text.rules.StructuredTextPartitionerForHTML;
import org.eclipse.wst.sse.ui.internal.search.BasicFindOccurrencesAction;
import org.eclipse.wst.xml.core.parser.XMLRegionContext;
import org.eclipse.wst.xml.core.text.rules.StructuredTextPartitionerForXML;
/**
* Configures a BasicFindOccurrencesAction with HTML partitions and regions
*
* @author pavery
*/
public class HTMLFindOccurrencesAction extends BasicFindOccurrencesAction {
public HTMLFindOccurrencesAction(ResourceBundle bundle, String prefix, ITextEditor editor) {
super(bundle, prefix, editor);
}
/**
* @see com.ibm.sse.editor.internal.search.BasicFindOccurrencesAction#getPartitionTypes()
*/
public String[] getPartitionTypes() {
return new String[]{StructuredTextPartitionerForHTML.ST_DEFAULT_HTML, StructuredTextPartitionerForXML.ST_DEFAULT_XML};
}
/**
* @see com.ibm.sse.editor.internal.search.BasicFindOccurrencesAction#getRegionTypes()
*/
public String[] getRegionTypes() {
return new String[]{XMLRegionContext.XML_TAG_NAME, XMLRegionContext.XML_TAG_ATTRIBUTE_NAME, XMLRegionContext.XML_TAG_ATTRIBUTE_VALUE};
}
}