Search in sources :

Example 1 with IBundleInfo

use of org.python.pydev.shared_ui.bundle.IBundleInfo in project Pydev by fabioz.

the class SharedUiPlugin method getImageCache.

/**
 * @return the cache that should be used to access images within the pydev plugin.
 */
public static IImageCache getImageCache() {
    if (imageCache == null) {
        IBundleInfo bundleInfo = SharedUiPlugin.getBundleInfo();
        if (bundleInfo == null) {
            return null;
        }
        imageCache = bundleInfo.getImageCache();
    }
    return imageCache;
}
Also used : IBundleInfo(org.python.pydev.shared_ui.bundle.IBundleInfo)

Example 2 with IBundleInfo

use of org.python.pydev.shared_ui.bundle.IBundleInfo in project Pydev by fabioz.

the class SharedUiPlugin method getBundleInfo.

public static IBundleInfo getBundleInfo() {
    if (SharedUiPlugin.info == null) {
        SharedUiPlugin bundle = SharedUiPlugin.getDefault();
        if (bundle == null) {
            return null;
        }
        SharedUiPlugin.info = new BundleInfo(bundle.getBundle());
    }
    return SharedUiPlugin.info;
}
Also used : IBundleInfo(org.python.pydev.shared_ui.bundle.IBundleInfo) BundleInfo(org.python.pydev.shared_ui.bundle.BundleInfo)

Aggregations

IBundleInfo (org.python.pydev.shared_ui.bundle.IBundleInfo)2 BundleInfo (org.python.pydev.shared_ui.bundle.BundleInfo)1