OutputSvc Class

com.bea.ide.ui.output
OutputSvc Class

public class OutputSvc

    extends Object

This service provide the interface to the tabbed "output" window provide by the IDE. Typical usage would be

	OutputSvc.IOutputWindow win = OutputSvc.get().getWindow("my output", true);
	win.addMessage(new OutputMessage("hello world"));
 
addMessage() is thread safe. Messages posted in a background thread will be added efficiently and the ui refreshed after a short delay.

You can associate actions with your output messages by extending class OutputMessage.

outputDebugString() is provided as a convienence for printing debug messages that can be seen in the IDE rather than on the console.

	assert OutputSvc.outputDebugString("I'm here");
 

Related Topics

OutputMessage


Hierarchy
Object
  OutputSvc

Nested Class Summary

public static interfaceOutputSvc.I
public static interfaceOutputSvc.IOutputWindow
           This is the interface exposed by the output window objects.
public static classOutputSvc.OutputWindowDescription
           This is a simple class that is used to describe an output window.

Field Summary

protected static OutputSvc.I
instance
OutputSvc.I
 

Constructor Summary

OutputSvc()

 

Method Summary

public static OutputSvc.I
get()
public static boolean
outputDebugString(String s)
Write to the IDE's debug output window.
public static boolean
outputDebugString(Exception x)
Write to the IDE's debug output window.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Field Detail

instance

protected static OutputSvc.I instance

 

Constructor Detail

OutputSvc

public OutputSvc()
 

Method Detail

get() Method

public static OutputSvc.I get()

outputDebugString(String) Method

public static boolean outputDebugString(String s)
Write to the IDE's debug output window. This is for use for internal IDE/extension development.

Returns

true

outputDebugString(Exception) Method

public static boolean outputDebugString(Exception x)
Write to the IDE's debug output window. This is for use for internal IDE/extension development.

Returns

true