<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
Hi Marcel,</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
thanks for the reply! I'll be happy to add a callback within the next days.</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
(Side question: Is there any reason why Symbol does not implement #valueWithPossibleArgs:? I think this could improve the code style of SimpleHierarchicalListMorph>>#keyStrokeAction: & Co.)</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
Best,</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">
Christoph</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
 </div>
<div id="appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Marcel Taeumel <marcel.taeumel@hpi.de><br>
<b>Gesendet:</b> Montag, 1. Juli 2019 09:13 Uhr<br>
<b>An:</b> Robert via Squeak-dev<br>
<b>Betreff:</b> Re: [squeak-dev] The Inbox: Tools-ct.852.mcz</font>
<div> </div>
</div>
<div>
<div id="x___MailbirdStyleContent" style="font-size:10pt; font-family:Arial; color:#000000">
Hi Christoph,
<div><br>
</div>
<div>you could use the pattern for optional arguments in model callbacks such as in SimpleHierarchicalListMorph >> #keyStrokeAction: or EventHandler >> #send:to:withEvent:fromMorph:.</div>
<div><br>
</div>
<div>Or, since #aboutToStyle: is a hard-coded callback, you could just support another hard-coded version: #aboutToStyle:fromMorph:. Check it with #respondsTo: such as in TextEditor >> #evaluateSelectionAndDo:.</div>
<div><br>
</div>
<div>(In 2015, I removed the #respondsTo: check from PluggableTextMorphPlus >> #okToStyle:. Not sure why. Maybe performance reasons. I suppose that if a client configured #styler, that extra check felt unnecssary.)</div>
<div><br>
</div>
<div>Best,</div>
<div>Marcel</div>
<div class="x_mb_sig"></div>
<blockquote class="x_history_container" type="cite" style="border-left-style:solid; border-width:1px; margin-top:20px; margin-left:0px; padding-left:10px; min-width:500px">
<p style="margin-top: 0px; margin-bottom: 0px;color:#AAAAAA; margin-top:10px">Am 30.06.2019 22:26:29 schrieb Christoph Thiede <christoph.thiede@outlook.de>:</p>
<div style="font-family:Arial,Helvetica,sans-serif">My desire was to activate styling in the Debugger's inspector panes for the<br>
case you type some expression into one of the panes. Unfortunately with this<br>
commit, each string representation of a selected instance/temporary var is<br>
styled as well. This is a general proposal about the Inspector: Do you think<br>
it would be a good idea to disable the styling when any variable is<br>
selected, and to activate it on any editText event?<br>
<br>
As far as I found out, there is no option to identify the relevant<br>
PluggableTextMorphPlus from #aboutToStyle:, so my only idea would be to<br>
remember the morph in an instvar of the Inspector and set its styler each<br>
time* to nil respectively a styler object. But that looks kind of hacky to<br>
myself ...<br>
*The styler would have to be updated in #toggleIndex: as well as in a<br>
selector like #editText:, where the latter does not exist yet.<br>
<br>
Do you think styling in Inspector would be worth these changes? Is there any<br>
better way to toggle styling (but looking at Workspace>>#toggleStyling, I do<br>
not think so)? Or would it even be worth thinking about introducing a custom<br>
selector to be called in PluggableTextMorphPlus>>#okToStyle?<br>
<br>
I would be glad about any advices!<br>
<br>
<br>
<br>
--<br>
Sent from: http://forum.world.st/Squeak-Dev-f45488.html<br>
<br>
</div>
</blockquote>
</div>
</div>
</body>
</html>