[platform-dev] Problem with Global Selection Lookup

  • From: "kosmos890" < >
  • To:
  • Subject: [platform-dev] Problem with Global Selection Lookup
  • Date: Thu, 01 Nov 2012 06:51:11 -0400

@Fred

> 
> Have you checked your dependencies ? May be there are several dependencies 
> containing the class Element.
> 

I have two modules. Each module has a dependency on :
-Explorer & Property Sheet 
-Lookup
-Nodes
-Settings
-UI Utilities
-Utilities
-Window System  APIs 

In each module I add the JSoup library : Right click in the Projects Window > 
Properties >Libraries >  Wrapped JARs TAB > Add JAR


> 
> A quick solution to check it: use the menu "Navigate> Go To type" and 
> search for Element. If you find more than one entry for 
> "org.jsoup.nodes.Element" it could be the problem... 
> 

There is only one entry for "org.jsoup.nodes.Element" .

I get Element instances with this way:

Code:

   @Override
   public void resultChanged(LookupEvent ev) {
     
      for(Object o: result.allInstances()){

          if(o.getClass().getName().equals("org.jsoup.nodes.Element")){
             
             //..
          }
      }
   }




@Fred
Your assistance was invaluable. I spend a lot of time to find a solution 
without a result.
Thanks!






[platform-dev] Problem with Global Selection Lookup

kosmos890 11/01/2012

[platform-dev] Re: Problem with Global Selection Lookup

Frédéric Deniger 11/01/2012

<Possible follow-up(s)>

[platform-dev] Problem with Global Selection Lookup

kosmos890 11/02/2012

[platform-dev] Problem with Global Selection Lookup

kosmos890 11/04/2012

Project Features

Project Links

About this Project

Platform was started in November 2009, is owned by Antonin Nebuzelsky, and has 138 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close