nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2005 IBM Corporation and others. |
| 3 | * All rights reserved. This program and the accompanying materials |
| 4 | * are made available under the terms of the Eclipse Public License v1.0 |
| 5 | * which accompanies this distribution, and is available at |
| 6 | * http://www.eclipse.org/legal/epl-v10.html |
| 7 | * |
| 8 | * Contributors: |
| 9 | * IBM Corporation - initial API and implementation |
| 10 | * |
| 11 | *******************************************************************************/ |
| 12 | |
| 13 | package org.eclipse.wst.html.ui.internal.search; |
| 14 | |
| 15 | import java.util.ArrayList; |
| 16 | import java.util.List; |
| 17 | |
| 18 | import org.eclipse.wst.sse.ui.internal.search.FindOccurrencesActionDelegate; |
| 19 | |
| 20 | /** |
| 21 | * Sets up FindOccurrencesActionDelegate for html find occurrences processors |
| 22 | */ |
| 23 | public class HTMLFindOccurrencesActionDelegate extends FindOccurrencesActionDelegate { |
| 24 | private List fProcessors; |
| 25 | |
| 26 | protected List getProcessors() { |
| 27 | if (fProcessors == null) { |
| 28 | fProcessors = new ArrayList(); |
| 29 | HTMLFindOccurrencesProcessor htmlProcessor = new HTMLFindOccurrencesProcessor(); |
| 30 | fProcessors.add(htmlProcessor); |
| 31 | } |
| 32 | return fProcessors; |
| 33 | } |
| 34 | } |