Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How I expose Java API in textarea for developing java editor

 
sunil antil
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i am sunil developing a java editor. i face following problem. please help me as fast as possible. i am very much thankful. i am waiting for a good answer and saying thanks in advance.

i am developing a java editor . please tell me how expose the java api in my TextArea. thats mean as more advance editor give the suggestions when we write (.) after class name or object. for example

if i write:- obj. [Then suggestion for methods comes after (.)]


Ex. let obj is of type Object class then after dot(.) methods like toString(), equls() etc comes in a drop down list.....
 
Darryl Burke
Bartender
Posts: 5132
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search the net for java autocomplete.
 
Matthew Brown
Bartender
Posts: 4567
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sounds a seriously non-trivial requirement. I'm not sure exactly how I'd go about doing it, but the first step is that you're going to need a Java parser/compiler so that it can understand the text that has been typed in and knows the context of the current cursor position. I wouldn't have thought that getting the drop-down list to appear would be the hard bit. The hard bit will be working out what should be in that list.
 
sunil antil
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for reply i search java autocomplete. but did not get any meaningful result. please tell me is there any api for autocomplete for java api.... or i have to do manually. if i have to do manually then please provide me hint...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic