[squeak-dev] The Inbox: Tools-ct.962.mcz
marcel.taeumel at hpi.de
Tue Dec 7 09:54:00 UTC 2021
Hi Christoph --
Be careful to integrate the latest changes to #addModelItemstoWindowMenu and use #resetBindings instead of #initializeBindings.
#asLegalSelector does #withFirstCharacterDownshifted already.
Do not cancel the drop if the user entered an illegal selector but repeat the process until the user cancels it explicitly.
Other than that: Sure, go ahead.
Am 06.12.2021 20:03:17 schrieb christoph.thiede at student.hpi.uni-potsdam.de <christoph.thiede at student.hpi.uni-potsdam.de>:
Hi Marcel, hi Subbu,
> You could generate a name and leave it selected, like in the result of printIt. If you don't like the name, just type the new name as usual.
> In the workspace just type: "preferredName := " then drop the object.
But this will still force me to rename the variable manually. Your proposed workflow requires me to 1. prepare the workspace, 2. perform the drag-drop gesture, and 3. execute the do-it. And the bindings of the workspace will be polluted with the ugly name anyway. :-)
Personally, I very rarely use this feature because this is so complicated. I would still like a preference for this, but I think a prefilled dialog window would not be more disruptive than doing a manual assignment first.
(PS: Just another bug I did not yet find the time to fix - since the Inspector refactoring, you cannot even longer drag the object from an inspector field into a workspace. Instead, you will always end up with a variable pointing to the InspectorField instance itself ...)
Sent from Squeak Inbox Talk [https://github.com/hpi-swa-lab/squeak-inbox-talk]
On 2020-03-25T09:23:41+01:00, marcel.taeumel at hpi.de wrote:
> > What about a preference for this particular behavior? :-)
> That's even worse for this issue here. ;-) I think we can do better.
> Am 25.03.2020 09:23:01 schrieb Marcel Taeumel <marcel.taeumel at hpi.de>:
> Sounds good. It is also very easy to rename the generated variable. In the workspace just type: "preferredName := " then drop the object. No need for a disruptive dialog window.
> Still -1 for the extra dialog window.
> Am 24.03.2020 20:38:02 schrieb K K Subbu <kksubbu.ml at gmail.com>:
> On 25/03/20 12:03 AM, Thiede, Christoph wrote:
> > The first thing I do after
> > dropping a variable is assigning it to another variable by hand, so for
> > me, such a prompt would be really helpful. What about a preference for
> > this particular behavior? :-)
> You could generate a name and leave it selected, like in the result of
> printIt. If you don't like the name, just type the new name as usual.
> But if the name is okay, then press right arrow and continue with the
> rest of the line. This will go with the flow.
> Regards .. Subbu
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200325/afd49b1b/attachment.html>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev