Package org.eclipse.core.runtime.internal.adaptor

Examples of org.eclipse.core.runtime.internal.adaptor.ContextFinder


        if (appCL != null)
          parent = appCL.getParent();
      } else { // default is ccl (null or any other value will use ccl)
        parent = current.getContextClassLoader();
      }
      contextFinder = new ContextFinder(parent);
      current.setContextClassLoader(contextFinder);
      return;
    } catch (Exception e) {
      FrameworkLogEntry entry = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.INFO, 0, NLS.bind(Msg.CANNOT_SET_CONTEXTFINDER, null), 0, e, null);
      adaptor.getFrameworkLog().log(entry);
View Full Code Here


        if (appCL != null)
          parent = appCL.getParent();
      } else { // default is ccl (null or any other value will use ccl)
        parent = current.getContextClassLoader();
      }
      contextFinder = new ContextFinder(parent);
      current.setContextClassLoader(contextFinder);
      return;
    } catch (Exception e) {
      FrameworkLogEntry entry = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.INFO, 0, NLS.bind(Msg.CANNOT_SET_CONTEXTFINDER, null), 0, e, null);
      adaptor.getFrameworkLog().log(entry);
View Full Code Here

      } else { // default is ccl (null or any other value will use ccl)
        Method getContextClassLoader = Thread.class.getMethod("getContextClassLoader", null); //$NON-NLS-1$
        parent = (ClassLoader) getContextClassLoader.invoke(current, null);
      }
      Method setContextClassLoader = Thread.class.getMethod("setContextClassLoader", new Class[] {ClassLoader.class}); //$NON-NLS-1$
      Object[] params = new Object[] {new ContextFinder(parent)};
      setContextClassLoader.invoke(current, params);
      return;
    } catch (SecurityException e) {
      // log the error
      error = e;
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.internal.adaptor.ContextFinder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.