Good. The "Paste as Java String" mentioned would be another possible solution. Someone also brought up reversing the process that would strip Java String expressions. I suppose I'll take a peak at the OpenAPI to see what can be accomplished.
Thanks, Jon Chris Bartley wrote: > This idea was discussed a little bit back in May: > > http://lists.jetbrains.com/pipermail/eap-features/2002-May/000883.html > http://lists.jetbrains.com/pipermail/eap-features/2002-May/000897.html > http://lists.jetbrains.com/pipermail/eap-features/2002-May/000902.html > http://lists.jetbrains.com/pipermail/eap-features/2002-May/000905.html > > I haven't looked at the Open API too much to say for sure, but i suspect > this functionality could be accomplished with a plugin. > > chris > > "Jon Steelman" <[EMAIL PROTECTED]> wrote in message > alb2rg$p69$[EMAIL PROTECTED]">news:alb2rg$p69$[EMAIL PROTECTED]... > >>It doesn't look like live templates give the power to take $SELECTION$ >>and parse the selection for linebreaks so that you can go from selecting >> the following: >>select * from customer >>where customer_id > 1 >> and deleted = 0 >>and transforming to the following: >>"select * from customer "+ >>"where customer_id > 1 "+ >> "and deleted = 0 " >> >>I guess JetBrains would have to implement using 'Code>Surround With' or >>have to increase the power of live templating. >> >>Jon Steelman wrote: >> >>>I don't see a way to take a pasted in series of unquoted lines and make >>>them a String expression-- to Stringify the text. Did I overlook this >>>feature in IDEA? An example is after you work up a piece of SQL that you >>>finish testing with direct execution (such as with SQLViewer!), and then >>>you have the lines (example raw SQL below) that you want to make into a >>>legitimate String expression for JDBC. Before I file a feature request, >>>I'd like to know what folks think would be the best way to do this and >>>where it would fit most naturally-- a live template by parsing through >>>$SELECTION$, a new "Code > Surround With" option, some other approach? >>> >>>Thanks, >>>Jon >>> >>> >>>select a.customer_entity_id, customer_name, license_begin, license_end, >>>(select >>>count( *) >>>from vw_customer_rep >>>x >>>where a.customer_entity_id = x.customer_entity_id >>>and exists >>>(select >>>null >>>from user_account >>>y >>>where x.user_account_id = y.user_account_id >>>and y.deleted <> '1') ) as customer_rep_count >>>from customer >>>a, >>>customer_license >>>b >>>where a.customer_entity_id = b.customer_entity_id >>>order by >>>customer_name >>> >> > > _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-features
