gpt4 book ai didi

org.eclipse.ui.internal.WorkbenchImages.getImageDescriptor()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 13:59:05 26 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.ui.internal.WorkbenchImages.getImageDescriptor()方法的一些代码示例,展示了WorkbenchImages.getImageDescriptor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkbenchImages.getImageDescriptor()方法的具体详情如下:
包路径:org.eclipse.ui.internal.WorkbenchImages
类名称:WorkbenchImages
方法名:getImageDescriptor

WorkbenchImages.getImageDescriptor介绍

[英]Returns the image descriptor stored under the given symbolic name. If there isn't any value associated with the name then null is returned. The class also "caches" commonly used images in the image registry. If you are looking for one of these common images it is recommended you use the getImage() method instead.
[中]返回存储在给定符号名下的图像描述符。如果没有任何与名称关联的值,则返回null。该类还“缓存”图像注册表中常用的图像。如果要查找这些常见图像中的一个,建议使用getImage()方法。

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor() {
  return WorkbenchImages
      .getImageDescriptor(ISharedImages.IMG_ETOOL_DEF_PERSPECTIVE);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor() {
  return WorkbenchImages
      .getImageDescriptor(IWorkbenchGraphicConstants.IMG_VIEW_DEFAULTVIEW_MISC);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor() {
  return WorkbenchImages
      .getImageDescriptor(IWorkbenchGraphicConstants.IMG_LCL_VIEW_MENU);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

/**
   * Retrieves the specified image descriptor from the workbench plugin's image registry.
   *
   * @see ISharedImages
   */
  @Override
  public ImageDescriptor getImageDescriptor(String symbolicName) {
    return WorkbenchImages.getImageDescriptor(symbolicName);
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor() {
  return WorkbenchImages
      .getImageDescriptor(IWorkbenchGraphicConstants.IMG_OBJ_NODE);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

/**
 * Returns the default file image descriptor.
 *
 * @return the image descriptor
 */
private ImageDescriptor getDefaultImage() {
  // @issue what should be the default image?
  return WorkbenchImages.getImageDescriptor(ISharedImages.IMG_OBJ_FILE);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor() {
  return WorkbenchImages
      .getImageDescriptor(IWorkbenchGraphicConstants.IMG_OBJ_NODE);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor() {
  return WorkbenchImages
      .getImageDescriptor(IWorkbenchGraphicConstants.IMG_OBJ_NODE);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor() {
  return WorkbenchImages
      .getImageDescriptor(IWorkbenchGraphicConstants.IMG_OBJ_NODE);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor() {
  return WorkbenchImages
      .getImageDescriptor(IWorkbenchGraphicConstants.IMG_OBJ_NODE);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

/**
 * @param descriptors a set of working set descriptors which can be selected on the page
 */
public WorkingSetTypePage(WorkingSetDescriptor[] descriptors) {
  super(
      "workingSetTypeSelectionPage", WorkbenchMessages.WorkingSetTypePage_description, WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_WIZBAN_WORKINGSET_WIZ)); //$NON-NLS-1$
  this.descriptors = descriptors;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor() {
  return WorkbenchImages
      .getImageDescriptor(IWorkbenchGraphicConstants.IMG_OBJ_NODE);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

/**
 * Returns an SWT Image that is described by the information
 * in this descriptor.
 */
@Override
public ImageData getImageData(int zoom) {
  /*This is a user defined offset into the file which always
   *returns us the defualt - return the default regardless*/
  return WorkbenchImages.getImageDescriptor(ISharedImages.IMG_OBJ_FILE)
      .getImageData(zoom);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor() {
  IEditorDescriptor editor = getDefaultEditor();
  if (editor == null) {
    return WorkbenchImages
        .getImageDescriptor(ISharedImages.IMG_OBJ_FILE);
  }
  return editor.getImageDescriptor();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor() {
  IEditorDescriptor editor = getDefaultEditor();
  if (editor == null) {
    return WorkbenchImages
        .getImageDescriptor(ISharedImages.IMG_OBJ_FILE);
  }
  return editor.getImageDescriptor();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

private Image getOpenPerspectiveImage() {
  if (perspectiveImage == null || perspectiveImage.isDisposed()) {
    ImageDescriptor desc = WorkbenchImages
        .getImageDescriptor(IWorkbenchGraphicConstants.IMG_ETOOL_NEW_PAGE);
    perspectiveImage = desc.createImage();
  }
  return perspectiveImage;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public void init(IWorkbench workbench, IStructuredSelection currentSelection) {
  eventBroker = workbench.getService(IEventBroker.class);
  setWindowTitle(PreferencesMessages.PreferencesImportWizard_import);
  setDefaultPageImageDescriptor(WorkbenchImages
      .getImageDescriptor(IWorkbenchGraphicConstants.IMG_WIZBAN_IMPORT_PREF_WIZ));
  setNeedsProgressMonitor(true);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public void init(IWorkbench workbench, IStructuredSelection currentSelection) {
  eventBroker = workbench.getService(IEventBroker.class);
  setWindowTitle(PreferencesMessages.PreferencesExportWizard_export);
  setDefaultPageImageDescriptor(WorkbenchImages
      .getImageDescriptor(IWorkbenchGraphicConstants.IMG_WIZBAN_EXPORT_PREF_WIZ));
  setNeedsProgressMonitor(true);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public ImageDescriptor getImageDescriptor(ICategory category) {
  if (category.isDefined()) {
    ImageDescriptor descriptor = getCategoryImageBindingRegistry()
        .getImageDescriptor(category.getId());
    if (descriptor != null) {
      return descriptor;
    }
  }
  return WorkbenchImages
      .getImageDescriptor(IWorkbenchGraphicConstants.IMG_OBJ_ACTIVITY_CATEGORY);
}

代码示例来源:origin: org.eclipse.mylyn.builds/ui

public BuildServerWizard(IBuildServer server) {
  this.original = server;
  setNeedsProgressMonitor(true);
  if (isNew()) {
    setWindowTitle("New Build Server");
    setDefaultPageImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_WIZBAN_NEW_WIZ));
  } else {
    setWindowTitle("Build Server Properties");
    setDefaultPageImageDescriptor(TasksUiImages.BANNER_REPOSITORY_SETTINGS);
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com