Java Code Examples for org.eclipse.jface.resource.ImageDescriptor#createFromImageData()
The following examples show how to use
org.eclipse.jface.resource.ImageDescriptor#createFromImageData() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServiceKarafRepositoryMavenSetting.java From tesb-studio-se with Apache License 2.0 | 6 votes |
@Override protected RepositoryPreferenceNode createKarafFolderNode(String id, ILabelProvider labelProvider, RepositoryNode node) { ServicesKarafRepositorySettingNode servicesKarafNode = null; if (labelProvider == null) { servicesKarafNode = new ServicesKarafRepositorySettingNode(id, node); } else { String label = labelProvider.getText(node); ImageDescriptor imageDesc = null; Image image = labelProvider.getImage(node); if (image != null) { imageDesc = ImageDescriptor.createFromImageData(image.getImageData()); } servicesKarafNode = new ServicesKarafRepositorySettingNode(id, label, imageDesc, node); } return servicesKarafNode; }
Example 2
Source File: RoutesKarafRepositoryMavenSetting.java From tesb-studio-se with Apache License 2.0 | 6 votes |
@Override protected RepositoryPreferenceNode createKarafFolderNode(String id, ILabelProvider labelProvider, RepositoryNode node) { RoutesKarafRepositorySettingNode routesKarafNode = null; if (labelProvider == null) { routesKarafNode = new RoutesKarafRepositorySettingNode(id, node); } else { String label = labelProvider.getText(node); ImageDescriptor imageDesc = null; Image image = labelProvider.getImage(node); if (image != null) { imageDesc = ImageDescriptor.createFromImageData(image.getImageData()); } routesKarafNode = new RoutesKarafRepositorySettingNode(id, label, imageDesc, node); } return routesKarafNode; }
Example 3
Source File: Activator.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * 提供一个图片文件对插件的相对路径,返回该图片被伸缩变换为16*16像素的描述信息。 * @param path * the path * @return the icon descriptor */ public static ImageDescriptor getIconDescriptor(String path) { ImageDescriptor image = getImageDescriptor(path); ImageData data = image.getImageData(); data = data.scaledTo(16, 16); image = ImageDescriptor.createFromImageData(data); return image; }
Example 4
Source File: Activator.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * 提供一个图片文件对插件的相对路径,返回该图片被伸缩变换为16*16像素的描述信息。 * @param path * the path * @return the icon descriptor */ public static ImageDescriptor getIconDescriptor(String path) { ImageDescriptor image = getImageDescriptor(path); ImageData data = image.getImageData(); data = data.scaledTo(16, 16); image = ImageDescriptor.createFromImageData(data); return image; }
Example 5
Source File: Activator.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * 提供一个图片文件对插件的相对路径,返回该图片被伸缩变换为16*16像素的描述信息。 * @param path * the path * @return the icon descriptor */ public static ImageDescriptor getIconDescriptor(String path) { ImageDescriptor image = getImageDescriptor(path); ImageData data = image.getImageData(); data = data.scaledTo(16, 16); image = ImageDescriptor.createFromImageData(data); return image; }
Example 6
Source File: Activator.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * 提供一个图片文件对插件的相对路径,返回该图片被伸缩变换为16*16像素的描述信息。 * @param path * the path * @return the icon descriptor */ public static ImageDescriptor getIconDescriptor(String path) { ImageDescriptor image = getImageDescriptor(path); ImageData data = image.getImageData(); data = data.scaledTo(16, 16); image = ImageDescriptor.createFromImageData(data); return image; }
Example 7
Source File: Activator.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * 提供一个图片文件对插件的相对路径,返回该图片被伸缩变换为16*16像素的描述信息。 * @param path * the path * @return the icon descriptor */ public static ImageDescriptor getIconDescriptor(String path) { ImageDescriptor image = getImageDescriptor(path); ImageData data = image.getImageData(); data = data.scaledTo(16, 16); image = ImageDescriptor.createFromImageData(data); return image; }
Example 8
Source File: Activator.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * 提供一个图片文件对插件的相对路径,返回该图片被伸缩变换为16*16像素的描述信息。 * @param path * the path * @return the icon descriptor */ public static ImageDescriptor getIconDescriptor(String path) { ImageDescriptor image = getImageDescriptor(path); ImageData data = image.getImageData(); data = data.scaledTo(16, 16); image = ImageDescriptor.createFromImageData(data); return image; }
Example 9
Source File: Activator.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * 提供一个图片文件对插件的相对路径,返回该图片被伸缩变换为16*16像素的描述信息。 * @param path * the path * @return the icon descriptor */ public static ImageDescriptor getIconDescriptor(String path) { ImageDescriptor image = getImageDescriptor(path); ImageData data = image.getImageData(); data = data.scaledTo(16, 16); image = ImageDescriptor.createFromImageData(data); return image; }
Example 10
Source File: Activator.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * 提供一个图片文件对插件的相对路径,返回该图片被伸缩变换为16*16像素的描述信息。 * @param path * the path * @return the icon descriptor */ public static ImageDescriptor getIconDescriptor(String path) { ImageDescriptor image = getImageDescriptor(path); ImageData data = image.getImageData(); data = data.scaledTo(16, 16); image = ImageDescriptor.createFromImageData(data); return image; }
Example 11
Source File: Activator.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * 提供一个图片文件对插件的相对路径,返回该图片被伸缩变换为16*16像素的描述信息。 * @param path * the path * @return the icon descriptor */ public static ImageDescriptor getIconDescriptor(String path) { ImageDescriptor image = getImageDescriptor(path); ImageData data = image.getImageData(); data = data.scaledTo(16, 16); image = ImageDescriptor.createFromImageData(data); return image; }
Example 12
Source File: Activator.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * 提供一个图片文件对插件的相对路径,返回该图片被伸缩变换为16*16像素的描述信息。 * @param path * the path * @return the icon descriptor */ public static ImageDescriptor getIconDescriptor(String path) { ImageDescriptor image = getImageDescriptor(path); ImageData data = image.getImageData(); data = data.scaledTo(16, 16); image = ImageDescriptor.createFromImageData(data); return image; }
Example 13
Source File: Activator.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * 提供一个图片文件对插件的相对路径,返回该图片被伸缩变换为16*16像素的描述信息。 * @param path * the path * @return the icon descriptor */ public static ImageDescriptor getIconDescriptor(String path) { ImageDescriptor image = getImageDescriptor(path); ImageData data = image.getImageData(); data = data.scaledTo(16, 16); image = ImageDescriptor.createFromImageData(data); return image; }