473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

creating intellisense in a editor - how? tips?

hi,
i'm working on a java editor, college assignment, i wanted to add the
intellisense option in it, but don't know where to start. i was
thinking about displaying a context menu after the user hits the .
(period), but is this the best way? And how do i go about getting the
methods And variables associated with the class?

Thank you.
Jul 17 '05 #1
1 3644
so****@hotmail.com (soni29) wrote in message news:<ca**************************@posting.google. com>...
hi,
i'm working on a java editor, college assignment, i wanted to add the
intellisense option in it, but don't know where to start. i was
thinking about displaying a context menu after the user hits the .
(period), but is this the best way? And how do i go about getting the
methods And variables associated with the class?

Thank you.


Well here are some ideas from the top of my head.

To get all of the methods and vars from a class you can do one of two
things, use reflection, (java.lang.reflect) or look at the actuial
byte code. I've recently stumbled upon BCEL which is a great way to
view byte code from a class file... check it out:
http://jakarta.apache.org/bcel/

Then what you could do is create a HashMap of objects currently
available from within your editor and add a list of all the context
info related to that class as the value of one of the map keys.

After becomming spoiled with Eclipse I can't imagine NOT having all of
the intellisense available. Go for it!
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: pytopo | last post by:
I like the way call tips displays argument variables for functions when you type the "(" after the function name. However, if one of the arguments to the function is something like...
3
by: Microsoft | last post by:
I have to create the Graphical Editor on the top our windows application Currently is VB style , but should be migrated to .NET Please shed light upon creating Graphical Editor (drag and drop,...
12
by: Peter van der Goes | last post by:
When a struct is created in C# and a parameterized constructor defined, the IntelliSense editor shows only the syntax for the parameterized constructor in tooltips, but not for the default...
9
by: news.microsoft.com | last post by:
Dear all, I have to do a source code editor to implement syntax hilighted with special colors , IntelliSense function. Could anybody give me some tips or links? Thanks,
12
by: Peteroid | last post by:
I was creating my application just fine for the last 3 weeks or so. Then, starting this morning, IntelliSense seems to be having problems. It goes into a locked 'Updating IntelliSense..." mode....
1
by: =?Utf-8?B?Sm9iIExvdA==?= | last post by:
i am creating a formula editor and would like to provide intellisense feature to the textbox in formula editor. does any one know how can i do that? thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.