Search in sources :

Example 1 with RenameViewDialog2

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;
}
Also used : IWorkbenchPartSite(org.eclipse.ui.IWorkbenchPartSite) RenameViewDialog2(org.talend.mdm.repository.ui.dialogs.RenameViewDialog2) RenameViewDialog(org.talend.mdm.repository.ui.dialogs.RenameViewDialog)

Aggregations

IWorkbenchPartSite (org.eclipse.ui.IWorkbenchPartSite)1 RenameViewDialog (org.talend.mdm.repository.ui.dialogs.RenameViewDialog)1 RenameViewDialog2 (org.talend.mdm.repository.ui.dialogs.RenameViewDialog2)1