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

📄 fileimages.java

📁 基于Eclipse RCP模型下的文档管理程序源代码
💻 JAVA
字号:
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   fileImages.java

package fileexplorer.system;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.swt.graphics.Image;

public class fileImages
{

    public fileImages()
    {
    }

    public static ImageRegistry getImageRegistry()
    {
        if(imageRegistry == null)
        {
            imageRegistry = new ImageRegistry();
            declareImages();
        }
        return imageRegistry;
    }

    private static final void declareImages()
    {
        declareRegistryImage("NEXT", "/icons/forward_nav(1).gif");
        declareRegistryImage("PREV", "/icons/backward_nav(1).gif");
        declareRegistryImage("HOME", "/icons/home_nav(1).gif");
    }

    private static final void declareRegistryImage(String key, String path)
    {
        ImageDescriptor desc = ImageDescriptor.createFromFile(fileexplorer/system/fileImages, path);
        imageRegistry.put(key, desc);
    }

    public static Image getImage(String key)
    {
        return getImageRegistry().get(key);
    }

    public static ImageDescriptor getImageDescriptor(String key)
    {
        return getImageRegistry().getDescriptor(key);
    }

    private static ImageRegistry imageRegistry;
    private static final String ICONS_PATH = "/icons/";
    public static final String NEXT = "NEXT";
    public static final String PREV = "PREV";
    public static final String HOME = "HOME";
}

⌨️ 快捷键说明

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