Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-ui-dev] extracting selected text from java-editor



Ashwini,

such questions are better asked on the newsgroups
(http://www.eclipse.org/newsgroups/index.html). To answer your question:
add a post selection listener (see ISelectionService) to get notified about
selection changes in the editor(s).

Dani


                                                                           
             ashwini verma                                                 
             <luv_you_ash@yaho                                             
             o.com>                                                     To 
             Sent by:                  jdt-ui-dev@xxxxxxxxxxx              
             jdt-ui-dev-admin@                                          cc 
             eclipse.org                                                   
                                                                   Subject 
                                       [jdt-ui-dev] extracting selected    
             02.02.2004 17:21          text from java-editor               
                                                                           
                                                                           
             Please respond to                                             
             jdt-ui-dev@eclips                                             
                   e.org                                                   
                                                                           
                                                                           




Sir,


     i am making a project


     Project Definition :: -


                 while viewing the code in java-editor when you click on
any symbol(which could be method name or variable name) , a view in the
page of workbench will show the reference information of that symbol (i.e
where this variable is referenced in other packages or files in the project
code ).


what i want to know ::-


                     i want to catch the click event and get the string on
which the code viewer has clicked ,how can i make a program which will
recieve the string the moment the person click on the string.


                     what all classes will i need.


                                                          - ashwini





Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!





Back to the top