I'd like the ability to extend the SidekickCompletionPopup class so that I can display
additional information about the completion, as in the screenshot attached (from eclipse).
It can be done in many ways, here one possible implementation: the SidekickParser
could have a getCompletionPopup class like this:
public CompletionPopup getCompletionPopup( View view, int caretPosition, SideKickCompletion
complete, boolean active){
return new SideKickCompletionPopup(view, this,
caretPosition, complete, active){
/\*\* forget reference to this popup when it is disposed \*/
public void dispose()
{
super.dispose();
popup = null;
}
};
}
}
Submitted | rfrancois - 2009-04-02 08:30:40 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | |
Status | open | Group | None |
Resolution | None |
2009-04-02 08:30:40 rfrancois |
Screenshot.png (62.7Kio) |
---|---|
2009-04-02 08:38:47 rfrancois |
Sorry, I pressed "Add artifact" too soon.
|
2009-04-02 12:54:58 rfrancois |
Screenshot-2.png (22.2Kio) |
2009-04-02 12:59:28 rfrancois |
With the proposed "design", I've achieved the Screenshot attached by extending slightly
the SideKickCompletionPopup associated with my parser. I would be happy to send a
formal patch if needed.
|
2009-04-02 13:49:44 *anonymous |
How did you achieve that? Did you create your own Candidates implementation and use the renderer to find the selected item? |
2009-04-02 14:04:25 rfrancois |
Almost. Sidekick defines the Candidates interface as a private class within SidekickCompletion,
so there is a little I can do with it from outside, but I took inspiration from this
approach. |
2009-04-02 19:06:18 rfrancois |
sidekick.diff (1.7Kio) |