01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: * See the GNU Lesser General Public License for more details at gnu.org.
11: */
12:
13: package com.eviware.soapui.support;
14:
15: import java.awt.Dimension;
16:
17: import com.eviware.x.dialogs.XDialogs;
18: import com.eviware.x.dialogs.XProgressDialog;
19:
20: public class ConsoleDialogs implements XDialogs {
21: public boolean confirm(String question, String title) {
22: return false;
23: }
24:
25: public Boolean confirmOrCancel(String question, String title) {
26: return null;
27: }
28:
29: public String prompt(String question, String title, String value) {
30: return null;
31: }
32:
33: public String prompt(String question, String title) {
34: return null;
35: }
36:
37: public String prompt(String question, String title, Object[] objects) {
38: return null;
39: }
40:
41: public String prompt(String question, String title,
42: Object[] objects, String value) {
43: return null;
44: }
45:
46: public void showErrorMessage(String message) {
47: System.err.println(message);
48: }
49:
50: public void showInfoMessage(String message) {
51: System.out.println(message);
52: }
53:
54: public void showInfoMessage(String message, String title) {
55: System.out.println(title + ": " + message);
56: }
57:
58: public XProgressDialog createProgressDialog(String label,
59: int length, String initialValue, boolean canCancel) {
60: return new NullProgressDialog();
61: }
62:
63: public void showExtendedInfo(String title, String description,
64: String content, Dimension size) {
65: }
66:
67: public boolean confirmExtendedInfo(String title,
68: String description, String content, Dimension size) {
69: return false;
70: }
71:
72: public Boolean confirmOrCancleExtendedInfo(String title,
73: String description, String content, Dimension size) {
74: return null;
75: }
76: }
|