From 9dd5b8cf0a2a377287d87e52eabcb7b0cd32227a Mon Sep 17 00:00:00 2001 From: anquetil Date: Fri, 3 Jan 2025 12:15:07 +0100 Subject: [PATCH 1/2] Many changes: refactorings, renaming (including of classes), new setting, new saving option --- ...class.st => MiModelReportBrowser.class.st} | 108 ++++++++------- ...l.class.st => MiModelReportModel.class.st} | 123 +++++++++++------- .../MiReportHTMLExportCommand.class.st | 4 +- .../MiReportPDFExportCommand.class.st | 6 +- 4 files changed, 141 insertions(+), 100 deletions(-) rename src/MooseIDE-Core-Reporter/{MiModelReporter.class.st => MiModelReportBrowser.class.st} (53%) rename src/MooseIDE-Core-Reporter/{MiModelReporterModel.class.st => MiModelReportModel.class.st} (70%) diff --git a/src/MooseIDE-Core-Reporter/MiModelReporter.class.st b/src/MooseIDE-Core-Reporter/MiModelReportBrowser.class.st similarity index 53% rename from src/MooseIDE-Core-Reporter/MiModelReporter.class.st rename to src/MooseIDE-Core-Reporter/MiModelReportBrowser.class.st index a74b711f..26ecc9ee 100644 --- a/src/MooseIDE-Core-Reporter/MiModelReporter.class.st +++ b/src/MooseIDE-Core-Reporter/MiModelReportBrowser.class.st @@ -1,11 +1,11 @@ " -Generates a statistical report on key features of a Moose model +Generates a statistical report on key features of a `MooseModel` The report is generated in markdown and can be edited manually before being exported -Accepted entities: A mooseModel +Accepted entities: Any `MooseEntity` in a `MooseModel` " Class { - #name : #MiModelReporter, + #name : #MiModelReportBrowser, #superclass : #MiAbstractBrowser, #instVars : [ 'mainPresenter', @@ -18,61 +18,83 @@ Class { } { #category : #'world menu' } -MiModelReporter class >> menuCommandOn: aBuilder [ +MiModelReportBrowser class >> menuCommandOn: aBuilder [ ^ self buildMenuItemIn: aBuilder ] { #category : #'world menu' } -MiModelReporter class >> menuItem [ +MiModelReportBrowser class >> menuItem [ - ^#ModelReporter + ^#ModelReport ] { #category : #'world menu' } -MiModelReporter class >> menuPriority [ +MiModelReportBrowser class >> menuPriority [ ^ self menuMetaToolsPriority + 1 ] { #category : #'world menu' } -MiModelReporter class >> newModel [ +MiModelReportBrowser class >> newModel [ - ^ MiModelReporterModel new + ^ MiModelReportModel new ] { #category : #'world menu' } -MiModelReporter class >> open [ +MiModelReportBrowser class >> open [