ACM Home Page
Please provide us with feedback. Feedback
Context-sensitive cut, copy, and paste
Full text PdfPdf (897 KB)
Source C3S2E; Vol. 290 archive
Proceedings of the 2008 C3S2E conference table of contents
Montreal, Quebec, Canada
SESSION: Wo/man machine interaction table of contents
Pages 159-166  
Year of Publication: 2008
ISBN:978-1-60558-101-9
Authors
Reid Kerr  University of Waterloo, Waterloo, Canada
Wolfgang Stuerzlinger  York University, Toronto, Canada
Sponsors
: ACM International Conference Proceedings Series
Concordia University : Concordia University
: BytePress
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 9,   Downloads (12 Months): 34,   Citation Count: 0
Additional Information:

abstract   references   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1370256.1370283
What is a DOI?

ABSTRACT

Creating and editing source code are tedious and error-prone processes. One important source of errors in editing programs is the failure to correctly adapt a block of copied code to a new context. This occurs because several dependencies to the surrounding code usually need to be adapted for the new context and it is easy to forget one of them. Conversely, this also makes such errors hard to find.

This paper presents a new method for identifying some common types of errors in cut, copy and paste operations. The method analyzes the context of the original block of code and tries to match it with the context in the new location. It utilizes a simple, pattern-based model of context, which we found to be well suited to the analysis of relocated blocks of text. Furthermore, we discuss the ability of our technique to detect semantic errors. While semantic errors are relatively difficult to recognize in a static document, our new technique can infer important information from the original context to detect some semantic mismatches. Finally, we present a proof-of-concept implementation and discuss our simple user interface for context-sensitive cut, copy and paste.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
2
3
4
5
 
6
7
 
8
A. Ko, H. Aung, B. Myers. Eliciting Design Requirements for Maintenance-Oriented IDEs: A Detailed Study of Corrective and Perfective Maintenance Tasks. In CHI '05 extended abstracts, 1557--1560, 2005.
9
10
 
11
T. Lethbridge, N. Anquetil. Comparative study of clustering algorithms and abstract representations for software remodularization. IEE Software, 150(3):185--201, 2003.
 
12
 
13
14
 
15
 
16

Collaborative Colleagues:
Reid Kerr: colleagues
Wolfgang Stuerzlinger: colleagues