blob: 6de442d4d3b257dcc1dd4b70d437553beed53821 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jface.text.source;
/**
* A tag handler factory provides access to tag
* handlers.
* <p>
* XXX: This is work in progress and can change anytime until API for 3.0 is frozen.
* </p>
* @since 3.0
*/
public interface ITagHandlerFactory {
/**
* Returns a handler that can handle the
* given tag.
* <p>
* Depending on the used handler the factory might
* return a new or a shared instance.</p>
*
* @param tag the tag for which to return the handler
* @return a tag handler or <code>null</code> if no handler
* is available
*/
public ITagHandler getHandler(String tag);
/**
* Finds and returns a handler that can handle
* the given text snippet.
* <p>
* Depending on the used handler the factory might
* return a new or a shared instance.</p>
*
* @param text the text for which to find a handler
* @return a tag handler or <code>null</code> if no handler
* is available
*/
public ITagHandler findHandler(String text);
}
|