Automatically Locating Framework Extension Examples

Using and extending a framework is a challenging task whose difficulty is exacerbated by the poor documentation that generally comes with the framework. Even in the presence of such documentation, developers often desire implementation examples for concrete guidance. We propose an approach that automatically locates implementation examples from a code base given light-weight documentation of a framework. Based on our experience with concern-oriented documentation, we created a tool that uses the framework documentation as a template and that finds instances of this template in a code base. The concern instances represent self-contained and structured implementation examples: the relationships and the roles of parts composing the examples are uncovered and explained. With a study comparing the results of our tool with the expertise of Eclipse committers, we show that our approach can locate examples with high precision.

By: Barthélémy Dagenais; Harold Ossher

Published in: RC24515 in 2008


This Research Report is available. This report has been submitted for publication outside of IBM and will probably be copyrighted if accepted for publication. It has been issued as a Research Report for early dissemination of its contents. In view of the transfer of copyright to the outside publisher, its distribution outside of IBM prior to publication should be limited to peer communications and specific requests. After outside publication, requests should be filled only by reprints or legally obtained copies of the article (e.g., payment of royalties). I have read and understand this notice and am a member of the scientific community outside or inside of IBM seeking a single copy only.


Questions about this service can be mailed to .