Source code: fzi/injectj/jbuilder/IJEditorKit.java
1 package fzi.injectj.jbuilder;
2
3 import com.borland.primetime.editor.*;
4
5 /**
6 * Überschrift:
7 * Beschreibung:
8 * Copyright: Copyright (c) 2001
9 * Organisation:
10 * @author
11 * @version 1.0
12 */
13
14 public class IJEditorKit extends TextEditorKit {
15
16 public IJEditorKit() {
17 System.out.println("IJEditorKit loaded...");
18 }
19
20 public static void initOpenTool(byte majorVersion, byte minorVersion) {
21 EditorManager.registerEditorKit(new IJEditorKit());
22 }
23
24 /**
25 * Create an instance of the appropriate Scanner class to use with this kit.
26 *
27 * @return A Scanner instance appropriate for documents of this class.
28 */
29 public Scanner createScanner() {
30 return new IJScanner();
31 }
32
33 /**
34 * Get the MIME type of the data that this
35 * kit represents support for.
36 *
37 * @return MIME type supported
38 */
39 public String getContentType() {
40 return "text/injectj";
41 }
42
43 /**
44 * Create a copy of the editor kit. This
45 * allows an implementation to serve as a prototype
46 * for others, so that they can be quickly created.
47 *
48 * @return New instance of PasEditorKit
49 */
50 public Object clone() {
51 IJEditorKit kit = new IJEditorKit();
52 return kit;
53 }
54 }