public class ReportDialog extends ModelioDialog
Report
which they have built during a processing operation by adding ReportEntry
records to it.
A Report is a sequence of ReportEntry. A Reportentry can be of several kind (see @link EntryKind
. The contents of the report are displayed in HTML rendred text in a browser.
Two kind of links are exclusively supported:
HTMLReport
private class is in charge to lay out the reported message in HTML text, controlled by its internal CSS stylesheet HTMLReport#CSS
.
Typical use:
Report myReport = new Report(); myReport.addError(...); myReport.addWarning(...); myReport.addTip(...); myReport.addInfo(...); ReportDialog dlg = new ReportDialog(parent, navigationService, modelioHelpService, myReport); dlg.open();
Constructor and Description |
---|
ReportDialog(Shell parentShell,
IModelingSession session,
INavigationService navigationService,
Report report)
C'tor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addButtonsInButtonBar(Composite parent) |
protected Control |
createContentArea(Composite parent) |
protected Point |
getInitialSize() |
protected void |
init() |
public ReportDialog(Shell parentShell, IModelingSession session, INavigationService navigationService, Report report)
parentShell
- the parent shell. Can be null
.session
- access to the project's model. Can be null
in which case element links are not displayed and no navigation is possible..navigationService
- the Modelio navigation service. Can be null
in which case element links are not displayed and no navigation is possible.report
- the report to display. Cannot be null
.