• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

How I expose Java API in textarea for developing java editor

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.....
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Search the net for java autocomplete.
 
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic