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

  • From: Frédéric Deniger < >
  • To:
  • Subject: [platform-dev] Re: Problem with Global Selection Lookup
  • Date: Thu, 01 Nov 2012 17:53:42 +0100

It seems you have a classpath problem but I don't know how a ant base Netbeans RCP applications works....

You could try to put your 2 Topcomponents in the same module to check it

Fred

Le 01/11/2012 11:51, kosmos890 a écrit :
@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 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close