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.ext;
15:
16: /**
17: * Abstract formatting layer offers the support for naming the layer and
18: * creation of an format-support.
19: *
20: * @author Miloslav Metelka
21: * @version 1.00
22: */
23:
24: public abstract class AbstractFormatLayer implements FormatLayer {
25:
26: /** Name of the layer */
27: private String name;
28:
29: /** Construct new layer with the given name. */
30: public AbstractFormatLayer(String name) {
31: this .name = name;
32: }
33:
34: public String getName() {
35: return name;
36: }
37:
38: /**
39: * Create the format-support as an abstraction over the format-writer.
40: */
41: protected FormatSupport createFormatSupport(FormatWriter fw) {
42: return null;
43: }
44:
45: }
|