当前位置: 首页>>代码示例>>Java>>正文


Java IWorkbenchConfigurer.declareImage方法代码示例

本文整理汇总了Java中org.eclipse.ui.application.IWorkbenchConfigurer.declareImage方法的典型用法代码示例。如果您正苦于以下问题:Java IWorkbenchConfigurer.declareImage方法的具体用法?Java IWorkbenchConfigurer.declareImage怎么用?Java IWorkbenchConfigurer.declareImage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.ui.application.IWorkbenchConfigurer的用法示例。


在下文中一共展示了IWorkbenchConfigurer.declareImage方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initialize

import org.eclipse.ui.application.IWorkbenchConfigurer; //导入方法依赖的package包/类
@SuppressWarnings("nls")
@Override
public void initialize(IWorkbenchConfigurer configurer) {
    // Per default, state is not preserved (RCP book 5.1.1)
    configurer.setSaveAndRestore(true);

    // Register adapters needed by Navigator view to display workspace files
    IDE.registerAdapters();

    // Declares all IDE-specific workbench images. This includes both "shared"
    // images (named in {@link IDE.SharedImages}) and internal images.
    configurer.declareImage(IDE.SharedImages.IMG_OBJ_PROJECT,
            RCPUtils.getImageDescriptor(YamcsStudioWorkbenchAdvisor.class, "icons/project_open.png"), true);
    configurer.declareImage(IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED,
            RCPUtils.getImageDescriptor(YamcsStudioWorkbenchAdvisor.class, "icons/project_close.png"), true);

    declareWorkbenchImages();
}
 
开发者ID:yamcs,项目名称:yamcs-studio,代码行数:19,代码来源:YamcsStudioWorkbenchAdvisor.java

示例2: declareWorkbenchImage

import org.eclipse.ui.application.IWorkbenchConfigurer; //导入方法依赖的package包/类
private void declareWorkbenchImage(IWorkbenchConfigurer configurer, Bundle ideBundle, String symbolicName,
        String path, boolean shared)
{
    URL url = ideBundle.getEntry(path);
    ImageDescriptor desc = ImageDescriptor.createFromURL(url);
    configurer.declareImage(symbolicName, desc, shared);
}
 
开发者ID:tlaplus,项目名称:tlaplus,代码行数:8,代码来源:ApplicationWorkbenchAdvisor.java

示例3: declareWorkbenchImage

import org.eclipse.ui.application.IWorkbenchConfigurer; //导入方法依赖的package包/类
private void declareWorkbenchImage(IWorkbenchConfigurer configurer_p,
		Bundle ideBundle, String symbolicName, String path, boolean shared) {
	URL url = ideBundle.getEntry(path);
	ImageDescriptor desc = ImageDescriptor.createFromURL(url);
	configurer_p.declareImage(symbolicName, desc, shared);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:7,代码来源:ApplicationWorkbenchAdvisor.java

示例4: declareWorkbenchImage

import org.eclipse.ui.application.IWorkbenchConfigurer; //导入方法依赖的package包/类
private void declareWorkbenchImage(IWorkbenchConfigurer configurer_p, Bundle ideBundle, String symbolicName, String path, boolean shared) {
	URL url = ideBundle.getEntry(path);
	ImageDescriptor desc = ImageDescriptor.createFromURL(url);
	configurer_p.declareImage(symbolicName, desc, shared);
}
 
开发者ID:tobiashoppe,项目名称:stammbaum,代码行数:6,代码来源:ApplicationWorkbenchAdvisor.java

示例5: declareWorkbenchImage

import org.eclipse.ui.application.IWorkbenchConfigurer; //导入方法依赖的package包/类
private void declareWorkbenchImage(IWorkbenchConfigurer cfg, Bundle ideBundle, String symbolicName, String path, boolean shared)
{
    URL url = ideBundle.getEntry(path);
    ImageDescriptor desc = ImageDescriptor.createFromURL(url);
    cfg.declareImage(symbolicName, desc, shared);
}
 
开发者ID:vobject,项目名称:maru,代码行数:7,代码来源:ApplicationWorkbenchAdvisor.java


注:本文中的org.eclipse.ui.application.IWorkbenchConfigurer.declareImage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。