use of org.talend.mdm.repository.ui.actions.ExportObjectAction in project tmdm-studio-se by Talend.
the class TreeViewerListener method fillLocalToolBar.
private void fillLocalToolBar(IToolBarManager manager) {
RefreshAction refreshViewAction = new RefreshAction(true);
refreshViewAction.initCommonViewer(((CommonNavigator) this).getCommonViewer());
manager.add(new Separator());
manager.add(refreshViewAction);
manager.add(new Separator());
deployAll = new DeployAllAction(true);
deployAll.initCommonViewer(((CommonNavigator) this).getCommonViewer());
manager.add(deployAll);
manager.add(new Separator());
AbstractRepositoryAction importObject = ImportObjectAction.createImportAction();
importObject.initCommonViewer(((CommonNavigator) this).getCommonViewer());
manager.add(importObject);
// manager.add(new Separator());
ExportObjectAction exportObject = new ExportObjectAction();
exportObject.initCommonViewer(((CommonNavigator) this).getCommonViewer());
manager.add(exportObject);
// manager.add(new Separator());
ImportServerObjectAction importServerObject = new ImportServerObjectAction();
importServerObject.initCommonViewer(((CommonNavigator) this).getCommonViewer());
manager.add(importServerObject);
manager.add(new Separator());
}
use of org.talend.mdm.repository.ui.actions.ExportObjectAction 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