Package ccw

Examples of ccw.CCWPlugin


     * Returns the image descriptor with the given relative path.
     */
    private ImageDescriptor getImageDescriptor(String relativePath) {
            String iconPath = "icons/";
            try {
                    CCWPlugin plugin = CCWPlugin.getDefault();
                    URL installURL = plugin.getDescriptor().getInstallURL();
                    URL url = new URL(installURL, iconPath + relativePath);
                    return ImageDescriptor.createFromURL(url);
            }
            catch (MalformedURLException e) {
                    // should not happen
View Full Code Here


public class ClojureOSGi {
  private static volatile boolean initialized;
  private synchronized static void initialize() {
    if (initialized) return;
   
    CCWPlugin plugin = CCWPlugin.getDefault();
    if (plugin == null) {
      System.out.println("======= ClojureOSGi.initialize will fail because ccw.core plugin not activated yet");
      System.out.flush();
    }
    ClassLoader loader = new BundleClassLoader(plugin.getBundle());
    ClassLoader saved = Thread.currentThread().getContextClassLoader();
    try {
      Thread.currentThread().setContextClassLoader(loader);
      Class.forName("clojure.lang.RT", true, loader); // very important, uses the right classloader
      CCWPlugin.getTracer().trace(TraceOptions.CLOJURE_OSGI, "namespace clojure.core loaded");
View Full Code Here

TOP

Related Classes of ccw.CCWPlugin

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.