Search in sources :

Example 1 with N4JSProjectActionGroup

use of org.eclipse.n4js.ui.workingsets.internal.N4JSProjectActionGroup in project n4js by eclipse.

the class N4JSNavigatorActionProvider method init.

@Override
public void init(final ICommonActionExtensionSite site) {
    ICommonViewerWorkbenchSite workbenchSite = null;
    if (site.getViewSite() instanceof ICommonViewerWorkbenchSite)
        workbenchSite = (ICommonViewerWorkbenchSite) site.getViewSite();
    if (workbenchSite != null) {
        if (workbenchSite.getPart() != null && workbenchSite.getPart() instanceof IViewPart) {
            final IViewPart viewPart = (IViewPart) workbenchSite.getPart();
            projectGroup = new N4JSProjectActionGroup(viewPart);
            workingSetActionProvider = new N4JSWorkingSetActionProvider();
            workingSetActionProvider.init(site);
            assignWorkingSetsAction.init(site);
        }
    }
}
Also used : IViewPart(org.eclipse.ui.IViewPart) N4JSWorkingSetActionProvider(org.eclipse.n4js.ui.workingsets.internal.N4JSWorkingSetActionProvider) N4JSProjectActionGroup(org.eclipse.n4js.ui.workingsets.internal.N4JSProjectActionGroup) ICommonViewerWorkbenchSite(org.eclipse.ui.navigator.ICommonViewerWorkbenchSite)

Aggregations

N4JSProjectActionGroup (org.eclipse.n4js.ui.workingsets.internal.N4JSProjectActionGroup)1 N4JSWorkingSetActionProvider (org.eclipse.n4js.ui.workingsets.internal.N4JSWorkingSetActionProvider)1 IViewPart (org.eclipse.ui.IViewPart)1 ICommonViewerWorkbenchSite (org.eclipse.ui.navigator.ICommonViewerWorkbenchSite)1