.handleError( AspectJUIPlugin .getResourceString("Refactoring.ErrorRenamingResource"), e);
.handleError(UIMessages.Refactoring_ErrorRenamingResource, e);
	public void run(IAction action) {		if (selection instanceof StructuredSelection) {			AspectJUIPlugin.getDefault().disableBuildConfiguratorResourceChangeListener();						IRunnableWithProgress runnable = new IRunnableWithProgress() {				public void run(IProgressMonitor monitor) {					StructuredSelection sel = (StructuredSelection) selection;					for (Iterator iter = sel.iterator(); iter.hasNext();) {						Object object = iter.next();						if (object instanceof IAdaptable) {							IResource file = (IResource) ((IAdaptable) object)									.getAdapter(IResource.class);							IProject project = file.getProject();							if (file != null) {								String name = file.getName();								name = name.substring(0, name.indexOf('.')); //$NON-NLS-1$								RenameResourceChange change = new RenameResourceChange(										file, name + ".aj"); //$NON-NLS-1$								try {									change.perform(monitor);								} catch (CoreException e) {									AspectJUIPlugin											.getDefault()											.getErrorHandler()											.handleError(													AspectJUIPlugin															.getResourceString("Refactoring.ErrorRenamingResource"), //$NON-NLS-1$													e);								}								if (project != null) {									updateBuildConfigs(monitor, project, name);								}							}						}					}				}			};			IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(					runnable);			try {				new ProgressMonitorDialog(AspectJUIPlugin.getDefault()						.getDisplay().getActiveShell()).run(true, true, op);			} catch (InvocationTargetException e) {			} catch (InterruptedException e) {			}		}		AspectJUIPlugin.getDefault().enableBuildConfiguratorResourceChangeListener();			}