public RenameAction(CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; fRenameTemp= new RenameTempAction(fEditor); fRenameJavaElement= new RenameJavaElementAction(editor);
public RenameAction(IWorkbenchSite site) { super(site); setText(RefactoringMessages.getString("RenameAction.text")); fRenameJavaElement= new RenameJavaElementAction(site); fRenameJavaElement.setText(getText()); fRenameResource= new RenameResourceAction(site); fRenameResource.setText(getText()); WorkbenchHelp.setHelp(this, IJavaHelpContextIds.RENAME_ACTION);
	public RenameAction(CompilationUnitEditor editor) {		this(editor.getEditorSite());		fEditor= editor;		fRenameTemp= new RenameTempAction(fEditor);		fRenameJavaElement= new RenameJavaElementAction(editor);	}