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