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


Java JavaEditor.getEditorSite方法代码示例

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


在下文中一共展示了JavaEditor.getEditorSite方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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-Juno38,代码行数:16,代码来源:OpenEditorActionGroup.java

示例3: ExtractConstantAction

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 ExtractConstantAction(JavaEditor editor) {
	super(editor.getEditorSite());
	setText(RefactoringMessages.ExtractConstantAction_label);
	fEditor= editor;
	setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.EXTRACT_CONSTANT_ACTION);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:14,代码来源:ExtractConstantAction.java

示例4: ExtractTempAction

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 method is not intended to be referenced by clients.
 */
public ExtractTempAction(JavaEditor editor) {
	super(editor.getEditorSite());
	setText(RefactoringMessages.ExtractTempAction_label);
	fEditor= editor;
	setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.EXTRACT_TEMP_ACTION);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:14,代码来源:ExtractTempAction.java

示例5: IntroduceParameterAction

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 IntroduceParameterAction(JavaEditor editor) {
	super(editor.getEditorSite());
	setText(RefactoringMessages.IntroduceParameterAction_label);
	fEditor= editor;
	setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.INTRODUCE_PARAMETER_ACTION);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:14,代码来源:IntroduceParameterAction.java

示例6: ExtractMethodAction

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 method is not intended to be referenced by clients.
 */
public ExtractMethodAction(JavaEditor editor) {
	super(editor.getEditorSite());
	setText(RefactoringMessages.ExtractMethodAction_label);
	fEditor= editor;
	setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.EXTRACT_METHOD_ACTION);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:15,代码来源:ExtractMethodAction.java

示例7: ConvertLocalToFieldAction

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 ConvertLocalToFieldAction(JavaEditor editor) {
	super(editor.getEditorSite());
	setText(RefactoringMessages.ConvertLocalToField_label);
	fEditor= editor;
	setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.PROMOTE_TEMP_TO_FIELD_ACTION);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:15,代码来源:ConvertLocalToFieldAction.java

示例8: OpenCallHierarchyAction

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 internal
 */
public OpenCallHierarchyAction(JavaEditor editor) {
	this(editor.getEditorSite());
	fEditor= editor;
	setEnabled(SelectionConverter.canOperateOn(fEditor));
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:10,代码来源:OpenCallHierarchyAction.java

示例9: IntroduceParameterObjectAction

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 compilation unit editor
 */
public IntroduceParameterObjectAction(JavaEditor editor) {
	this(editor.getEditorSite());
	fEditor= editor;
	setEnabled(true);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:10,代码来源:IntroduceParameterObjectAction.java

示例10: FindOccurrencesInFileAction

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 FindOccurrencesInFileAction(JavaEditor editor) {
	this(editor.getEditorSite());
	fEditor= editor;
	setEnabled(getEditorInput(editor) != null);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:12,代码来源:FindOccurrencesInFileAction.java

示例11: OpenAttachedJavadocAction

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 OpenAttachedJavadocAction(JavaEditor editor) {
	this(editor.getEditorSite());
	fEditor= editor;
	setEnabled(SelectionConverter.canOperateOn(fEditor));
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:12,代码来源:OpenAttachedJavadocAction.java

示例12: ExtractClassAction

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 ExtractClassAction(JavaEditor editor) {
	this(editor.getEditorSite());
	fEditor= editor;
	setEnabled(SelectionConverter.canOperateOn(fEditor));
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:12,代码来源:ExtractClassAction.java

示例13: UseSupertypeAction

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 UseSupertypeAction(JavaEditor editor) {
	this(editor.getEditorSite());
	fEditor= editor;
	setEnabled(SelectionConverter.canOperateOn(fEditor));
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:12,代码来源:UseSupertypeAction.java

示例14: ChangeTypeAction

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 ChangeTypeAction(JavaEditor editor) {
	this(editor.getEditorSite());
	fEditor= editor;
	setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:13,代码来源:ChangeTypeAction.java

示例15: OpenImplementationAction

import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor; //导入方法依赖的package包/类
/**
 * Creates an <code>OpenImplementationAction</code>. Note: This constructor is for internal use
 * only. Clients should not call this constructor.
 * 
 * @param editor the editor
 * @noreference This constructor is not intended to be referenced by clients.
 */
public OpenImplementationAction(JavaEditor editor) {
	this(editor.getEditorSite());
	fEditor= editor;
	setEnabled(SelectionConverter.canOperateOn(fEditor) && fEditor.getSelectionProvider().getSelection() instanceof ITextSelection);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:13,代码来源:OpenImplementationAction.java


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