From d52e0157008158fdec339cc7e59e64a012dcce82 Mon Sep 17 00:00:00 2001 From: ClotildeToullec Date: Thu, 21 Nov 2024 17:59:32 +0100 Subject: [PATCH] MiAnalysis: rename to browser. Arrange the package. Add a menu item. --- ...er.class.st => MiAnalysisBrowser.class.st} | 64 ++++++++++++------- .../MiAnalysisCloseBrowserCommand.class.st | 2 +- ...MiAnalysisPropagateLocallyCommand.class.st | 2 +- .../MiBrowserCardPresenter.class.st | 2 +- src/MooseIDE-Analysis/MiNullBrowser.class.st | 2 +- .../MiShortcutsCategory.extension.st | 2 +- 6 files changed, 47 insertions(+), 27 deletions(-) rename src/MooseIDE-Analysis/{MiAnalysisPresenter.class.st => MiAnalysisBrowser.class.st} (73%) diff --git a/src/MooseIDE-Analysis/MiAnalysisPresenter.class.st b/src/MooseIDE-Analysis/MiAnalysisBrowser.class.st similarity index 73% rename from src/MooseIDE-Analysis/MiAnalysisPresenter.class.st rename to src/MooseIDE-Analysis/MiAnalysisBrowser.class.st index 10a7c01f..c1331f78 100644 --- a/src/MooseIDE-Analysis/MiAnalysisPresenter.class.st +++ b/src/MooseIDE-Analysis/MiAnalysisBrowser.class.st @@ -1,5 +1,5 @@ Class { - #name : #MiAnalysisPresenter, + #name : #MiAnalysisBrowser, #superclass : #MiAbstractBrowser, #instVars : [ 'currentBrowser', @@ -7,17 +7,17 @@ Class { 'browsers', 'browsersListPresenter' ], - #category : #'MooseIDE-Analysis' + #category : #'MooseIDE-Analysis-Browser' } { #category : #keymaps } -MiAnalysisPresenter class >> browserKey [ +MiAnalysisBrowser class >> browserKey [ ^ $a ] { #category : #'as yet unclassified' } -MiAnalysisPresenter class >> duplicationAnalysis [ +MiAnalysisBrowser class >> duplicationAnalysis [ | duplicationTag queryBrowser duplicationBrowser | duplicationTag := FamixTag named: 'Duplication'. @@ -39,15 +39,35 @@ MiAnalysisPresenter class >> duplicationAnalysis [ duplicationBrowser } ] +{ #category : #'world menu' } +MiAnalysisBrowser class >> menuCommandOn: aBuilder [ + + + + ^ self buildMenuItemIn: aBuilder +] + +{ #category : #'world menu' } +MiAnalysisBrowser class >> menuItem [ + + ^ #AnalysisBrowser +] + +{ #category : #'world menu' } +MiAnalysisBrowser class >> menuPriority [ + + ^ self menuMainToolsPriority + 6 +] + { #category : #'instance creation' } -MiAnalysisPresenter class >> open [ +MiAnalysisBrowser class >> open [