📄 fileimages.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 + -