01: /*******************************************************************************
02: * Copyright (c) 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.core.itoc;
11:
12: /**
13: * ITocConstants
14: * This interface contains all of the constants relevant to the TOC editor
15: */
16: public interface ITocConstants {
17:
18: // Elements
19:
20: public static final String ELEMENT_TOC = "toc"; //$NON-NLS-1$
21:
22: public static final String ELEMENT_TOPIC = "topic"; //$NON-NLS-1$
23:
24: public static final String ELEMENT_ANCHOR = "anchor"; //$NON-NLS-1$
25:
26: public static final String ELEMENT_LINK = "link"; //$NON-NLS-1$
27:
28: // Attributes
29:
30: public static final String ATTRIBUTE_LINK_TO = "link_to"; //$NON-NLS-1$
31:
32: public static final String ATTRIBUTE_LABEL = "label"; //$NON-NLS-1$
33:
34: public static final String ATTRIBUTE_TOPIC = ELEMENT_TOPIC; //$NON-NLS-1$
35:
36: public static final String ATTRIBUTE_HREF = "href"; //$NON-NLS-1$
37:
38: public static final String ATTRIBUTE_ID = "id"; //$NON-NLS-1$
39:
40: public static final String ATTRIBUTE_TOC = ELEMENT_TOC; //$NON-NLS-1$
41:
42: // Types
43:
44: public static final int TYPE_TOC = 0;
45:
46: public static final int TYPE_TOPIC = 1;
47:
48: public static final int TYPE_ANCHOR = 2;
49:
50: public static final int TYPE_LINK = 3;
51:
52: // Enablement Elements
53:
54: public static final String ELEMENT_ENABLEMENT = "enablement"; //$NON-NLS-1$
55:
56: public static final String ELEMENT_TEST = "test"; //$NON-NLS-1$
57:
58: // Enablement Attributes
59:
60: public static final String ATTRIBUTE_PROPERTY = "property"; //$NON-NLS-1$
61:
62: public static final String ATTRIBUTE_ARGS = "args"; //$NON-NLS-1$
63:
64: // Enablement Types
65:
66: public static final int TYPE_ENABLEMENT = 4;
67:
68: public static final int TYPE_TEST = 5;
69:
70: }
|