@Override protected void initializeImageRegistry(ImageRegistry pReg) { super.initializeImageRegistry(pReg); internalRegisterImg(pReg, ImageConstants.SOURCE_FOLDER); internalRegisterImg(pReg, ImageConstants.EXTENSION_POINT); }
/** * @see * org.eclipse.ui.plugin.AbstractUIPlugin#initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry) */ @Override protected void initializeImageRegistry(final ImageRegistry reg) { super.initializeImageRegistry(reg); final URL baseURL = getBundle().getEntry("/"); createImageDescriptor(ErlideUIConstants.IMG_CONSOLE, baseURL); createImageDescriptor(ErlideUIConstants.IMG_NEW_PROJECT_WIZARD, baseURL); createImageDescriptor(ErlideUIConstants.IMG_PROJECT_LABEL, baseURL); createImageDescriptor(ErlideUIConstants.IMG_PACKAGE_FOLDER_LABEL, baseURL); createImageDescriptor(ErlideUIConstants.IMG_PACKAGE_LABEL, baseURL); createImageDescriptor(ErlideUIConstants.IMG_FILE_LABEL, baseURL); createImageDescriptor(ErlideUIConstants.IMG_FOLDER_LABEL, baseURL); createImageDescriptor(ErlideUIConstants.IMG_DISABLED_REFRESH, baseURL); createImageDescriptor(ErlideUIConstants.IMG_REFRESH, baseURL); createImageDescriptor(ErlideUIConstants.IMG_DISABLED_IMPORT, baseURL); createImageDescriptor(ErlideUIConstants.IMG_IMPORT, baseURL); createImageDescriptor(ErlideUIConstants.IMG_DISABLED_EXPORT, baseURL); createImageDescriptor(ErlideUIConstants.IMG_EXPORT, baseURL); createImageDescriptor(ErlideUIConstants.IMG_COLLAPSEALL, baseURL); createImageDescriptor(ErlideUIConstants.IMG_PROJECT_CLOSED_LABEL, baseURL); createImageDescriptor(ErlideUIConstants.IMG_ERLANG_LOGO, baseURL); }
protected void initializeImageRegistry(ImageRegistry registry) { super.initializeImageRegistry(registry); this.registry = registry; registerImages(); // ..他にも登録 }
@Override protected void initializeImageRegistry(ImageRegistry reg) { super.initializeImageRegistry(reg); reg.put(PROJECT_DECORATOR, imageDescriptorFromPlugin(PLUGIN_ID, PROJECT_DECORATOR)); }