01: package org.obe.examples;
02:
03: import java.awt.*;
04: import java.util.Arrays;
05: import javax.swing.*;
06:
07: /**
08: * A Java application for testing the JavaApplication ToolAgent.
09: *
10: * @author Adrian Price
11: */
12: public class TestJavaApplication {
13: // private static Log _logger = LogFactory.getLog(TestJavaApplication.class);
14:
15: public TestJavaApplication() {
16: }
17:
18: public static void main(String[] args) {
19: String debugMsg = TestJavaApplication.class.getName()
20: + ".main(" + Arrays.asList(args) + ')';
21: // if (_logger.isDebugEnabled())
22: // _logger.debug(debugMsg);
23: System.out.println(debugMsg);
24: if (!GraphicsEnvironment.isHeadless()) {
25: JOptionPane.showMessageDialog(null,
26: new Object[] { debugMsg,
27: // "obe.procInstId = " + System.getProperty("obe.procInstId"),
28: // "obe.workItemId = " + System.getProperty("obe.workItemId"),
29: // "obe.toolId = " + System.getProperty("obe.toolId")
30: });
31: System.exit(0);
32: }
33: }
34: }
|