Quack Plugin
Quack is an Eclipse Plug-in. Once the plug-in is installed, use it by entering keywords separated by spaces, and then pressing Ctrl-Space. Quack then suggests Java expressions which contain your keywords, as shown here:
Terms and Conditions
- Use at your own risk.
- Requires Eclipse 3.3.0 or greater.
- The software will create a file called quack.log in the root directory of every Eclipse project you use it in.
Instructions
| Update Site: | http://glittle.org/quack |
| Feedback/Questions to: | glittle@gmail.com |
Check Eclipse version (3.3.0 or greater is required)
- open Eclipse
- open the Help menu
- open About Eclipse SDK or About Eclipse Platform
- look for a version number like 3.3.0
- if the version is less than 3.3.0, download eclipse here
Open Find and Install... dialog
- open Eclipse version 3.3.0 or greater
- open the Help menu
- open the Software Updates submenu
- select Find and Install...
Add update site: http://glittle.org/quack
- choose Search for new features to install
- click Next >
- click New Remote Site...
- enter the name: Quack
- enter the URL: http://glittle.org/quack
- click OK
Select Quack Plug-in 0.x.x from update site
- make sure Quack has a check next to it in the list
- click Finish
- expand the items in the tree view until you see Quack Plug-in 0.x.x
- check the box next to Quack Plug-in 0.x.x
- click Next >
Finish installation
- accept the license agreement by clicking the radio button
- click Next >
- click Finish
- click Install
- click Yes to restart Eclipse
Try it out
- open a .java file
- take an existing expression, like rc.getRobotType(), and replace it with keywords from the expression, like rc type
- press Ctrl-Space, as if you were going to use auto-complete
- if your desired expression is at the top of the list, press Enter to choose it
- if your desired expression is lower in the list, press Tab, and then use the arrow keys to select it, and then press Enter
- if your desired expression is not in the list, try adding more keywords, and pressing Ctrl-Space again
- if your desired expression never comes up, try using Quack to guess a different expression (and read the notes below)
Notes
- to invoke the system on a single keyword, put a space after it, and then press Ctrl-Space
- if nothing happens when you press Ctrl-Space, and you think it should, check quack.log for an error (if you see a stack-trace at the bottom, there was an error, and you can cut/paste/send it to me)
- it will only consider two levels of nested expressions, like a(b(c())), but not a(b(c(d())))
- it will probably not guess a field or method from a class you have not imported
- it roughly considers only methods and fields for classes that you reference in the current file, as well as classes referenced as the return type of those methods and fields
- please send feedback/questions to glittle@gmail.com