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