1 26 package org.objectweb.openccm.explorer.CORBA; 27 28 import org.objectweb.util.explorer.swing.gui.api.Console; 29 import org.objectweb.util.explorer.swing.gui.lib.DefaultDialogConsole; 30 31 38 public class ConsoleFactory { 39 40 41 protected static Console pingConsole_ = null; 42 43 44 protected static Console debugConsole_ = null; 45 46 public static Console getDebugConsole(){ 47 if(debugConsole_ == null){ 48 debugConsole_ = new DefaultDialogConsole("OpenCCM debug console", false); 49 } 50 return debugConsole_; 51 } 52 53 public static Console getPingConsole(){ 54 if(pingConsole_ == null){ 55 pingConsole_ = new DefaultDialogConsole("OpenCCM ping console", true); 56 } 57 return pingConsole_; 58 } 59 60 } 61 | Popular Tags |