ipublicimages.java

来自「J2EE eclipse 下开发数据库一个插件」· Java 代码 · 共 70 行

JAVA
70
字号
/*
 * Created on 2003-5-2
 *
 */
package com.tanghan.plugin;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;
import org.eclipse.jface.resource.ImageRegistry;
/**
 * 得到TanghanPlugin中所用的图形
 * @author Jerry Tang
 * @version v0.1.0
 * @copyright  (C) 2003 Tanghan工作组
 *
 */
public interface IPublicImages {
/*
 	public static final int
		imgConnection = 0,
		imgDisConnect = 1,
		imgTables = 2,
		imgTable = 3,
		imgViews = 4,
		imgView = 5,
		imgField = 6,
		imgDatabase = 7; */
	/**图形*/
	public static final String IMG_DB_CONNECTION = "IMG_DB_CONNECTION";
	public static final String IMG_DB_DISCONNECTION = "IMG_DB_DISCONNECTION";
	public static final String IMG_DB_TABLES = "IMG_DB_TABLES";
	public static final String IMG_DB_TABLE = "IMG_DB_TABLE";
	public static final String IMG_DB_VIEWS = "IMG_DB_VIEWS";
	public static final String IMG_DB_VIEW = "IMG_DB_VIEW";
	public static final String IMG_DB_FIELD = "IMG_DB_FIELD";
	public static final String IMG_DB_COLUMN_PRIMARYKEY = "IMG_DB_COLUMN_PRIMARYKEY";
	public static final String IMG_DB_COLUMN_FOREIGNKEY = "IMG_DB_COLUMN_FOREIGNKEY";
	
	public static final String IMG_DB_DATABASE = "IMG_DB_DATABASE";
	public static final String IMG_DRIVER_DRIVERS = "IMG_DRIVER_DRIVERS";
	public static final String IMG_DRIVER_DRIVER_ACTIVE = "IMG_DRIVER_DRIVER_ACTIVE";
	public static final String IMG_DRIVER_DRIVER_INACTIVE = "IMG_DRIVER_DRIVER_INACTIVE";
	//drivers.gif
	/**
	 * Retrieves the specified image from the workbench plugin's image registry.
	 * Note: The returned <code>Image</code> is managed by the workbench; clients
	 * must <b>not</b> dispose of the returned image.
	 *
	 * @param symbolicName the symbolic name of the image (constants found in
	 *    this interface)
	 * @return the image, or <code>null</code> if not found
	 */
	public Image getImage(String symbolicName);
	/**
	 * Retrieves the image descriptor for specified image from the workbench's
	 * image registry. Unlike <code>Image</code>s, image descriptors themselves do
	 * not need to be disposed.
	 *
	 * @param symbolicName the symbolic name of the image (constants found in
	 *    this interface)
	 * @return the image descriptor, or <code>null</code> if not found
	 */
	public ImageDescriptor getImageDescriptor(String symbolicName);	
	/**
	 * get a new ImageRegistry
	 * @return a new ImageRegistry
	 * */
	public ImageRegistry getImageRegistry();
}

⌨️ 快捷键说明

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