OpenSmock / Pyramid

Pyramid is a Graphical User-Interface (GUI) builder and editor for Bloc and Toplo.
MIT License
29 stars 5 forks source link

Cannot re-save on a tag package #94

Closed labordep closed 7 months ago

labordep commented 7 months ago

1- Create a new projet 2- Configure save in a "Test-Core" where Test is a package and Core is a tag 3- Save your project 4- Add a rectangle into the project 5- Save the project : error cannot save. If I remove the -Core is can save

Nyan11 commented 7 months ago

I fix it in : https://github.com/OpenSmock/Pyramid/pull/95

Now you can save a project by adding a tag after the package name or not.

For example: saving a class in the package Test.

If you do not put any tag after, it will be saved in the undifined tag. If you put an existing tag after the package name (-Core), it will be saved in the Core tag. If you put a not existing tag after the package name (-New-Core), it will be saved in a new tag New-Core.

Attention:

labordep commented 7 months ago

Thanks @Nyan11 ! I think this is can be better to display the class selector before the package selector (because of each class name is unique in pharo).

Nyan11 commented 7 months ago

Like this ?

image

Nyan11 commented 7 months ago

I prefer the previous version, where you go from package, to class, to method.

Their is a gradation between package that contains classes, class that contains methods and method.

Also when we will add auto-completion of text, the package input will be used before the class input, and the class input before the method input.

labordep commented 7 months ago

Ok this is a good argument. To be useful it will be very nice if when I'm typing a class, the package will automatically typed if the class exists.