User Interface Specification:
Smart Enter inside String

Author: Gabriel Tichy
$Revision: 1.3 $
Table of Contents:


Introduction

When the user is typing a string and wants to insert a new line (where he wants to continue typing of the string), it's convenient to provide smart split, i.e to ensure that the source code remains in a consistent state.

Detailed Specification

If Enter is pressed inside a string, the line is splitted as normally, but some additional characters are added automatically onto two places:

  • a closing quote with + sign at the end of the splitted line
  • an opening quote at the beginning of the second line

Enter in Action

Before Enter


After Enter


  • indentation works as usually
  • all white characters are preserved (it's the difference from the normal Enter)
  • caret is moved after the opening quote

Undo

Undo is working exactly in the opposite direction.

Project Features

About this Project

ui was started in November 2009, is owned by Jiří Kovalský, and has 43 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close