From dfee5cc6e719dcb2af48d7c73884d29db7ec5e6e Mon Sep 17 00:00:00 2001 From: Inao0 <37711386+Inao0@users.noreply.github> Date: Fri, 18 Oct 2024 15:12:02 +0200 Subject: [PATCH] Add a library menu item to load Famix SQL - Not working yet Currently trying to load FamixSQL ( https://github.com/moosetechnology/FamixSQL) will result in error due to the refactoring of WeakRegistry class in a dependency (https://github.com/pharo-rdbms/Pharo-ODBC) This can be bypassed by replacing the reference to WeakRegistry by FinalizationRegistry when loading it. There are two references to WeakRegistry inPharo-ODBC, ODBCConnection class>>#newConnections that can be fix at loading time and ODBCConnection>>#initializeStatements that can be fixed after. A pull request has been opened in Pharo-ODBC to fix it for the latest versions of Pharo and Moose (https://github.com/pharo-rdbms/Pharo-ODBC/pull/11) --- .../MooseLoadFamixSQLMenuCommand.class.st | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/MooseIDE-Core/MooseLoadFamixSQLMenuCommand.class.st diff --git a/src/MooseIDE-Core/MooseLoadFamixSQLMenuCommand.class.st b/src/MooseIDE-Core/MooseLoadFamixSQLMenuCommand.class.st new file mode 100644 index 000000000..2eb62e784 --- /dev/null +++ b/src/MooseIDE-Core/MooseLoadFamixSQLMenuCommand.class.st @@ -0,0 +1,41 @@ +Class { + #name : #MooseLoadFamixSQLMenuCommand, + #superclass : #MooseAbstractLoadFamixMenuCommand, + #category : #'MooseIDE-Core-MenuBar' +} + +{ #category : #accessing } +MooseLoadFamixSQLMenuCommand class >> help [ + + ^ 'Famix Metamodel for SQL' +] + +{ #category : #accessing } +MooseLoadFamixSQLMenuCommand class >> label [ + + ^ 'Famix-SQL' +] + +{ #category : #accessing } +MooseLoadFamixSQLMenuCommand class >> menuPriority [ + + ^super menuPriority + 1 +] + +{ #category : #accessing } +MooseLoadFamixSQLMenuCommand >> baselineName [ + + ^ 'FamixSQL' +] + +{ #category : #accessing } +MooseLoadFamixSQLMenuCommand >> repositoryURL [ + + ^ 'github://moosetechnology/FamixSQL:' , self version , '/src' +] + +{ #category : #accessing } +MooseLoadFamixSQLMenuCommand >> version [ + + ^ 'main' +]