Search in sources :

Example 1 with ImportServerObjectAction

use of org.talend.mdm.repository.ui.actions.ImportServerObjectAction 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());
}
Also used : DeployAllAction(org.talend.mdm.repository.ui.actions.DeployAllAction) AbstractRepositoryAction(org.talend.mdm.repository.core.AbstractRepositoryAction) ExportObjectAction(org.talend.mdm.repository.ui.actions.ExportObjectAction) ImportServerObjectAction(org.talend.mdm.repository.ui.actions.ImportServerObjectAction) RefreshAction(org.talend.mdm.repository.ui.actions.RefreshAction) Separator(org.eclipse.jface.action.Separator)

Example 2 with ImportServerObjectAction

use of org.talend.mdm.repository.ui.actions.ImportServerObjectAction 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);
}
Also used : RenameObjectAction(org.talend.mdm.repository.ui.actions.RenameObjectAction) ExportObjectAction(org.talend.mdm.repository.ui.actions.ExportObjectAction) MDMEditPropertyAction(org.talend.mdm.repository.ui.actions.MDMEditPropertyAction) DebugDigestValueAction(org.talend.mdm.repository.ui.actions.DebugDigestValueAction) MDMEventManagerAction(org.talend.mdm.repository.ui.actions.process.MDMEventManagerAction) DeployToLastServerAction(org.talend.mdm.repository.ui.actions.DeployToLastServerAction) IRepositoryNodeActionProvider(org.talend.mdm.repository.core.IRepositoryNodeActionProvider) RemoveFromRepositoryAction(org.talend.mdm.repository.ui.actions.RemoveFromRepositoryAction) UndeployAction(org.talend.mdm.repository.ui.actions.UndeployAction) DeployAllAction(org.talend.mdm.repository.ui.actions.DeployAllAction) DeployToAction(org.talend.mdm.repository.ui.actions.DeployToAction) ImportServerObjectAction(org.talend.mdm.repository.ui.actions.ImportServerObjectAction) CreateFolderAction(org.talend.mdm.repository.ui.actions.CreateFolderAction) ValidateAction(org.talend.mdm.repository.ui.actions.ValidateAction) MDMOpenExistVersionProcessAction(org.talend.mdm.repository.ui.actions.MDMOpenExistVersionProcessAction) DeployAnotherVersionAction(org.talend.mdm.repository.ui.actions.DeployAnotherVersionAction) DuplicateAction(org.talend.mdm.repository.ui.actions.DuplicateAction)

Aggregations

DeployAllAction (org.talend.mdm.repository.ui.actions.DeployAllAction)2 ExportObjectAction (org.talend.mdm.repository.ui.actions.ExportObjectAction)2 ImportServerObjectAction (org.talend.mdm.repository.ui.actions.ImportServerObjectAction)2 Separator (org.eclipse.jface.action.Separator)1 AbstractRepositoryAction (org.talend.mdm.repository.core.AbstractRepositoryAction)1 IRepositoryNodeActionProvider (org.talend.mdm.repository.core.IRepositoryNodeActionProvider)1 CreateFolderAction (org.talend.mdm.repository.ui.actions.CreateFolderAction)1 DebugDigestValueAction (org.talend.mdm.repository.ui.actions.DebugDigestValueAction)1 DeployAnotherVersionAction (org.talend.mdm.repository.ui.actions.DeployAnotherVersionAction)1 DeployToAction (org.talend.mdm.repository.ui.actions.DeployToAction)1 DeployToLastServerAction (org.talend.mdm.repository.ui.actions.DeployToLastServerAction)1 DuplicateAction (org.talend.mdm.repository.ui.actions.DuplicateAction)1 MDMEditPropertyAction (org.talend.mdm.repository.ui.actions.MDMEditPropertyAction)1 MDMOpenExistVersionProcessAction (org.talend.mdm.repository.ui.actions.MDMOpenExistVersionProcessAction)1 RefreshAction (org.talend.mdm.repository.ui.actions.RefreshAction)1 RemoveFromRepositoryAction (org.talend.mdm.repository.ui.actions.RemoveFromRepositoryAction)1 RenameObjectAction (org.talend.mdm.repository.ui.actions.RenameObjectAction)1 UndeployAction (org.talend.mdm.repository.ui.actions.UndeployAction)1 ValidateAction (org.talend.mdm.repository.ui.actions.ValidateAction)1 MDMEventManagerAction (org.talend.mdm.repository.ui.actions.process.MDMEventManagerAction)1