use of org.talend.mdm.repository.ui.dialogs.RenameViewDialog2 in project tmdm-studio-se by Talend.
the class RenameViewAction method getRenameDialog.
private RenameViewDialog getRenameDialog(String oldName) {
RenameViewDialog dialog = null;
IWorkbenchPartSite site = commonViewer.getCommonNavigator().getSite();
if (RepositoryTransformUtil.getInstance().getViewType(oldName) == TYPE_WEBFILTER) {
dialog = new RenameViewDialog(getShell(), Messages.RenameObjectAction_rename, Messages.Common_rename, oldName.substring(PREFIX_VIEW_UPPER.length()), getInputValidator(), site);
} else {
dialog = new RenameViewDialog2(getShell(), Messages.RenameObjectAction_rename, Messages.Common_rename, oldName, getInputValidator(), site);
}
return dialog;
}
Aggregations