From 632bbbf6809f3f00906b4a8eb7efebcfbef53d6d Mon Sep 17 00:00:00 2001 From: Christoph Thiede Date: Sun, 17 Jul 2022 15:10:52 +0200 Subject: [PATCH 1/3] Fix registration of file reader service Adds missing #initialize and #unload methods to register SVGMorph as a service for opening svg files as a morph. Fixes #74. --- .../SVGMorph.class/class/fileReaderServicesForFile.suffix..st | 2 +- .../SVG-Morphic.package/SVGMorph.class/class/initialize.st | 4 ++++ packages/SVG-Morphic.package/SVGMorph.class/class/services.st | 2 +- packages/SVG-Morphic.package/SVGMorph.class/class/unload.st | 4 ++++ .../SVG-Morphic.package/SVGMorph.class/methodProperties.json | 4 +++- 5 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 packages/SVG-Morphic.package/SVGMorph.class/class/initialize.st create mode 100644 packages/SVG-Morphic.package/SVGMorph.class/class/unload.st diff --git a/packages/SVG-Morphic.package/SVGMorph.class/class/fileReaderServicesForFile.suffix..st b/packages/SVG-Morphic.package/SVGMorph.class/class/fileReaderServicesForFile.suffix..st index 07d2722d..77a1242e 100644 --- a/packages/SVG-Morphic.package/SVGMorph.class/class/fileReaderServicesForFile.suffix..st +++ b/packages/SVG-Morphic.package/SVGMorph.class/class/fileReaderServicesForFile.suffix..st @@ -1,4 +1,4 @@ -as yet unclassified +fileIn/Out fileReaderServicesForFile: fullName suffix: suffix "registers the given class as providing services for reading files with Fileservices" diff --git a/packages/SVG-Morphic.package/SVGMorph.class/class/initialize.st b/packages/SVG-Morphic.package/SVGMorph.class/class/initialize.st new file mode 100644 index 00000000..d2146100 --- /dev/null +++ b/packages/SVG-Morphic.package/SVGMorph.class/class/initialize.st @@ -0,0 +1,4 @@ +class initialization +initialize + + FileServices registerFileReader: self. \ No newline at end of file diff --git a/packages/SVG-Morphic.package/SVGMorph.class/class/services.st b/packages/SVG-Morphic.package/SVGMorph.class/class/services.st index 21eeb4bc..d6323d2b 100644 --- a/packages/SVG-Morphic.package/SVGMorph.class/class/services.st +++ b/packages/SVG-Morphic.package/SVGMorph.class/class/services.st @@ -1,4 +1,4 @@ -as yet unclassified +fileIn/Out services ^ {SimpleServiceEntry diff --git a/packages/SVG-Morphic.package/SVGMorph.class/class/unload.st b/packages/SVG-Morphic.package/SVGMorph.class/class/unload.st new file mode 100644 index 00000000..3fe9d8da --- /dev/null +++ b/packages/SVG-Morphic.package/SVGMorph.class/class/unload.st @@ -0,0 +1,4 @@ +initialize-release +unload + + FileServices unregisterFileReader: self. \ No newline at end of file diff --git a/packages/SVG-Morphic.package/SVGMorph.class/methodProperties.json b/packages/SVG-Morphic.package/SVGMorph.class/methodProperties.json index 25002c56..a85978a6 100644 --- a/packages/SVG-Morphic.package/SVGMorph.class/methodProperties.json +++ b/packages/SVG-Morphic.package/SVGMorph.class/methodProperties.json @@ -6,7 +6,9 @@ "fromFile:" : "lra 6/12/2022 18:55", "fromFileStream:" : "lha 5/22/2022 15:49", "fromString:" : "lra 6/12/2022 16:30", - "services" : "lra 6/12/2022 16:30" }, + "initialize" : "ct 7/16/2022 20:12", + "services" : "lra 6/12/2022 16:30", + "unload" : "ct 7/16/2022 20:19" }, "instance" : { "accept:" : "aes 5/14/2022 17:41", "composedStyle" : "lra 6/12/2022 18:38", From b85440eca4abd55763eff2ad49898581d970342a Mon Sep 17 00:00:00 2001 From: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Date: Tue, 19 Jul 2022 21:57:10 +0200 Subject: [PATCH 2/3] Update packages/SVG-Morphic.package/SVGMorph.class/class/initialize.st Co-authored-by: Lukas Hagen <43916057+Greenscreen23@users.noreply.github.com> --- packages/SVG-Morphic.package/SVGMorph.class/class/initialize.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SVG-Morphic.package/SVGMorph.class/class/initialize.st b/packages/SVG-Morphic.package/SVGMorph.class/class/initialize.st index d2146100..f73a91c4 100644 --- a/packages/SVG-Morphic.package/SVGMorph.class/class/initialize.st +++ b/packages/SVG-Morphic.package/SVGMorph.class/class/initialize.st @@ -1,4 +1,4 @@ class initialization initialize - FileServices registerFileReader: self. \ No newline at end of file + FileServices registerFileReader: self \ No newline at end of file From d4caf70663f7dae0cb9161b76daf5726adbf580d Mon Sep 17 00:00:00 2001 From: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Date: Tue, 19 Jul 2022 21:57:19 +0200 Subject: [PATCH 3/3] Update packages/SVG-Morphic.package/SVGMorph.class/class/unload.st Co-authored-by: Lukas Hagen <43916057+Greenscreen23@users.noreply.github.com> --- packages/SVG-Morphic.package/SVGMorph.class/class/unload.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SVG-Morphic.package/SVGMorph.class/class/unload.st b/packages/SVG-Morphic.package/SVGMorph.class/class/unload.st index 3fe9d8da..497fdbbc 100644 --- a/packages/SVG-Morphic.package/SVGMorph.class/class/unload.st +++ b/packages/SVG-Morphic.package/SVGMorph.class/class/unload.st @@ -1,4 +1,4 @@ initialize-release unload - FileServices unregisterFileReader: self. \ No newline at end of file + FileServices unregisterFileReader: self \ No newline at end of file