<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ojwiki.soldin.de/index.php?action=history&amp;feed=atom&amp;title=Displaying_Debug_Messages</id>
	<title>Displaying Debug Messages - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ojwiki.soldin.de/index.php?action=history&amp;feed=atom&amp;title=Displaying_Debug_Messages"/>
	<link rel="alternate" type="text/html" href="https://ojwiki.soldin.de/index.php?title=Displaying_Debug_Messages&amp;action=history"/>
	<updated>2026-04-17T08:16:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://ojwiki.soldin.de/index.php?title=Displaying_Debug_Messages&amp;diff=595&amp;oldid=prev</id>
		<title>Mentaer: Created page with &#039;There are several ways to display debug, progress or even warning messages.  *  The common way is to write to the console, which only works if debugging is performed in a develop…&#039;</title>
		<link rel="alternate" type="text/html" href="https://ojwiki.soldin.de/index.php?title=Displaying_Debug_Messages&amp;diff=595&amp;oldid=prev"/>
		<updated>2010-01-04T21:29:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;There are several ways to display debug, progress or even warning messages.  *  The common way is to write to the console, which only works if debugging is performed in a develop…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There are several ways to display debug, progress or even warning messages.&lt;br /&gt;
&lt;br /&gt;
*  The common way is to write to the console, which only works if debugging is performed in a development environment or so. Simply use: &amp;lt;pre&amp;gt;System.out.println(&amp;quot;debugmessagehere&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you only want to display a progress report (e.g. counting the number of items processed) you may use a ThreadedPlugIn (interface, or ThreadedBasePlugIn) and the TaskMonitor of the &amp;#039;&amp;#039;run&amp;#039;&amp;#039; method, e.g. &amp;lt;pre&amp;gt;monitor.report(&amp;quot;prepare computation&amp;quot;);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* if you want to sent the user a warning message (or other message) you may use either &amp;lt;pre&amp;gt;context.getWorkbenchFrame().warnUser(&amp;quot;blabla&amp;quot;);&amp;lt;/pre&amp;gt; or &amp;lt;pre&amp;gt;context.getWorkbenchFrame().setTimeMEssage(&amp;quot;blabla&amp;quot;);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* a not so direct method, but useful for sending long reports at the end of the processing is to generate a new html output window as shown in the &amp;quot;Hello World&amp;quot; example of the Developer&amp;#039;s Guide.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
context.getWorkbenchFrame().getOutputFrame().createNewDocument();&lt;br /&gt;
context.getWorkbenchFrame().getOutputFrame().addText(getString(&amp;quot;Hallo&amp;quot;));&lt;br /&gt;
context.getWorkbenchFrame().getOutputFrame().surface();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>
	</entry>
</feed>