⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bundleinfo.java

📁 Python Development Environment (Python IDE plugin for Eclipse). Features editor, code completion, re
💻 JAVA
字号:
/*
 * Created on May 11, 2005
 *
 * @author Fabio Zadrozny
 */
package org.python.pydev.core.bundle;

import java.io.File;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.osgi.framework.Bundle;

/**
 * @author Fabio Zadrozny
 */
public class BundleInfo implements IBundleInfo{

    private Bundle bundle;

    public BundleInfo(Bundle bundle) {
        this.bundle = bundle;
    }

    /**
     * @throws CoreException
     * @see org.python.pydev.core.bundle.IBundleInfo#getRelativePath(org.eclipse.core.runtime.IPath)
     */
    public File getRelativePath(IPath relative) throws CoreException {
        return BundleUtils.getRelative(relative, bundle);
    }
    
	/**
     * @see org.python.pydev.core.bundle.IBundleInfo#getPluginID()
     */
    public String getPluginID() {
        return bundle.getSymbolicName();
    }

    
    private ImageCache imageCache;
    
    /**
     * @see org.python.pydev.core.bundle.IBundleInfo#getImageCache()
     */
    public ImageCache getImageCache() {
        if(imageCache == null){
            imageCache = new ImageCache(bundle.getEntry("/"));
        }
        return imageCache;
    }
    
    

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -