use of org.talend.mdm.repository.ui.actions.CreateFolderAction in project tmdm-studio-se by Talend.
the class RepositoryNodeActionProviderAdapter method initCommonViewer.
@Override
public void initCommonViewer(CommonViewer commonViewer) {
importObjectAction = initRepositoryAction(ImportObjectAction.createImportAction(), commonViewer);
exportObjectAction = initRepositoryAction(new ExportObjectAction(), commonViewer);
createFolderAction = initRepositoryAction(new CreateFolderAction(), commonViewer);
removeFromRepositoryAction = initRepositoryAction(new RemoveFromRepositoryAction(), commonViewer);
renameAction = initRepositoryAction(new RenameObjectAction(), commonViewer);
duplicateAction = initRepositoryAction(new DuplicateAction(), commonViewer);
deployToAction = initRepositoryAction(new DeployToAction(), commonViewer);
deployAnotherToAction = initRepositoryAction(new DeployAnotherVersionAction(), commonViewer);
deployToLastServerAction = initRepositoryAction(new DeployToLastServerAction(), commonViewer);
undeployAction = initRepositoryAction(new UndeployAction(), commonViewer);
deployAllAction = initRepositoryAction(new DeployAllAction(false), commonViewer);
emAction = initRepositoryAction(new MDMEventManagerAction(), commonViewer);
importServerObjectAction = initRepositoryAction(new ImportServerObjectAction(), commonViewer);
mdmEditPropertyAction = initRepositoryAction(new MDMEditPropertyAction(), commonViewer);
openVersionAction = initRepositoryAction(new MDMOpenExistVersionProcessAction(), commonViewer);
// for debug digestValue
debugDigestValueAction = initRepositoryAction(new DebugDigestValueAction(), commonViewer);
//
if (hasValidateService()) {
validateAction = initRepositoryAction(new ValidateAction(), commonViewer);
}
//
refreshAction = globalActionHandler.getGlobalAction(IRepositoryViewGlobalActionHandler.REFRESH);
copyAction = globalActionHandler.getGlobalAction(IRepositoryViewGlobalActionHandler.COPY);
if (exAdapter != null) {
exAdapter.initCommonViewer(commonViewer);
}
pasteAction = globalActionHandler.getGlobalAction(IRepositoryViewGlobalActionHandler.PASTE);
// action provider
for (IRepositoryNodeActionProvider provider : getExtendActionProviders()) {
provider.initCommonViewer(commonViewer);
}
// recycle
RepositoryNodeConfigurationManager.getRecycleBinNodeConfiguration().getActionProvider().initCommonViewer(commonViewer);
}
Aggregations