• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java IDEInternalWorkbenchImages类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.ui.internal.ide.IDEInternalWorkbenchImages的典型用法代码示例。如果您正苦于以下问题:Java IDEInternalWorkbenchImages类的具体用法?Java IDEInternalWorkbenchImages怎么用?Java IDEInternalWorkbenchImages使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IDEInternalWorkbenchImages类属于org.eclipse.ui.internal.ide包,在下文中一共展示了IDEInternalWorkbenchImages类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createContents

import org.eclipse.ui.internal.ide.IDEInternalWorkbenchImages; //导入依赖的package包/类
/**
 * @see org.eclipse.jface.dialogs.TitleAreaDialog#createContents(org.eclipse.swt.widgets.Composite)
 */
protected Control createContents(Composite parent) {

    Control contents = super.createContents(parent);

    initializeControls();
    resourceGroup.setFocus();
    setTitle(title);
    dlgTitleImage = IDEInternalWorkbenchImages.getImageDescriptor(IDEInternalWorkbenchImages.IMG_DLGBAN_SAVEAS_DLG)
        .createImage();
    setTitleImage(dlgTitleImage);
    setMessage(message);

    return contents;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:18,代码来源:FragmentSaveDialog.java


示例2: initialize

import org.eclipse.ui.internal.ide.IDEInternalWorkbenchImages; //导入依赖的package包/类
@Override
public void initialize(IWorkbenchConfigurer configurer) {
	super.initialize(configurer);
	configurer.setSaveAndRestore(true);

	final String ICONS_PATH = "icons/full/"; //$NON-NLS-1$
	final String PATH_OBJECT = ICONS_PATH + "obj16/"; //$NON-NLS-1$
	Bundle ideBundle = Platform.getBundle(IDEWorkbenchPlugin.IDE_WORKBENCH);
	declareWorkbenchImage(configurer, ideBundle,
			IDE.SharedImages.IMG_OBJ_PROJECT, PATH_OBJECT + "prj_obj.gif", //$NON-NLS-1$
			true);
	declareWorkbenchImage(configurer, ideBundle,
			IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED, PATH_OBJECT
					+ "cprj_obj.gif", true); //$NON-NLS-1$
	declareWorkbenchImage(configurer, ideBundle,
			IDEInternalWorkbenchImages.IMG_DLGBAN_SAVEAS_DLG, PATH_OBJECT
					+ "saveas_wiz.png", false); //$NON-NLS-1$
	declareWorkbenchImage(configurer, ideBundle,
			IDE.SharedImages.IMG_OBJ_PROJECT, PATH_OBJECT + "prj_obj.gif", //$NON-NLS-1$
			true);
	declareWorkbenchImage(configurer, ideBundle,
			IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED, PATH_OBJECT
					+ "cprj_obj.gif", true); //$NON-NLS-1$

	// Force the default setting for the help (tray) button in dialogs.
	// It seems that in Windows and Linux platforms as default this value is set to true.
	// However in Mac OS X the button does not shown as default behavior.
	TrayDialog.setDialogHelpAvailable(true);
	
	// Sets the branding information
	BrandingInfo info = new BrandingInfo();
	info.setProductName(Messages.ApplicationWorkbenchAdvisor_ProductName);
	info.setProductVersion(Activator.getDefault().getBundle().getVersion().toString());
	info.setProductMainBundleID(Activator.PLUGIN_ID);
	JaspersoftStudioPlugin.getInstance().setBrandingInformation(info);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:37,代码来源:ApplicationWorkbenchAdvisor.java


示例3: preStartup

import org.eclipse.ui.internal.ide.IDEInternalWorkbenchImages; //导入依赖的package包/类
public void preStartup()
{

  // Suspend background jobs while we startup
  Job.getJobManager().suspend();

  // Register the build actions
  IProgressService service = PlatformUI.getWorkbench().getProgressService();
  ImageDescriptor newImage =
      IDEInternalWorkbenchImages
          .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC);
  service
      .registerIconForFamily(newImage, ResourcesPlugin.FAMILY_MANUAL_BUILD);
  service.registerIconForFamily(newImage, ResourcesPlugin.FAMILY_AUTO_BUILD);
}
 
开发者ID:debrief,项目名称:limpet,代码行数:16,代码来源:ApplicationWorkbenchAdvisor.java


示例4: declareImageDescriptors

import org.eclipse.ui.internal.ide.IDEInternalWorkbenchImages; //导入依赖的package包/类
private void declareImageDescriptors() {
   /*  this code is neccessary at this time because certain eclipse
	resources have been removed from other places. */
	
final ImageDescriptor errorImageDescriptor
	= imageDescriptorFromPlugin(IDEWorkbenchPlugin
		.IDE_WORKBENCH, "icons/full/obj16/error_tsk.gif");

final ImageDescriptor warningImageDescriptor
= imageDescriptorFromPlugin(IDEWorkbenchPlugin
		.IDE_WORKBENCH, "icons/full/obj16/warn_tsk.gif");

/*
final ImageDescriptor infoImageDescriptor
= imageDescriptorFromPlugin(IDEWorkbenchPlugin
		.IDE_WORKBENCH, "icons/full/obj16/info_tsk.gif");
		*/

final boolean shared = true;

WorkbenchImages.declareImage(IDEInternalWorkbenchImages
		.IMG_OBJS_ERROR_PATH, errorImageDescriptor, shared);

WorkbenchImages.declareImage(IDEInternalWorkbenchImages
		.IMG_OBJS_WARNING_PATH, warningImageDescriptor, shared);

/*
WorkbenchImages.declareImage(IDEInternalWorkbenchImages
		.IMG_OBJS_INFO_PATH, infoImageDescriptor, shared);
		*/
  }
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:32,代码来源:EditorPlugin.java


示例5: initialize

import org.eclipse.ui.internal.ide.IDEInternalWorkbenchImages; //导入依赖的package包/类
@Override
public void initialize(IWorkbenchConfigurer configurer)
{
    super.initialize(configurer);
    configurer.setSaveAndRestore(true);

    /*
     * Project Explorer and Common Navigator fail to show projects without
     * this hack. All reports I have read are about icons not showing up but
     * in my case the navigators don't even show a project's name.
     * The override of getDefaultPageInput() is also part of the
     * workaround.
     *
     * For more details:
     * https://bugs.eclipse.org/bugs/show_bug.cgi?id=234252
     * http://help.eclipse.org/indigo/topic/org.eclipse.platform.doc.isv/guide/cnf.htm
     * http://francisu.wordpress.com/2008/05/27/magic-required-to-use-the-common-navigator-in-an-rcp-application/
     * http://stackoverflow.com/questions/10345977/showing-project-explorer-view-and-its-functionality-to-rcp
     */

    IDE.registerAdapters();

    final String ICONS_PATH = "icons/full/";
    Bundle ideBundle = Platform.getBundle(IDEWorkbenchPlugin.IDE_WORKBENCH);

    declareWorkbenchImage(configurer, ideBundle,IDE.SharedImages.IMG_OBJ_PROJECT, ICONS_PATH + "obj16/prj_obj.gif",true);
    declareWorkbenchImage(configurer, ideBundle,IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED, ICONS_PATH + "obj16/cprj_obj.gif", true);
    declareWorkbenchImage(configurer, ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_PROBLEMS_VIEW, ICONS_PATH + "eview16/problems_view.gif", true);
    declareWorkbenchImage(configurer, ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_PROBLEMS_VIEW_ERROR, ICONS_PATH + "eview16/problems_view_error.gif", true);
    declareWorkbenchImage(configurer, ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_PROBLEMS_VIEW_WARNING, ICONS_PATH + "eview16/problems_view_warning.gif", true);
    declareWorkbenchImage(configurer, ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_ERROR_PATH, ICONS_PATH + "obj16/error_tsk.gif", true);
    declareWorkbenchImage(configurer, ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_WARNING_PATH, ICONS_PATH + "obj16/warn_tsk.gif", true);

    /* End of hack. */
}
 
开发者ID:vobject,项目名称:maru,代码行数:36,代码来源:ApplicationWorkbenchAdvisor.java


示例6: declareWorkbenchImages

import org.eclipse.ui.internal.ide.IDEInternalWorkbenchImages; //导入依赖的package包/类
/**
    * Declare workbench images.
    */
   private void declareWorkbenchImages() {
final String ICONS_PATH = "icons/full/";//$NON-NLS-1$
final String PATH_ELOCALTOOL = ICONS_PATH + "elcl16/"; //Enabled toolbar icons.//$NON-NLS-1$
final String PATH_ETOOL = ICONS_PATH + "etool16/"; //Enabled toolbar icons.//$NON-NLS-1$
final String PATH_DTOOL = ICONS_PATH + "dtool16/"; //Disabled toolbar icons.//$NON-NLS-1$
final String PATH_OBJECT = ICONS_PATH + "obj16/"; //Model object icons//$NON-NLS-1$
final String PATH_WIZBAN = ICONS_PATH + "wizban/"; //Wizard icons//$NON-NLS-1$

Bundle ideBundle = Platform.getBundle(IDEWorkbenchPlugin.IDE_WORKBENCH);

declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC, PATH_ETOOL + "build_exec.gif", false); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC_HOVER, PATH_ETOOL + "build_exec.gif", false); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC_DISABLED, PATH_DTOOL + "build_exec.gif", false); //$NON-NLS-1$

declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC, PATH_ETOOL + "search_src.gif", false); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC_HOVER, PATH_ETOOL + "search_src.gif", false); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC_DISABLED, PATH_DTOOL + "search_src.gif", false); //$NON-NLS-1$

declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV, PATH_ETOOL + "next_nav.gif", false); //$NON-NLS-1$

declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV, PATH_ETOOL + "prev_nav.gif", false); //$NON-NLS-1$

declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_NEWPRJ_WIZ, PATH_WIZBAN + "newprj_wiz.gif", false); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_NEWFOLDER_WIZ, PATH_WIZBAN + "newfolder_wiz.gif", false); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_NEWFILE_WIZ, PATH_WIZBAN + "newfile_wiz.gif", false); //$NON-NLS-1$

declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_IMPORTDIR_WIZ, PATH_WIZBAN + "importdir_wiz.gif", false); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_IMPORTZIP_WIZ, PATH_WIZBAN + "importzip_wiz.gif", false); //$NON-NLS-1$

declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_EXPORTDIR_WIZ, PATH_WIZBAN + "exportdir_wiz.gif", false); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_EXPORTZIP_WIZ, PATH_WIZBAN + "exportzip_wiz.gif", false); //$NON-NLS-1$

declareWorkbenchImage(ideBundle,

IDEInternalWorkbenchImages.IMG_WIZBAN_RESOURCEWORKINGSET_WIZ, PATH_WIZBAN + "workset_wiz.gif", false); //$NON-NLS-1$

declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_DLGBAN_SAVEAS_DLG, PATH_WIZBAN + "saveas_wiz.gif", false); //$NON-NLS-1$

declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT, PATH_OBJECT + "prj_obj.gif", true); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED, PATH_OBJECT + "cprj_obj.gif", true); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OPEN_MARKER, PATH_ELOCALTOOL + "gotoobj_tsk.gif", true); //$NON-NLS-1$

// task objects

// declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_HPRIO_TSK,
// PATH_OBJECT+"hprio_tsk.gif");

// declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_MPRIO_TSK,
// PATH_OBJECT+"mprio_tsk.gif");

// declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_LPRIO_TSK,
// PATH_OBJECT+"lprio_tsk.gif");

declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJS_TASK_TSK, PATH_OBJECT + "taskmrk_tsk.gif", true); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJS_BKMRK_TSK, PATH_OBJECT + "bkmrk_tsk.gif", true); //$NON-NLS-1$

String string = IDEInternalWorkbenchImages.IMG_OBJS_COMPLETE_TSK;
declareWorkbenchImage(ideBundle, string, PATH_OBJECT + "complete_tsk.gif", true); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_INCOMPLETE_TSK, PATH_OBJECT + "incomplete_tsk.gif", true); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_WELCOME_ITEM, PATH_OBJECT + "welcome_item.gif", true); //$NON-NLS-1$
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_WELCOME_BANNER, PATH_OBJECT + "welcome_banner.gif", true); //$NON-NLS-1$
   }
 
开发者ID:synergynet,项目名称:synergyview,代码行数:66,代码来源:ApplicationWorkbenchAdvisor.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MemberState类代码示例发布时间:2022-05-23
下一篇:
Java GL4类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap