KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > gnu > jemacs > swt > SwtToolkit


1 //This is free software; for terms and warranty disclaimer see ./COPYING.
2

3 package gnu.jemacs.swt;
4
5 import org.eclipse.swt.widgets.Menu;
6
7 import gnu.jemacs.buffer.Buffer;
8 import gnu.jemacs.buffer.EFrame;
9 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   /**
20    * @see gnu.jemacs.buffer.EToolkit#newBuffer(java.lang.String)
21    */

22   public Buffer newBuffer(String JavaDoc name)
23   {
24     return new SwtBuffer(name);
25   }
26
27   /**
28    * @see gnu.jemacs.buffer.EToolkit#newFrame(gnu.jemacs.buffer.Buffer)
29    */

30   public EFrame newFrame(Buffer buffer)
31   {
32     return new SwtFrame(buffer);
33   }
34
35   public EMenu getMenu(LList menubar)
36   {
37     return new SwtMenu(null);
38   }
39
40   /**
41    * @see gnu.jemacs.buffer.EToolkit#getFace(java.lang.String, boolean)
42    */

43   public Object JavaDoc getFace(String JavaDoc name, boolean create)
44   {
45     // TODO Auto-generated method stub
46
return null;
47   }
48
49   /**
50    * @see gnu.jemacs.buffer.EToolkit#getIgnoreAction()
51    */

52   public Object JavaDoc getIgnoreAction()
53   {
54     // TODO Auto-generated method stub
55
return null;
56   }
57
58 }
59
Popular Tags