KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > antlr > works > editor > EditorInspectorItem


1 package org.antlr.works.editor;
2
3 import org.antlr.works.ate.ATEUnderlyingManager;
4 import org.antlr.works.ate.syntax.misc.ATEToken;
5 import org.antlr.works.idea.IdeaAction;
6 import org.antlr.works.idea.IdeaActionDelegate;
7
8 import java.awt.*;
9 import java.util.List JavaDoc;
10
11 /*
12
13 [The "BSD licence"]
14 Copyright (c) 2005 Jean Bovet
15 All rights reserved.
16
17 Redistribution and use in source and binary forms, with or without
18 modification, are permitted provided that the following conditions
19 are met:
20
21 1. Redistributions of source code must retain the above copyright
22 notice, this list of conditions and the following disclaimer.
23 2. Redistributions in binary form must reproduce the above copyright
24 notice, this list of conditions and the following disclaimer in the
25 documentation and/or other materials provided with the distribution.
26 3. The name of the author may not be used to endorse or promote products
27 derived from this software without specific prior written permission.
28
29 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
30 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
31 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
32 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
33 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
34 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
38 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40 */

41
42 public class EditorInspectorItem implements IdeaActionDelegate {
43
44     public static final int IDEA_DELETE_RULE = 0;
45     public static final int IDEA_CREATE_RULE = 1;
46     public static final int IDEA_REMOVE_LEFT_RECURSION = 2;
47     public static final int IDEA_CONVERT_TO_SINGLE_QUOTE = 3;
48     public static final int IDEA_FIX_GRAMMAR_NAME = 4;
49     public static final int IDEA_DECISION_DFA = 5;
50
51     public ATEToken token;
52     public int startIndex;
53     public int endIndex;
54     public int startLineNumber;
55     public Color color;
56     public String JavaDoc description;
57     public int shape = ATEUnderlyingManager.SHAPE_SAW_TOOTH;
58
59     public void setAttributes(ATEToken token, int startIndex, int endIndex, int startLineNumber, Color color, String JavaDoc description) {
60         this.token = token;
61         this.startIndex = startIndex;
62         this.endIndex = endIndex;
63         this.startLineNumber = startLineNumber;
64         this.color = color;
65         this.description = description;
66     }
67
68     public List JavaDoc<IdeaAction> getIdeaActions() {
69         return null;
70     }
71
72     public void ideaActionFire(IdeaAction action, int actionID) {
73     }
74
75 }
76
Popular Tags