01: //This is free software; for terms and warranty disclaimer see ./COPYING.
02:
03: package gnu.jemacs.swt;
04:
05: import org.eclipse.swt.widgets.Menu;
06:
07: import gnu.jemacs.buffer.Buffer;
08: import gnu.jemacs.buffer.EFrame;
09: import gnu.jemacs.buffer.EMenu;
10: import gnu.jemacs.buffer.EToolkit;
11: import gnu.lists.LList;
12:
13: /**
14: * @author Christian Surlykke
15: */
16: public class SwtToolkit extends EToolkit {
17:
18: /**
19: * @see gnu.jemacs.buffer.EToolkit#newBuffer(java.lang.String)
20: */
21: public Buffer newBuffer(String name) {
22: return new SwtBuffer(name);
23: }
24:
25: /**
26: * @see gnu.jemacs.buffer.EToolkit#newFrame(gnu.jemacs.buffer.Buffer)
27: */
28: public EFrame newFrame(Buffer buffer) {
29: return new SwtFrame(buffer);
30: }
31:
32: public EMenu getMenu(LList menubar) {
33: return new SwtMenu(null);
34: }
35:
36: /**
37: * @see gnu.jemacs.buffer.EToolkit#getFace(java.lang.String, boolean)
38: */
39: public Object getFace(String name, boolean create) {
40: // TODO Auto-generated method stub
41: return null;
42: }
43:
44: /**
45: * @see gnu.jemacs.buffer.EToolkit#getIgnoreAction()
46: */
47: public Object getIgnoreAction() {
48: // TODO Auto-generated method stub
49: return null;
50: }
51:
52: }
|