01: /*
02: * Sun Public License Notice
03: *
04: * The contents of this file are subject to the Sun Public License
05: * Version 1.0 (the "License"). You may not use this file except in
06: * compliance with the License. A copy of the License is available at
07: * http://www.sun.com/
08: *
09: * The Original Code is NetBeans. The Initial Developer of the Original
10: * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
11: * Microsystems, Inc. All Rights Reserved.
12: */
13:
14: package org.netbeans.editor;
15:
16: /**
17: * Token-id is a unique identifier of a particular token. It's not a classical
18: * token, because it doesn't contain the image of the token. The token image is
19: * handled separately in general. The common place where the tokens should be
20: * defined is the appropriate token-context for which they are being created.
21: * The fact that <tt>TokenID</tt> extends <tt>TokenCategory</tt> helps to
22: * treat the colorings more easily by working with <tt>TokenCategory</tt> only
23: * (it can be <tt>TokenID</tt> too).
24: *
25: * @author Miloslav Metelka
26: * @version 1.00
27: */
28:
29: public interface TokenID extends TokenCategory {
30:
31: /**
32: * Get the optional category of the token.
33: */
34: public TokenCategory getCategory();
35:
36: }
|