站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

CommandOutputTextProcessor (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.commands
Class CommandOutputTextProcessor

java.lang.Object
  extended byorg.netbeans.modules.vcscore.commands.CommandOutputTextProcessor

public class CommandOutputTextProcessor
extends Object

The processor of text output of a command. This class takes care about passing the command output to a text area.

The difference from simple JTextArea.append(...) call is that this class assures that the append is performed in AWT thread, takes care not to make AWT thread too busy and can buffer the output till the actual text area is created. Also when the text is too long, it's cut to prevent OutOfMemoryError.


Nested Class Summary
 class CommandOutputTextProcessor.TextOutput
          The text output.
 
Method Summary
 CommandOutputTextProcessor.TextOutput createOutput()
          Create a new text output.
static CommandOutputTextProcessor getDefault()
          Get the default instance of CommandOutputTextProcessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static CommandOutputTextProcessor getDefault()
Get the default instance of CommandOutputTextProcessor.


createOutput

public CommandOutputTextProcessor.TextOutput createOutput()
Create a new text output. Every text output is associated with one text area.


 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.