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

Java IWorkbenchHelpContextIds类代码示例

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

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



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

示例1: run

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
/**
 * Run the body of the action
 */
@Override
public void run() {
	loadDialog();
	getDisplay().asyncExec(new Runnable() {
		public void run() {
			if (dialogToOpen != null) {
				dialogToOpen.getShell().setSize(
			                Math.max(500, dialogToOpen.getShell().getSize().x),
			                500);
				  PlatformUI.getWorkbench().getHelpSystem().setHelp(dialogToOpen.getShell(),
							IWorkbenchHelpContextIds.NEW_WIZARD);
			}
			doAction();
	    }
	});
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:20,代码来源:AsyncAction.java


示例2: create

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
public IWorkbenchAction create(IWorkbenchWindow window) {
	if (window == null) {
		throw new IllegalArgumentException();
	}
	RetargetAction action = new RetargetAction(getId(),
			WorkbenchMessages.Workbench_delete);
	action.setToolTipText(WorkbenchMessages.Workbench_deleteToolTip);
	window.getPartService().addPartListener(action);
	action.setActionDefinitionId(getCommandId());
	action.enableAccelerator(false);
	window.getWorkbench()
			.getHelpSystem()
			.setHelp(action,
					IWorkbenchHelpContextIds.DELETE_RETARGET_ACTION);
	ISharedImages sharedImages = window.getWorkbench()
			.getSharedImages();
	action.setImageDescriptor(sharedImages
			.getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
	action.setDisabledImageDescriptor(sharedImages
			.getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED));
	return action;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:23,代码来源:ActionFactory.java


示例3: handlePluginInfoPressed

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
/**
 * The Plugins button was pressed. Open an about dialog on the plugins for
 * the selected feature.
 */
private void handlePluginInfoPressed() {
	final TableItem[] items = table.getSelection();
	if (items.length <= 0) {
		return;
	}

	final AboutBundleGroupData info = (AboutBundleGroupData) items[0]
	        .getData();
	final IBundleGroup bundleGroup = info.getBundleGroup();
	final Bundle[] bundles = bundleGroup == null ? new Bundle[0]
	        : bundleGroup.getBundles();

	final AboutPluginsDialog d = new AboutPluginsDialog(getShell(),
	        getProductName(), bundles,
	        WorkbenchMessages.AboutFeaturesDialog_pluginInfoTitle,
	        NLS.bind(
	                WorkbenchMessages.AboutFeaturesDialog_pluginInfoMessage,
	                bundleGroup.getIdentifier()),
	        IWorkbenchHelpContextIds.ABOUT_FEATURES_PLUGINS_DIALOG);
	d.open();
}
 
开发者ID:aktion-hip,项目名称:relations,代码行数:26,代码来源:AboutFeaturesPage.java


示例4: AboutFeaturesDialog

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
/**
 * Constructor for AboutFeaturesDialog.
 *
 * @param parentShell
 *            the parent shell
 * @param productName
 *            the product name
 * @param bundleGroupInfos
 *            the bundle info
 */
public AboutFeaturesDialog(Shell parentShell, String productName,
        AboutBundleGroupData[] bundleGroupInfos,
        AboutBundleGroupData initialSelection) {
	super(parentShell);
	final AboutFeaturesPage page = new AboutFeaturesPage();
	page.setProductName(productName);
	page.setBundleGroupInfos(bundleGroupInfos);
	page.setInitialSelection(initialSelection);
	String title;
	if (productName != null) {
		title = NLS.bind(WorkbenchMessages.AboutFeaturesDialog_shellTitle,
		        productName);
	} else {
		title = WorkbenchMessages.AboutFeaturesDialog_SimpleTitle;
	}
	initializeDialog(page, title,
	        IWorkbenchHelpContextIds.ABOUT_FEATURES_DIALOG);
}
 
开发者ID:aktion-hip,项目名称:relations,代码行数:29,代码来源:AboutFeaturesDialog.java


示例5: getDeleteItem

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
private IContributionItem getDeleteItem() {
	return getItem(ActionFactory.DELETE.getId(),
			ActionFactory.DELETE.getCommandId(),
			ISharedImages.IMG_TOOL_DELETE,
			ISharedImages.IMG_TOOL_DELETE_DISABLED,
			WorkbenchMessages.Workbench_delete,
			WorkbenchMessages.Workbench_deleteToolTip,
			IWorkbenchHelpContextIds.DELETE_RETARGET_ACTION);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:10,代码来源:ApplicationActionBarAdvisor.java


示例6: OpenPreferencesAction

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
OpenPreferencesAction() {
	super(WorkbenchMessages.OpenPreferences_text);
	setId("preferences");
	setText("Preferences");
	setToolTipText("Open GAMA preferences");
	setImageDescriptor(icons.desc("menu.open.preferences2"));
	window.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.OPEN_PREFERENCES_ACTION);
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:9,代码来源:GamaActionBarAdvisor.java


示例7: HelpContentsAction

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
HelpContentsAction() {
	setActionDefinitionId(IWorkbenchCommandConstants.HELP_HELP_CONTENTS);
	setId("helpContents");
	setText("GAMA documentation");
	setToolTipText("GAMA online documentation");
	setImageDescriptor(icons.desc("menu.help2"));
	window.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.HELP_CONTENTS_ACTION);
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:9,代码来源:GamaActionBarAdvisor.java


示例8: getResetPerspectiveItem

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
private IContributionItem getResetPerspectiveItem()
{
  return getItem(ActionFactory.RESET_PERSPECTIVE.getId(),
      ActionFactory.RESET_PERSPECTIVE.getCommandId(), null, null,
      WorkbenchMessages.ResetPerspective_text,
      WorkbenchMessages.ResetPerspective_toolTip,
      IWorkbenchHelpContextIds.RESET_PERSPECTIVE_ACTION);
}
 
开发者ID:debrief,项目名称:limpet,代码行数:9,代码来源:ApplicationActionBarAdvisor.java


示例9: getSavePerspectiveItem

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
private IContributionItem getSavePerspectiveItem()
{
  return getItem(ActionFactory.SAVE_PERSPECTIVE.getId(),
      ActionFactory.SAVE_PERSPECTIVE.getCommandId(), null, null,
      WorkbenchMessages.SavePerspective_text,
      WorkbenchMessages.SavePerspective_toolTip,
      IWorkbenchHelpContextIds.SAVE_PERSPECTIVE_ACTION);
}
 
开发者ID:debrief,项目名称:limpet,代码行数:9,代码来源:ApplicationActionBarAdvisor.java


示例10: getDeleteItem

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
private IContributionItem getDeleteItem()
{
  return getItem(ActionFactory.DELETE.getId(),
      ActionFactory.DELETE.getCommandId(), ISharedImages.IMG_TOOL_DELETE,
      ISharedImages.IMG_TOOL_DELETE_DISABLED,
      WorkbenchMessages.Workbench_delete,
      WorkbenchMessages.Workbench_deleteToolTip,
      IWorkbenchHelpContextIds.DELETE_RETARGET_ACTION);
}
 
开发者ID:debrief,项目名称:limpet,代码行数:10,代码来源:ApplicationActionBarAdvisor.java


示例11: configureShell

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
protected void configureShell(Shell shell) {
	super.configureShell(shell);
	PlatformUI.getWorkbench().getHelpSystem()
			.setHelp(shell, IWorkbenchHelpContextIds.LIST_SELECTION_DIALOG);
}
 
开发者ID:1Tristan,项目名称:VariantSync,代码行数:6,代码来源:ProjectSelectionDialog.java


示例12: getDeleteItem

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
private IContributionItem getDeleteItem() {
	return getItem(ActionFactory.DELETE.getId(), ActionFactory.DELETE.getCommandId(), "menu.delete2", null,
		WorkbenchMessages.Workbench_delete, WorkbenchMessages.Workbench_deleteToolTip,
		IWorkbenchHelpContextIds.DELETE_RETARGET_ACTION);
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:6,代码来源:GamaActionBarAdvisor.java


示例13: CutActionHandler

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
protected CutActionHandler() {
    setId("CellEditorCutActionHandler");//$NON-NLS-1$
    setEnabled(false);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.CELL_CUT_ACTION);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:6,代码来源:CellEditorActionHandler.java


示例14: CopyActionHandler

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
protected CopyActionHandler() {
    setId("CellEditorCopyActionHandler");//$NON-NLS-1$
    setEnabled(false);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.CELL_COPY_ACTION);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:6,代码来源:CellEditorActionHandler.java


示例15: PasteActionHandler

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
protected PasteActionHandler() {
    setId("CellEditorPasteActionHandler");//$NON-NLS-1$
    setEnabled(false);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.CELL_PASTE_ACTION);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:6,代码来源:CellEditorActionHandler.java


示例16: DeleteActionHandler

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
protected DeleteActionHandler() {
    setId("CellEditorDeleteActionHandler");//$NON-NLS-1$
    setEnabled(false);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.CELL_DELETE_ACTION);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:6,代码来源:CellEditorActionHandler.java


示例17: SelectAllActionHandler

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
protected SelectAllActionHandler() {
    setId("CellEditorSelectAllActionHandler");//$NON-NLS-1$
    setEnabled(false);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.CELL_SELECT_ALL_ACTION);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:6,代码来源:CellEditorActionHandler.java


示例18: FindActionHandler

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
protected FindActionHandler() {
    setId("CellEditorFindActionHandler");//$NON-NLS-1$
    setEnabled(false);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.CELL_FIND_ACTION);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:6,代码来源:CellEditorActionHandler.java


示例19: UndoActionHandler

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
protected UndoActionHandler() {
    setId("CellEditorUndoActionHandler");//$NON-NLS-1$
    setEnabled(false);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.CELL_UNDO_ACTION);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:6,代码来源:CellEditorActionHandler.java


示例20: RedoActionHandler

import org.eclipse.ui.internal.IWorkbenchHelpContextIds; //导入依赖的package包/类
protected RedoActionHandler() {
    setId("CellEditorRedoActionHandler");//$NON-NLS-1$
    setEnabled(false);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.CELL_REDO_ACTION);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:6,代码来源:CellEditorActionHandler.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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