Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] how to create IJavaSearchScope that would include all necessary projectes/libraries?

Instead of adding all referencing projects, you could add the package
fragment roots of each referencing project (see
IJavaProject,getPackageFragmentRoots()).

Jerome



                                                                                                                                              
                      "Adam Kiezun"                                                                                                           
                      <adam.kiezun@xxxxxx         To:      <jdt-core-dev@xxxxxxxxxxx>                                                         
                      t>                          cc:                                                                                         
                      Sent by:                    Subject: [jdt-core-dev] how to create IJavaSearchScope that would include all necessary     
                      jdt-core-dev-admin@         projectes/libraries?                                                                        
                      eclipse.org                                                                                                             
                                                                                                                                              
                                                                                                                                              
                      03/12/2002 02:29 PM                                                                                                     
                      Please respond to                                                                                                       
                      jdt-core-dev                                                                                                            
                                                                                                                                              
                                                                                                                                              



hi all,
i have an IJavaElement in hand
how do i create a IJavaSearchScope that would include _everything_ that can
possibly have references to that element (and be smaller than workspace
scope)?

i mean, i have code that adds all referencing projects - but that algorithm
is not correct since projects can export some of their classpath entries
(which wasn't true when i wrote it (basically copied Jerome's suggestions -
thanks :))).

could this be implented in jcore?
if not, can you come up with some code that does it correctly?

thx
a.

_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-core-dev






Back to the top