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

Java RetargetTextEditorAction类代码示例

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

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



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

示例1: NCLActionContributor

import org.eclipse.ui.texteditor.RetargetTextEditorAction; //导入依赖的package包/类
/**
 * Default constructor.
 */
public NCLActionContributor() {
	super();
	fContentAssistProposal = new RetargetTextEditorAction(NCLEditorMessages
			.getInstance().getResourceBundle(), "ContentAssistProposal."); //$NON-NLS-1$
	fContentAssistProposal
			.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
	fContentFormat = new RetargetTextEditorAction(NCLEditorMessages
			.getInstance().getResourceBundle(), "ContentFormat.");
	fContentFormat.setActionDefinitionId(NCLEditor.FORMAT_ACTION);
	fContentGotoLastEditPosition = new RetargetTextEditorAction(
			NCLEditorMessages.getInstance().getResourceBundle(),
			"GotoLastEditPositio");
	fContentGotoLastEditPosition
			.setActionDefinitionId(ITextEditorActionDefinitionIds.GOTO_LAST_EDIT_POSITION);
	//fContentAssistTip= new RetargetTextEditorAction(NCLEditorMessages.getResourceBundle(), "ContentAssistTip."); //$NON-NLS-1$
	// fContentAssistTip.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_CONTEXT_INFORMATION);
	// fTogglePresentation= new PresentationAction();
}
 
开发者ID:ncleclipse,项目名称:ncl30-eclipse,代码行数:22,代码来源:NCLActionContributor.java


示例2: BasicCompilationUnitEditorActionContributor

import org.eclipse.ui.texteditor.RetargetTextEditorAction; //导入依赖的package包/类
public BasicCompilationUnitEditorActionContributor() {

		fRetargetContentAssist= new RetargetAction(JdtActionConstants.CONTENT_ASSIST,  JavaEditorMessages.ContentAssistProposal_label);
		fRetargetContentAssist.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
		fRetargetContentAssist.setImageDescriptor(JavaPluginImages.DESC_ELCL_CODE_ASSIST);
		fRetargetContentAssist.setDisabledImageDescriptor(JavaPluginImages.DESC_DLCL_CODE_ASSIST);
		markAsPartListener(fRetargetContentAssist);

		fContentAssist= new RetargetTextEditorAction(JavaEditorMessages.getBundleForConstructedKeys(), "ContentAssistProposal."); //$NON-NLS-1$
		fContentAssist.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
		fContentAssist.setImageDescriptor(JavaPluginImages.DESC_ELCL_CODE_ASSIST);
		fContentAssist.setDisabledImageDescriptor(JavaPluginImages.DESC_DLCL_CODE_ASSIST);

		fContextInformation= new RetargetTextEditorAction(JavaEditorMessages.getBundleForConstructedKeys(), "ContentAssistContextInformation."); //$NON-NLS-1$
		fContextInformation.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_CONTEXT_INFORMATION);

		fQuickAssistAction= new RetargetTextEditorAction(JavaEditorMessages.getBundleForConstructedKeys(), "CorrectionAssistProposal."); //$NON-NLS-1$
		fQuickAssistAction.setActionDefinitionId(ITextEditorActionDefinitionIds.QUICK_ASSIST);

		fChangeEncodingAction= new RetargetTextEditorAction(JavaEditorMessages.getBundleForConstructedKeys(), "Editor.ChangeEncodingAction."); //$NON-NLS-1$
	}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:22,代码来源:BasicCompilationUnitEditorActionContributor.java


示例3: TLAEditorActionContributor

import org.eclipse.ui.texteditor.RetargetTextEditorAction; //导入依赖的package包/类
/**
 * Default constructor.
 */
public TLAEditorActionContributor()
{
    super();
    fContentAssistProposal = new RetargetTextEditorAction(TLAEditorMessages.getResourceBundle(),
            "ContentAssistProposal."); //$NON-NLS-1$
    fContentAssistProposal.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
    fContentAssistTip = new RetargetTextEditorAction(TLAEditorMessages.getResourceBundle(), "ContentAssistTip."); //$NON-NLS-1$
    fContentAssistTip.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_CONTEXT_INFORMATION);
}
 
