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


Java JavaEditor.setAction方法代码示例

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


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

示例1: GWTOpenEditorActionGroup

import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor; //导入方法依赖的package包/类
/**
 * Note: This constructor is for internal use only. Clients should not call
 * this constructor.
 * 
 * @param editor the Java editor
 */
public GWTOpenEditorActionGroup(JavaEditor editor) {
  isEditorOwner = true;
  openAction = new GWTOpenAction(editor);
  openAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR);
  editor.setAction("OpenEditor", openAction); //$NON-NLS-1$
  site = editor.getEditorSite();
  initialize(site.getSelectionProvider());
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:15,代码来源:GWTOpenEditorActionGroup.java

示例2: OpenEditorActionGroup

import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor; //导入方法依赖的package包/类
/**
 * Note: This constructor is for internal use only. Clients should not call this constructor.
 * @param editor the Java editor
 *
 * @noreference This constructor is not intended to be referenced by clients.
 */
public OpenEditorActionGroup(JavaEditor editor) {
	fIsEditorOwner= true;
	fOpen= new OpenAction(editor);
	fOpen.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR);
	editor.setAction("OpenEditor", fOpen); //$NON-NLS-1$
	fSite= editor.getEditorSite();
	fSelectionProvider= fSite.getSelectionProvider();
	initialize();
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:16,代码来源:OpenEditorActionGroup.java

示例3: OpenViewActionGroup

import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor; //导入方法依赖的package包/类
/**
 * Note: This constructor is for internal use only. Clients should not call this constructor.
 * @param part the editor part
 *
 * @noreference This constructor is not intended to be referenced by clients.
 */
public OpenViewActionGroup(JavaEditor part) {
	fEditorIsOwner= true;
	fShowShowInMenu= false;
	
	fOpenImplementation= new OpenImplementationAction(part);
	fOpenImplementation.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_IMPLEMENTATION);
	part.setAction("OpenImplementation", fOpenImplementation); //$NON-NLS-1$

	fOpenSuperImplementation= new OpenSuperImplementationAction(part);
	fOpenSuperImplementation.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_SUPER_IMPLEMENTATION);
	part.setAction("OpenSuperImplementation", fOpenSuperImplementation); //$NON-NLS-1$

	fOpenAttachedJavadoc= new OpenAttachedJavadocAction(part);
	fOpenAttachedJavadoc.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_ATTACHED_JAVADOC);
	part.setAction("OpenAttachedJavadoc", fOpenAttachedJavadoc); //$NON-NLS-1$

	fOpenTypeHierarchy= new OpenTypeHierarchyAction(part);
	fOpenTypeHierarchy.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_TYPE_HIERARCHY);
	part.setAction("OpenTypeHierarchy", fOpenTypeHierarchy); //$NON-NLS-1$

	fOpenCallHierarchy= new OpenCallHierarchyAction(part);
	fOpenCallHierarchy.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_CALL_HIERARCHY);
	part.setAction("OpenCallHierarchy", fOpenCallHierarchy); //$NON-NLS-1$

	initialize(part.getEditorSite().getSelectionProvider());
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:33,代码来源:OpenViewActionGroup.java

示例4: ShowActionGroup

import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor; //导入方法依赖的package包/类
/**
 * Note: This constructor is for internal use only. Clients should not call this constructor.
 * @param part the Java editor
 *
 * @noreference This constructor is not intended to be referenced by clients.
 */
public ShowActionGroup(JavaEditor part) {
	fShowInPackagesViewAction= new ShowInPackageViewAction(part);
	fShowInPackagesViewAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_IN_PACKAGE_VIEW);
	part.setAction("ShowInPackageView", fShowInPackagesViewAction); //$NON-NLS-1$

	initialize(part.getSite(), true);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:14,代码来源:ShowActionGroup.java


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