//XXX workaround bug 31998
if (ActionUtil.mustDisableScriptModelAction(getShell(), element)) return;
final RenameSupport support = createRenameSupport(element, null, RenameSupport.UPDATE_REFERENCES);
if (support != null && support.preCheck().isOK()) {
support.openDialog(getShell());
}
}
private static boolean isRenameAvailable(IModelElement element) throws CoreException {
switch (element.getElementType()) {