Search in sources :

Example 1 with FindAction

use of org.talend.designer.runtime.visualization.internal.ui.properties.cpu.actions.FindAction in project tdi-studio-se by Talend.

the class CpuSection method contributeToActionBars.

/**
     * Contributes to action bars.
     */
private void contributeToActionBars() {
    IActionBars actionBars = getActionBars();
    OpenDeclarationAction.createOpenDeclarationAction(actionBars);
    actionBars.setGlobalActionHandler(ActionFactory.FIND.getId(), new FindAction());
    CopyAction.createCopyAction(actionBars);
}
Also used : FindAction(org.talend.designer.runtime.visualization.internal.ui.properties.cpu.actions.FindAction) IActionBars(org.eclipse.ui.IActionBars)

Example 2 with FindAction

use of org.talend.designer.runtime.visualization.internal.ui.properties.cpu.actions.FindAction in project tdi-studio-se by Talend.

the class CpuDumpEditor method contributeToActionBars.

/**
     * Contributes to action bars.
     */
private void contributeToActionBars() {
    IActionBars actionBars = getEditorSite().getActionBars();
    actionBars.setGlobalActionHandler(JdtActionConstants.OPEN, new OpenDeclarationAction());
    actionBars.setGlobalActionHandler(ActionFactory.FIND.getId(), new FindAction());
    actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), new CopyAction());
}
Also used : OpenDeclarationAction(org.talend.designer.runtime.visualization.internal.actions.OpenDeclarationAction) FindAction(org.talend.designer.runtime.visualization.internal.ui.properties.cpu.actions.FindAction) CopyAction(org.talend.designer.runtime.visualization.internal.actions.CopyAction) IActionBars(org.eclipse.ui.IActionBars)

Aggregations

IActionBars (org.eclipse.ui.IActionBars)2 FindAction (org.talend.designer.runtime.visualization.internal.ui.properties.cpu.actions.FindAction)2 CopyAction (org.talend.designer.runtime.visualization.internal.actions.CopyAction)1 OpenDeclarationAction (org.talend.designer.runtime.visualization.internal.actions.OpenDeclarationAction)1