Search in sources :

Example 1 with RefreshAction

use of org.talend.mdm.repository.ui.actions.RefreshAction 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 RefreshAction

use of org.talend.mdm.repository.ui.actions.RefreshAction in project tmdm-studio-se by Talend.

the class MDMRepositoryActionProvider method initActions.

private void initActions() {
    registerCommonAction(new OpenObjectAction());
    registerCommonAction(new RefreshAction(false));
    registerCommonAction(new CopyAction());
    registerCommonAction(new PasteAction());
}
Also used : PasteAction(org.talend.mdm.repository.ui.actions.PasteAction) RefreshAction(org.talend.mdm.repository.ui.actions.RefreshAction) CopyAction(org.talend.mdm.repository.ui.actions.CopyAction) OpenObjectAction(org.talend.mdm.repository.ui.actions.OpenObjectAction)

Aggregations

RefreshAction (org.talend.mdm.repository.ui.actions.RefreshAction)2 Separator (org.eclipse.jface.action.Separator)1 AbstractRepositoryAction (org.talend.mdm.repository.core.AbstractRepositoryAction)1 CopyAction (org.talend.mdm.repository.ui.actions.CopyAction)1 DeployAllAction (org.talend.mdm.repository.ui.actions.DeployAllAction)1 ExportObjectAction (org.talend.mdm.repository.ui.actions.ExportObjectAction)1 ImportServerObjectAction (org.talend.mdm.repository.ui.actions.ImportServerObjectAction)1 OpenObjectAction (org.talend.mdm.repository.ui.actions.OpenObjectAction)1 PasteAction (org.talend.mdm.repository.ui.actions.PasteAction)1