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.modules.web.core.syntax.folding;
15:
16: import org.netbeans.api.editor.fold.FoldType;
17:
18: /**
19: * This class defines @see org.netbeans.api.editor.fold.FoldType
20: * instancies used in JSP code folding.
21: *
22: * @author mf100882
23: */
24:
25: public class JspFoldTypes {
26:
27: private static final String FOLD_TYPE_PREFIX = "jsp-";//NOI18N
28:
29: /** JSP directive fold type */
30: public static final FoldType DIRECTIVE = new FoldType(
31: FOLD_TYPE_PREFIX + "directives"); // NOI18N
32:
33: /** JSP tag fold type */
34: public static final FoldType TAG = new FoldType(FOLD_TYPE_PREFIX
35: + "tag"); // NOI18N
36:
37: /** JSP comment fold type */
38: public static final FoldType COMMENT = new FoldType(
39: FOLD_TYPE_PREFIX + "comment"); // NOI18N
40:
41: /** JSP declaration fold type */
42: public static final FoldType DECLARATION = new FoldType(
43: FOLD_TYPE_PREFIX + "declaration"); // NOI18N
44:
45: /** JSP scriptlet fold type */
46: public static final FoldType SCRIPTLET = new FoldType(
47: FOLD_TYPE_PREFIX + "scriptlet"); // NOI18N
48:
49: //there isn't any fold type for JSP expression
50:
51: /** JSP directive fold type description */
52: public static final String DIRECTIVE_DESCRIPTION = "<%@...%>"; // NOI18N
53:
54: /** JSP tag fold type description */
55: public static final String TAG_DESCRIPTION = "<jsp:...>"; // NOI18N
56:
57: /** JSP comment fold type description */
58: public static final String COMMENT_DESCRIPTION = "<%--...--%>"; // NOI18N
59:
60: /** JSP declaration fold type description */
61: public static final String DECLARATION_DESCRIPTION = "<%!...%>"; // NOI18N
62:
63: /** JSP scriptlet fold type description */
64: public static final String SCRIPTLET_DESCRIPTION = "<%...%>"; // NOI18N
65:
66: //html fold types
67:
68: private static final String HTML_FOLD_TYPE_PREFIX = "html-";//NOI18N
69:
70: /** HTML comment fold type */
71: public static final FoldType HTML_COMMENT = new FoldType(
72: HTML_FOLD_TYPE_PREFIX + "comment"); // NOI18N
73:
74: /** HTML tag fold type */
75: public static final FoldType HTML_TAG = new FoldType(
76: HTML_FOLD_TYPE_PREFIX + "tag"); // NOI18N
77:
78: /** HTML comment fold type default description */
79: public static final String HTML_COMMENT_DESCRIPTION = "<!--...-->"; // NOI18N
80:
81: /** HTML tag fold type default description */
82: public static final String HTML_TAG_DESCRIPTION = "<...>"; // NOI18N
83: }
|