本文整理汇总了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();
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}