Jump to: navigation, search

Recommenders/Attic/New and Noteworthy/0.2

Chain Completion Engine

How many times did you ask yourself "How do I get an instance of X"? And how much time did you spent with shimming from one method call to another to find a call chain returning the type you were looking for?

Clearly, by far too long. Code Recommenders' new chain completion engine supports you in finding all applicable call chains and thus saves you lots of time when learning new APIs. How does it work? In a nutshell, Code Recommenders takes the current context code completion was triggered in and starts a search on all local variables, fields and methods of the enclosing class recursively until a path to the requested type is found (or a time out occurred :D). If it could find some valid paths, it generates ready-to-use code snippets the developer can immediately insert into her code. Look at the screenshots below for some examples:

Completion on this

Recommenders-chain-completion-on-IStatusLineManager.png

Completion from static types

Recommenders-chain-completion-on-IWorkbenchHelpSystem.png

Completion on method returns

Recommenders-chain-completion-on-method-return.png

Completion with type cast

Recommenders-chain-completion-with-cast.png

Templates Completion Engine

Have you ever wondered how to deal with a new framework's objects? Or got tired by continuously writing the same procedures, e.g. instantiating an object and calling a bunch of setters!? For this Eclipse contains standard-templates but they are only few and writing new is time-consuming and often difficult to do.

Our templates completion engine provides templates dynamically created on completion requests. They are not manually crafted but obtained from frequent patterns found in real-life framework usage, i.e. you are instantly served with the most common practices. For this not only the object type is considered, but also what has already been done with the variable itself - our templates are context-sensitive! You can see how they adopt to different occasion in the following screenshots. With this the new templates completion engine provides valuable dynamic shortcuts for frequent code blocks and is also able to guide framework novices with relevant examples.

Completion for Local Declaration

Recommenders-templates-completion-on-button-declaration.png

Dynamic Pattern Completion

Recommenders-templates-completion-on-button-with-observed-calls.png