freehep-util (2.0.2-4) patch/openide-api.diff

Summary

 src/main/java/org/freehep/util/FreeHEPLookup.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

From: Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
Subject: [PATCH] patch/openide-api

Fixes some differences in openide-util API

Signed-off-by: Giovanni Mascellani <mascellani@poisson.phc.unipi.it>

---
 src/main/java/org/freehep/util/FreeHEPLookup.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/freehep/util/FreeHEPLookup.java b/src/main/java/org/freehep/util/FreeHEPLookup.java
index d339830..43ddce0 100644
--- a/src/main/java/org/freehep/util/FreeHEPLookup.java
+++ b/src/main/java/org/freehep/util/FreeHEPLookup.java
@@ -1,7 +1,7 @@
 package org.freehep.util;
 
 import org.openide.util.Lookup;
-import org.openide.util.MetaInfServicesLookup;
+import org.openide.util.lookup.Lookups;
 import org.openide.util.lookup.AbstractLookup;
 import org.openide.util.lookup.InstanceContent;
 import org.openide.util.lookup.ProxyLookup;
@@ -86,7 +86,7 @@ public class FreeHEPLookup extends Lookup
     */   
    public void setClassLoader(ClassLoader loader)
    {
-      Lookup serviceLookup = new MetaInfServicesLookup(loader);
+      Lookup serviceLookup = Lookups.metaInfServices(loader);
       proxy.setLookups(contentLookup, serviceLookup);
    }
    public Lookup.Result lookup(Lookup.Template template)
-- 
tg: (3a6bbbc..) patch/openide-api (depends on: master)