/** * Creates a new <code>RenameAction</code>. The action requires that the selection provided by the * site's selection provider is of type <code> * org.eclipse.jface.viewers.IStructuredSelection</code>. * * @param site the site providing context information for this action */ public RenameAction(IWorkbenchSite site) { super(site); setText(RefactoringMessages.RenameAction_text); fRenameDartElement = new RenameDartElementAction(site); fRenameDartElement.setText(getText()); fRenameResource = new RenameResourceAction(site); fRenameResource.setText(getText()); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, DartHelpContextIds.RENAME_ACTION); }