use of org.talend.mdm.repository.ui.actions.datacontainer.NewDataContainerAction in project tmdm-studio-se by Talend.
the class NewDataModelAction method createDataContainerObject.
protected void createDataContainerObject(final String key) {
if (!RepositoryResourceUtil.isExistByName(IServerObjectRepositoryType.TYPE_DATACLUSTER, key)) {
NewDataContainerAction newDataContainerAction = new NewDataContainerAction() {
@Override
protected String getInputName() {
return key;
}
@Override
protected void updateParentItem() {
IRepositoryViewObject folderViewObj = ContainerCacheService.get(IServerObjectRepositoryType.TYPE_DATACLUSTER, // $NON-NLS-1$
"");
if (folderViewObj != null) {
Item pItem = folderViewObj.getProperty().getItem();
setParentItem((ContainerItem) pItem);
}
}
};
newDataContainerAction.run();
}
}
Aggregations