开发者ID:tlaplus,项目名称:tlaplus,代码行数:13,代码来源:TLAEditorActionContributor.java


示例4: TLAMultiPageEditorActionBarContributor

import org.eclipse.ui.texteditor.RetargetTextEditorAction; //导入依赖的package包/类
public TLAMultiPageEditorActionBarContributor()
{
    super();
    fContentAssistProposal = new RetargetTextEditorAction(TLAEditorMessages.getResourceBundle(),
            "ContentAssistProposal."); //$NON-NLS-1$
    fContentAssistProposal.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
    fContentAssistTip = new RetargetTextEditorAction(TLAEditorMessages.getResourceBundle(), "ContentAssistTip."); //$NON-NLS-1$
    fContentAssistTip.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_CONTEXT_INFORMATION);

    // status field for the line and column of the cursor
    cursorPositionStatusField = new StatusLineContributionItem(
            ITextEditorActionConstants.STATUS_CATEGORY_INPUT_POSITION);
}
 
开发者ID:tlaplus,项目名称:tlaplus,代码行数:14,代码来源:TLAMultiPageEditorActionBarContributor.java


示例5: TypeScriptEditorActionContributor

import org.eclipse.ui.texteditor.RetargetTextEditorAction; //导入依赖的package包/类
public TypeScriptEditorActionContributor() {
	fShowOutline = new RetargetTextEditorAction(JSDTTypeScriptUIMessages.getResourceBundle(), "ShowOutline."); //$NON-NLS-1$
	fShowOutline.setActionDefinitionId(ITypeScriptEditorActionDefinitionIds.SHOW_OUTLINE);
	openImplementation = new RetargetTextEditorAction(JSDTTypeScriptUIMessages.getResourceBundle(),
			"OpenImplementation."); //$NON-NLS-1$
	openImplementation.setActionDefinitionId(ITypeScriptEditorActionDefinitionIds.OPEN_IMPLEMENTATION);
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:8,代码来源:TypeScriptEditorActionContributor.java


示例6: JSActionContributor

import org.eclipse.ui.texteditor.RetargetTextEditorAction; //导入依赖的package包/类
/**
 * JSActionContributor
 */
public JSActionContributor()
{
	// Note that this messages bundle is used when constructing the actions.
	// Make sure no string are removed unintentionally from the properties file...
	ResourceBundle resourceBundle = Messages.getResourceBundle();

	fOpenDeclaration = new RetargetTextEditorAction(resourceBundle, "openDeclaration."); //$NON-NLS-1$
	fOpenDeclaration.setActionDefinitionId(IJSActions.OPEN_DECLARATION);
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:13,代码来源:JSActionContributor.java


示例7: CompilationUnitEditorActionContributor

import org.eclipse.ui.texteditor.RetargetTextEditorAction; //导入依赖的package包/类
public CompilationUnitEditorActionContributor() {
	super();

	ResourceBundle b= JavaEditorMessages.getBundleForConstructedKeys();

	fToggleInsertModeAction= new RetargetTextEditorAction(b, "CompilationUnitEditorActionContributor.ToggleInsertMode.", IAction.AS_CHECK_BOX); //$NON-NLS-1$
	fToggleInsertModeAction.setActionDefinitionId(ITextEditorActionDefinitionIds.TOGGLE_INSERT_MODE);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:9,代码来源:CompilationUnitEditorActionContributor.java


示例8: ApexActionContributor

import org.eclipse.ui.texteditor.RetargetTextEditorAction; //导入依赖的package包/类
/**
 * Default constructor.
 */
public ApexActionContributor() {
    super();
    fContentAssistProposal =
            new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "ApexEditor.ContentAssistProposal.");
    fContentAssistProposal.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
    fContentAssistTip =
            new RetargetTextEditorAction(EditorMessages.getResourceBundle(), "ApexEditor.ContentAssistTip.");
    fContentAssistTip.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_CONTEXT_INFORMATION);
    fTogglePresentation = new PresentationAction();
}
 
开发者ID:forcedotcom,项目名称:idecore,代码行数:14,代码来源:ApexActionContributor.java


示例9: SQLEditorActionContributor

import org.eclipse.ui.texteditor.RetargetTextEditorAction; //导入依赖的package包/类
public SQLEditorActionContributor() {
    fContentAssist= new RetargetTextEditorAction(
            ResourceBundle.getBundle(Messages.getBundleName()), "contentAssist."); //$NON-NLS-1$
    fContentAssist.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
}
 
开发者ID:pgcodekeeper,项目名称:pgcodekeeper,代码行数:6,代码来源:SQLEditorActionContributor.java


示例10: createActions

import org.eclipse.ui.texteditor.RetargetTextEditorAction; //导入依赖的package包/类
protected void createActions() {
	fContentAssist = new RetargetTextEditorAction(
			Plugin.getDefault().getResourceBundle(),
			"VelocityEditor.ContentAssist");
}
 
开发者ID:ninneko,项目名称:velocity-edit,代码行数:6,代码来源:Contributor.java


示例11: BasicJavaEditorActionContributor

import org.eclipse.ui.texteditor.RetargetTextEditorAction; //导入依赖的package包/类
public BasicJavaEditorActionContributor() {
	super();

	ResourceBundle b= JavaEditorMessages.getBundleForConstructedKeys();

	fRetargetShowInformationAction= new RetargetTextEditorAction(b, "Editor.ShowInformation."); //$NON-NLS-1$
	fRetargetShowInformationAction.setActionDefinitionId(ITextEditorActionDefinitionIds.SHOW_INFORMATION);

	// actions that are "contributed" to editors, they are considered belonging to the active editor
	fTogglePresentation= new TogglePresentationAction();

	fToggleMarkOccurrencesAction= new ToggleMarkOccurrencesAction();

	fGotoMatchingBracket= new RetargetTextEditorAction(b, "GotoMatchingBracket."); //$NON-NLS-1$
	fGotoMatchingBracket.setActionDefinitionId(IJavaEditorActionDefinitionIds.GOTO_MATCHING_BRACKET);

	fShowOutline= new RetargetTextEditorAction(JavaEditorMessages.getBundleForConstructedKeys(), "ShowOutline."); //$NON-NLS-1$
	fShowOutline.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_OUTLINE);

	fOpenHierarchy= new RetargetTextEditorAction(JavaEditorMessages.getBundleForConstructedKeys(), "OpenHierarchy."); //$NON-NLS-1$
	fOpenHierarchy.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_HIERARCHY);

	fOpenStructure= new RetargetTextEditorAction(JavaEditorMessages.getBundleForConstructedKeys(), "OpenStructure."); //$NON-NLS-1$
	fOpenStructure.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_STRUCTURE);

	fStructureSelectEnclosingAction= new RetargetTextEditorAction(b, "StructureSelectEnclosing."); //$NON-NLS-1$
	fStructureSelectEnclosingAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELECT_ENCLOSING);
	fStructureSelectNextAction= new RetargetTextEditorAction(b, "StructureSelectNext."); //$NON-NLS-1$
	fStructureSelectNextAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELECT_NEXT);
	fStructureSelectPreviousAction= new RetargetTextEditorAction(b, "StructureSelectPrevious."); //$NON-NLS-1$
	fStructureSelectPreviousAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELECT_PREVIOUS);
	fStructureSelectHistoryAction= new RetargetTextEditorAction(b, "StructureSelectHistory."); //$NON-NLS-1$
	fStructureSelectHistoryAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELECT_LAST);

	fGotoNextMemberAction= new RetargetTextEditorAction(b, "GotoNextMember."); //$NON-NLS-1$
	fGotoNextMemberAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.GOTO_NEXT_MEMBER);
	fGotoPreviousMemberAction= new RetargetTextEditorAction(b, "GotoPreviousMember."); //$NON-NLS-1$
	fGotoPreviousMemberAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.GOTO_PREVIOUS_MEMBER);

	fRemoveOccurrenceAnnotationsAction= new RetargetTextEditorAction(b, "RemoveOccurrenceAnnotations."); //$NON-NLS-1$
	fRemoveOccurrenceAnnotationsAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.REMOVE_OCCURRENCE_ANNOTATIONS);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:43,代码来源:BasicJavaEditorActionContributor.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java CombineFunction类代码示例发布时间:2022-05-22
下一篇:
Java HasKeyDownHandlers类代码示例发布时间: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