DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Making a JDT Code Assist Plugin
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 17
Thanks: 4
Thanked 1 Time in 1 Post
Join Date: Jun 2009
Default Making a JDT Code Assist Plugin - 07-02-2009, 01:15 PM

Hello,

I've been researching the JDT plugin for the past month, specifically related to the content-assist function. I discovered how most of it works through debugging, searching through source code, and the like. However, I do have a couple questions which I believe at least several people on this forum can probably very easily answer, and save me further headache. I've noticed that the vanilla CompletionProposal comes with an additionalInfo field, which is used. However, when constructing a JavaCompletionProposal, there is no parameter to enter the additionalinfo information into. Should I create a CompletionProposal, then cast it as a JavaCompletionProposal? Or, should I use the CompletionProposal within every JavaCompletionProposal, assuming then that it is accessed at some point in the completion process? Any advice on where this is usually used would be amazing.

Also, what is the commentary tag format of the additionalInfo? I've gotten <b> and </b> to work, but others that I've tried don't. If there is a website with info on this, that'd be great.

Finally, while I found the parsed representation of packages, fields, methods, and imports, I could not find a way to access the representation of a local variable within a method. There seems to be no method within the Method class which returns it's local variables. Could you point me in the right direction for finding the representation of the local variables of a class?

Thank you for your attention,

Mathew Mooty
Computer Science
Carnegie Mellon University
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem using fast code eclipse plugin rocky123 Eclipse 2 06-17-2009 12:38 AM
Content Assist mmootygam Eclipse 1 06-12-2009 02:13 AM
Key bindings for content assist taras.di Eclipse 0 01-29-2009 07:00 AM
Can't install Axis2 Code Gen plugin on Mac Tom Bates Eclipse 1 01-27-2009 04:58 PM
How to distinguish, by code, between RCP and plugin? gamby Eclipse 1 02-15-2008 06:18 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com