Last change
on this file was
12749,
checked in by Mark Evenson, 14 years ago
|
Undo previous commmit.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
607 bytes
|
Line | |
---|
1 | (in-package :extensions) |
---|
2 | |
---|
3 | (require :java) |
---|
4 | |
---|
5 | (defvar *gui-backend* :swing) |
---|
6 | |
---|
7 | (defun init-gui () |
---|
8 | "Dummy function used to autoload this file" |
---|
9 | t) |
---|
10 | |
---|
11 | (defun make-dialog-prompt-stream () |
---|
12 | (%make-dialog-prompt-stream *gui-backend*)) |
---|
13 | |
---|
14 | (defgeneric %make-dialog-prompt-stream (gui-backend)) |
---|
15 | |
---|
16 | (defmethod %make-dialog-prompt-stream ((gui-backend (eql :swing))) |
---|
17 | (java:jnew (java:jconstructor |
---|
18 | "org.armedbear.lisp.java.swing.SwingDialogPromptStream"))) |
---|
19 | |
---|
20 | (defmethod %make-dialog-prompt-stream ((gui-backend (eql :awt))) |
---|
21 | (java:jnew (java:jconstructor |
---|
22 | "org.armedbear.lisp.java.awt.AwtDialogPromptStream"))) |
---|
Note: See
TracBrowser
for help on using the repository browser.