/** */ package com.hundsun.ares.studio.biz.provider; import com.hundsun.ares.studio.jres.metadata.ui.MetadataUI; import org.eclipse.emf.common.EMFPlugin; import org.eclipse.emf.common.ui.EclipseUIPlugin; import org.eclipse.emf.common.util.ResourceLocator; import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry; import org.eclipse.swt.graphics.Image; import com.hundsun.ares.studio.ui.ARESUI; /** * This is the central singleton for the Biz edit plugin. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public final class BizUI extends EMFPlugin { /** * Keep track of the singleton. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final BizUI INSTANCE = new BizUI(); /** * Keep track of the singleton. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static Implementation plugin; /** * Create the instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BizUI() { super (new ResourceLocator [] { ARESUI.INSTANCE, MetadataUI.INSTANCE, }); } /** * Returns the singleton instance of the Eclipse plugin. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the singleton instance. * @generated */ @Override public ResourceLocator getPluginResourceLocator() { return plugin; } /** * Returns the singleton instance of the Eclipse plugin. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the singleton instance. * @generated */ public static Implementation getPlugin() { return plugin; } /** * The actual implementation of the Eclipse <b>Plugin</b>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public static class Implementation extends EclipseUIPlugin { /** * Creates an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Implementation() { super(); // Remember the static instance. // plugin = this; } } /** * ȡͼƬ�ķ�����key��һ�������iconsĿ¼��ͼƬ·�������� * full/obj16/param.gif�� ���ͼƬ������gif������ʡ����չ��full/obj16/param * @param key * @return */ public static Image image(String key) { Object obj = BizUI.INSTANCE.getImage(key); return ExtendedImageRegistry.getInstance().getImage(obj); } }