Community
Participate
Working Groups
Build Identifier: At the moment, generators do not have the ability to write to the Generate Result dialog box (as attached). This enhancement is a request to provide generators the ability to write to this dialog. Three types of messages can be written: ERROR: Displayed in red WARNING: Displayed in orange INFO: Displayed in black If there are different message types used, everything should be displayed in red if it contains errors or in orange if it contains warnings. Reproducible: Always
Created attachment 204524 [details] Generate Result Dialog
It's not fully clear how to display the log messages. Do you want to combine the messages with current or use a separete area for them? Current logging implementation is based on IStatus objects and the objects are converted to string at generation end. What do you think if we reuse logic from Error log view and display the messages in tabular way?
(In reply to comment #2) > It's not fully clear how to display the log messages. Do you want to combine > the messages with current or use a separete area for them? Current logging > implementation is based on IStatus objects and the objects are converted to > string at generation end. What do you think if we reuse logic from Error log > view and display the messages in tabular way? I was thinking of displaying them as string in the existing textbox. It'll be more work if we want to display it in tabular format. Let's further discuss this in our status call.
Code review will be required for this enhancement.
In the status call it was decided to display this information in tabular format similar to Error Log view.
Created attachment 206187 [details] Generation Result Dialog patch Generators log is diaplayed in tabular form. To see a log entry details double click on it. Generators are able to add log entries with using PluginLog.reportStatus(IStatus).
Anton, can you please add a quick wiki page with a simple example of how generators can leverage this feature? Thanks!
Simple example added http://wiki.eclipse.org/Tigerstripe_Advanced_Plugin_Tutorial#Logging_and_reporting_statuses
Code review was completed on Nov 10 2011.
Patch applied.
Looks great, thank you!