The Artima Developer Community
Sponsored Link

Agile Buzz Forum
RBStringEditor

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
RBStringEditor Posted: Jan 16, 2008 12:26 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: RBStringEditor
Feed Title: Travis Griggs - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/travis-rss.xml
Feed Description: This TAG Line is Extra
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Travis Griggs - Blog

Advertisement

From the "more simple ideas inspired by Bob Westergaard" department. Bob pointed out to me the other day, that sometimes he has these messages which are basically there just as string constants. Perhaps the text for an introduction screen in a game. Something like:


introString

    ^'Hello World!'

except... the text is much longer than 'Hello World.' In these cases, it can be a real pain. Code Highlighting helps a little, but invariably, you'll have a contraction mark in there that needs to be doubled and it's just a pain. It took me a while to understand the people in his "simple ideas" department, because of my density. But once I understood it, I thought "that's kinda cool." So I ran off and did it. You can find the result in the Open Repository as RBStringEditor.

What it does is simply note when a method is of the above pattern. One literal which is a string, returned. When one is selected, it activates this tool causing it to show up in the tabbed tool list. Said tool allows one to edit the text of the string directly. No need to double quote embedded quotes. Or be annoyed that the formatter places the first line indented. Just good old fashion text editing. And when you accept the method, it uses the rewriter to place the new string in place of the old one. So comments and method tags are left in place.

Read: RBStringEditor

Topic: WebVelocity-20080114-Package.png Previous Topic   Next Topic Topic: WebVelocity-20080114-Class.png

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use