~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to html/editor/lib/src/org/netbeans/editor/ext/html/parser/SyntaxParserListener.java

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
ImportĀ upstreamĀ versionĀ 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * SyntaxParserListener.java
 
3
 *
 
4
 * Created on January 25, 2007, 4:37 PM
 
5
 *
 
6
 * To change this template, choose Tools | Template Manager
 
7
 * and open the template in the editor.
 
8
 */
 
9
 
 
10
package org.netbeans.editor.ext.html.parser;
 
11
 
 
12
import java.util.List;
 
13
 
 
14
/**
 
15
 * Allows clients to listen to SyntaxParser changes.
 
16
 * Implementation of this class can be registered following way:
 
17
 * <code>
 
18
 *      SyntaxParser.get(document).addSyntaxParserListener(impl);
 
19
 * </code>
 
20
 * If the document is already parsed and the data are up-to-date, the 
 
21
 * parsingFinished() method will be called synchronously from the 
 
22
 * addSyntaxParserListener() method, otherwise will be called asynchronously
 
23
 * once the parser finishes.
 
24
 *
 
25
 * @author Marek.Fukala@Sun.com
 
26
 */
 
27
public interface SyntaxParserListener {
 
28
    
 
29
    /** Called when HTML parser finishes parsing.
 
30
     * @return a list of SyntaxElement-s.
 
31
     */
 
32
    public void parsingFinished(List<SyntaxElement> elements);
 
33
    
 
34
}