Search in sources :

Example 1 with ISourceProvider

use of org.eclipse.ui.ISourceProvider in project eclipse.platform.ui by eclipse-platform.

the class LegacyHandlerService method createContextSnapshot.

@Override
public IEvaluationContext createContextSnapshot(boolean includeSelection) {
    IEvaluationContext tmpContext = getCurrentState();
    IEvaluationContext context = new EvaluationContext(null, IEvaluationContext.UNDEFINED_VARIABLE);
    if (includeSelection) {
        for (String variable : SELECTION_VARIABLES) {
            copyVariable(context, tmpContext, variable);
        }
    }
    ISourceProviderService sp = eclipseContext.get(ISourceProviderService.class);
    for (ISourceProvider provider : sp.getSourceProviders()) {
        String[] names = provider.getProvidedSourceNames();
        for (String name : names) {
            if (!isSelectionVariable(name)) {
                copyVariable(context, tmpContext, name);
            }
        }
    }
    return context;
}
Also used : ISourceProvider(org.eclipse.ui.ISourceProvider) IEvaluationContext(org.eclipse.core.expressions.IEvaluationContext) EvaluationContext(org.eclipse.core.expressions.EvaluationContext) IEvaluationContext(org.eclipse.core.expressions.IEvaluationContext) ISourceProviderService(org.eclipse.ui.services.ISourceProviderService)

Example 2 with ISourceProvider

use of org.eclipse.ui.ISourceProvider in project eclipse.platform.ui by eclipse-platform.

the class ExpressionAuthority method dispose.

/**
 * Removes all of the source provider listeners. Subclasses may extend, but must
 * not override.
 */
public void dispose() {
    final Iterator<ISourceProvider> providerItr = providers.iterator();
    while (providerItr.hasNext()) {
        final ISourceProvider provider = providerItr.next();
        provider.removeSourceProviderListener(this);
    }
    providers.clear();
}
Also used : ISourceProvider(org.eclipse.ui.ISourceProvider)

Example 3 with ISourceProvider

use of org.eclipse.ui.ISourceProvider in project eclipse.platform.ui by eclipse-platform.

the class ShowInHandler method execute.

@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
    IWorkbenchPage p = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    WorkbenchPartReference r = (WorkbenchPartReference) p.getActivePartReference();
    if (p != null && r != null && r.getModel() != null) {
        ((WorkbenchPage) p).updateShowInSources(r.getModel());
    }
    String targetId = event.getParameter(IWorkbenchCommandConstants.NAVIGATE_SHOW_IN_PARM_TARGET);
    if (targetId == null) {
        // $NON-NLS-1$
        throw new ExecutionException("No targetId specified");
    }
    final IWorkbenchWindow activeWorkbenchWindow = HandlerUtil.getActiveWorkbenchWindowChecked(event);
    ISourceProviderService sps = activeWorkbenchWindow.getService(ISourceProviderService.class);
    if (sps != null) {
        ISourceProvider sp = sps.getSourceProvider(ISources.SHOW_IN_SELECTION);
        if (sp instanceof WorkbenchSourceProvider) {
            ((WorkbenchSourceProvider) sp).checkActivePart(true);
        }
    }
    ShowInContext context = getContext(HandlerUtil.getShowInSelection(event), HandlerUtil.getShowInInput(event));
    if (context == null) {
        return null;
    }
    IWorkbenchPage page = activeWorkbenchWindow.getActivePage();
    try {
        IViewPart view = page.showView(targetId);
        IShowInTarget target = getShowInTarget(view);
        if (!(target != null && target.show(context))) {
            page.getWorkbenchWindow().getShell().getDisplay().beep();
        }
        // TODO: move
        ((WorkbenchPage) page).performedShowIn(targetId);
    // back up
    } catch (PartInitException e) {
        // $NON-NLS-1$
        throw new ExecutionException("Failed to show in", e);
    }
    return null;
}
Also used : IWorkbenchWindow(org.eclipse.ui.IWorkbenchWindow) IViewPart(org.eclipse.ui.IViewPart) ISourceProvider(org.eclipse.ui.ISourceProvider) WorkbenchSourceProvider(org.eclipse.ui.internal.services.WorkbenchSourceProvider) ShowInContext(org.eclipse.ui.part.ShowInContext) IShowInTarget(org.eclipse.ui.part.IShowInTarget) IWorkbenchPage(org.eclipse.ui.IWorkbenchPage) IWorkbenchPage(org.eclipse.ui.IWorkbenchPage) PartInitException(org.eclipse.ui.PartInitException) ExecutionException(org.eclipse.core.commands.ExecutionException) ISourceProviderService(org.eclipse.ui.services.ISourceProviderService)

Example 4 with ISourceProvider

use of org.eclipse.ui.ISourceProvider in project eclipse.platform.ui by eclipse-platform.

the class ShowInMenu method fillMenu.

/**
 * Fills the menu with Show In actions.
 */
private void fillMenu(IMenuManager innerMgr) {
    IWorkbenchPage page = locator.getService(IWorkbenchPage.class);
    if (page == null) {
        return;
    }
    WorkbenchPartReference r = (WorkbenchPartReference) page.getActivePartReference();
    if (r != null && r.getModel() != null) {
        ((WorkbenchPage) page).updateShowInSources(r.getModel());
    }
    // Remove all.
    innerMgr.removeAll();
    IWorkbenchPart sourcePart = getSourcePart();
    ShowInContext context = getContext(sourcePart);
    if (context == null) {
        return;
    }
    if (context.getInput() == null && (context.getSelection() == null || context.getSelection().isEmpty())) {
        return;
    }
    IViewDescriptor[] viewDescs = getViewDescriptors(sourcePart);
    for (IViewDescriptor viewDesc : viewDescs) {
        IContributionItem cci = getContributionItem(viewDesc);
        if (cci != null) {
            innerMgr.add(cci);
        }
    }
    if (sourcePart != null && innerMgr instanceof MenuManager) {
        ISourceProviderService sps = locator.getService(ISourceProviderService.class);
        ISourceProvider sp = sps.getSourceProvider(ISources.SHOW_IN_SELECTION);
        if (sp instanceof WorkbenchSourceProvider) {
            ((WorkbenchSourceProvider) sp).checkActivePart(true);
        }
        // add contributions targeting popup:org.eclipse.ui.menus.showInMenu
        String location = MenuUtil.SHOW_IN_MENU_ID;
        location = location.substring(location.indexOf(':') + 1);
        WorkbenchWindow workbenchWindow = (WorkbenchWindow) getWindow();
        MApplication application = workbenchWindow.getModel().getContext().get(MApplication.class);
        MMenu menuModel = MenuFactoryImpl.eINSTANCE.createMenu();
        final ArrayList<MMenuContribution> toContribute = new ArrayList<>();
        final ArrayList<MMenuElement> menuContributionsToRemove = new ArrayList<>();
        ExpressionContext eContext = new ExpressionContext(workbenchWindow.getModel().getContext());
        ContributionsAnalyzer.gatherMenuContributions(menuModel, application.getMenuContributions(), location, toContribute, eContext, true);
        ContributionsAnalyzer.addMenuContributions(menuModel, toContribute, menuContributionsToRemove);
        ICommandImageService imgService = workbenchWindow.getService(ICommandImageService.class);
        for (MMenuElement menuElement : menuModel.getChildren()) {
            if (menuElement instanceof MHandledMenuItem) {
                MCommand command = ((MHandledMenuItem) menuElement).getCommand();
                String commandId = command.getElementId();
                CommandContributionItemParameter ccip = new CommandContributionItemParameter(workbenchWindow, commandId, commandId, CommandContributionItem.STYLE_PUSH);
                String label = menuElement.getLabel();
                if (label != null && label.length() > 0) {
                    ccip.label = label;
                    String mnemonics = menuElement.getMnemonics();
                    if (mnemonics != null && mnemonics.length() == 1) {
                        ccip.mnemonic = mnemonics;
                    } else {
                        ccip.mnemonic = label.substring(0, 1);
                    }
                }
                String iconURI = menuElement.getIconURI();
                try {
                    if (iconURI != null && !iconURI.isEmpty()) {
                        ccip.icon = ImageDescriptor.createFromURL(new URL(iconURI));
                    } else {
                        ccip.icon = imgService.getImageDescriptor(commandId);
                    }
                } catch (MalformedURLException e) {
                    ccip.icon = imgService.getImageDescriptor(commandId);
                }
                List<MParameter> menuParameters = ((MHandledMenuItem) menuElement).getParameters();
                if (menuParameters != null && !menuParameters.isEmpty()) {
                    ccip.parameters = new HashMap<>(menuParameters.size());
                    for (MParameter menuParam : menuParameters) {
                        ccip.parameters.put(menuParam.getName(), menuParam.getValue());
                    }
                }
                innerMgr.add(new CommandContributionItem(ccip));
            }
        }
    }
}
Also used : MalformedURLException(java.net.MalformedURLException) ShowInContext(org.eclipse.ui.part.ShowInContext) ArrayList(java.util.ArrayList) URL(java.net.URL) MMenuElement(org.eclipse.e4.ui.model.application.ui.menu.MMenuElement) IWorkbenchPage(org.eclipse.ui.IWorkbenchPage) IWorkbenchPart(org.eclipse.ui.IWorkbenchPart) CommandContributionItemParameter(org.eclipse.ui.menus.CommandContributionItemParameter) MParameter(org.eclipse.e4.ui.model.application.commands.MParameter) ISourceProviderService(org.eclipse.ui.services.ISourceProviderService) IWorkbenchWindow(org.eclipse.ui.IWorkbenchWindow) ISourceProvider(org.eclipse.ui.ISourceProvider) WorkbenchSourceProvider(org.eclipse.ui.internal.services.WorkbenchSourceProvider) IContributionItem(org.eclipse.jface.action.IContributionItem) MCommand(org.eclipse.e4.ui.model.application.commands.MCommand) MMenu(org.eclipse.e4.ui.model.application.ui.menu.MMenu) IViewDescriptor(org.eclipse.ui.views.IViewDescriptor) ExpressionContext(org.eclipse.e4.core.commands.ExpressionContext) MenuManager(org.eclipse.jface.action.MenuManager) IMenuManager(org.eclipse.jface.action.IMenuManager) ICommandImageService(org.eclipse.ui.commands.ICommandImageService) MHandledMenuItem(org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem) IWorkbenchPage(org.eclipse.ui.IWorkbenchPage) MMenuContribution(org.eclipse.e4.ui.model.application.ui.menu.MMenuContribution) CommandContributionItem(org.eclipse.ui.menus.CommandContributionItem) MApplication(org.eclipse.e4.ui.model.application.MApplication)

Example 5 with ISourceProvider

use of org.eclipse.ui.ISourceProvider in project eclipse.platform.ui by eclipse-platform.

the class Workbench method initializeDefaultServices.

/**
 * Initializes all of the default services for the workbench. For initializing
 * the command-based services, this also parses the registry and hooks up all
 * the required listeners.
 */
private void initializeDefaultServices() {
    final IContributionService contributionService = new ContributionService(getAdvisor());
    serviceLocator.registerService(IContributionService.class, contributionService);
    // TODO Correctly order service initialization
    // there needs to be some serious consideration given to
    // the services, and hooking them up in the correct order
    final IEvaluationService evaluationService = serviceLocator.getService(IEvaluationService.class);
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

        @Override
        public void runWithException() {
            serviceLocator.registerService(ISaveablesLifecycleListener.class, new SaveablesList());
        }
    });
    /*
		 * Phase 1 of the initialization of commands. When this phase completes, all the
		 * services and managers will exist, and be accessible via the
		 * getService(Object) method.
		 */
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

        @Override
        public void runWithException() {
            Command.DEBUG_COMMAND_EXECUTION = Policy.DEBUG_COMMANDS;
            commandManager = e4Context.get(CommandManager.class);
        }
    });
    final CommandService[] commandService = new CommandService[1];
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

        @Override
        public void runWithException() {
            commandService[0] = initializeCommandService(e4Context);
        }
    });
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

        @Override
        public void runWithException() {
            ContextManager.DEBUG = Policy.DEBUG_CONTEXTS;
            contextManager = e4Context.get(ContextManager.class);
        }
    });
    IContextService cxs = ContextInjectionFactory.make(ContextService.class, e4Context);
    final IContextService contextService = cxs;
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

        @Override
        public void runWithException() {
            contextManager.addContextManagerListener(contextManagerEvent -> {
                if (contextManagerEvent.isContextChanged()) {
                    String id = contextManagerEvent.getContextId();
                    if (id != null) {
                        defineBindingTable(id);
                    }
                }
            });
            EContextService ecs = e4Context.get(EContextService.class);
            ecs.activateContext(IContextService.CONTEXT_ID_DIALOG_AND_WINDOW);
        }
    });
    serviceLocator.registerService(IContextService.class, contextService);
    final IBindingService[] bindingService = new BindingService[1];
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

        @Override
        public void runWithException() {
            BindingManager.DEBUG = Policy.DEBUG_KEY_BINDINGS;
            bindingManager = e4Context.get(BindingManager.class);
            bindingService[0] = ContextInjectionFactory.make(BindingService.class, e4Context);
        }
    });
    // bindingService[0].readRegistryAndPreferences(commandService[0]);
    serviceLocator.registerService(IBindingService.class, bindingService[0]);
    final CommandImageManager commandImageManager = new CommandImageManager();
    final CommandImageService commandImageService = new CommandImageService(commandImageManager, commandService[0]);
    commandImageService.readRegistry();
    serviceLocator.registerService(ICommandImageService.class, commandImageService);
    final WorkbenchMenuService menuService = new WorkbenchMenuService(serviceLocator, e4Context);
    serviceLocator.registerService(IMenuService.class, menuService);
    // the service must be registered before it is initialized - its
    // initialization uses the service locator to address a dependency on
    // the menu service
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

        @Override
        public void runWithException() {
            menuService.readRegistry();
        }
    });
    /*
		 * Phase 2 of the initialization of commands. The source providers that the
		 * workbench provides are creating and registered with the above services. These
		 * source providers notify the services when particular pieces of workbench
		 * state change.
		 */
    final SourceProviderService sourceProviderService = new SourceProviderService(serviceLocator);
    serviceLocator.registerService(ISourceProviderService.class, sourceProviderService);
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

        @Override
        public void runWithException() {
            // this currently instantiates all players ... sigh
            sourceProviderService.readRegistry();
            ISourceProvider[] sourceproviders = sourceProviderService.getSourceProviders();
            for (ISourceProvider sp : sourceproviders) {
                evaluationService.addSourceProvider(sp);
                if (!(sp instanceof ActiveContextSourceProvider)) {
                    contextService.addSourceProvider(sp);
                }
            }
        }
    });
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

        @Override
        public void runWithException() {
            // these guys are need to provide the variables they say
            // they source
            FocusControlSourceProvider focusControl = (FocusControlSourceProvider) sourceProviderService.getSourceProvider(ISources.ACTIVE_FOCUS_CONTROL_ID_NAME);
            serviceLocator.registerService(IFocusService.class, focusControl);
            menuSourceProvider = (MenuSourceProvider) sourceProviderService.getSourceProvider(ISources.ACTIVE_MENU_NAME);
        }
    });
    /*
		 * Phase 3 of the initialization of commands. This handles the creation of
		 * wrappers for legacy APIs. By the time this phase completes, any code trying
		 * to access commands through legacy APIs should work.
		 */
    final IHandlerService[] handlerService = new IHandlerService[1];
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

        @Override
        public void runWithException() {
            handlerService[0] = new LegacyHandlerService(e4Context);
            e4Context.set(IHandlerService.class, handlerService[0]);
            handlerService[0].readRegistry();
        }
    });
    workbenchContextSupport = new WorkbenchContextSupport(this, contextManager);
    workbenchCommandSupport = new WorkbenchCommandSupport(bindingManager, commandManager, contextManager, handlerService[0]);
    initializeCommandResolver();
    bindingManager.addBindingManagerListener(bindingManagerListener);
    serviceLocator.registerService(ISelectionConversionService.class, new SelectionConversionService());
    backForwardListener = createBackForwardListener();
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

        @Override
        public void runWithException() {
            getDisplay().addFilter(SWT.MouseDown, backForwardListener);
        }
    });
}
Also used : BufferedInputStream(java.io.BufferedInputStream) CommandService(org.eclipse.ui.internal.commands.CommandService) ISaveableFilter(org.eclipse.ui.ISaveableFilter) IWorkbenchWindow(org.eclipse.ui.IWorkbenchWindow) IViewReference(org.eclipse.ui.IViewReference) Point(org.eclipse.swt.graphics.Point) IIntroManager(org.eclipse.ui.intro.IIntroManager) E4XMIResource(org.eclipse.e4.ui.internal.workbench.E4XMIResource) AbstractSplashHandler(org.eclipse.ui.splash.AbstractSplashHandler) ULocale(com.ibm.icu.util.ULocale) Map(java.util.Map) SWTException(org.eclipse.swt.SWTException) IServiceScopes(org.eclipse.ui.services.IServiceScopes) StatusManager(org.eclipse.ui.statushandlers.StatusManager) MessageDialog(org.eclipse.jface.dialogs.MessageDialog) IEditorPart(org.eclipse.ui.IEditorPart) IEvaluationService(org.eclipse.ui.services.IEvaluationService) IEditorInput(org.eclipse.ui.IEditorInput) PlatformUI(org.eclipse.ui.PlatformUI) StatusUtil(org.eclipse.ui.internal.misc.StatusUtil) IThemeManager(org.eclipse.ui.themes.IThemeManager) IRunnableContext(org.eclipse.jface.operation.IRunnableContext) OpenStrategy(org.eclipse.jface.util.OpenStrategy) ActiveContextSourceProvider(org.eclipse.ui.internal.contexts.ActiveContextSourceProvider) Window(org.eclipse.jface.window.Window) WorkbenchMenuService(org.eclipse.ui.internal.menus.WorkbenchMenuService) BindingManager(org.eclipse.jface.bindings.BindingManager) IApplicationContext(org.eclipse.equinox.app.IApplicationContext) XMLMemento(org.eclipse.ui.XMLMemento) IShellProvider(org.eclipse.jface.window.IShellProvider) SafeRunner(org.eclipse.core.runtime.SafeRunner) MPartDescriptor(org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor) SubMonitor(org.eclipse.core.runtime.SubMonitor) CommandsFactoryImpl(org.eclipse.e4.ui.model.application.commands.impl.CommandsFactoryImpl) BusyIndicator(org.eclipse.swt.custom.BusyIndicator) EPartService(org.eclipse.e4.ui.workbench.modeling.EPartService) ICommandService(org.eclipse.ui.commands.ICommandService) ListenerList(org.eclipse.core.runtime.ListenerList) IWorkbenchPart(org.eclipse.ui.IWorkbenchPart) WorkbenchContextSupport(org.eclipse.ui.internal.contexts.WorkbenchContextSupport) ColorDefinition(org.eclipse.ui.internal.themes.ColorDefinition) SplashHandlerFactory(org.eclipse.ui.internal.splash.SplashHandlerFactory) MWindow(org.eclipse.e4.ui.model.application.ui.basic.MWindow) IPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener) ContributionService(org.eclipse.ui.internal.model.ContributionService) IMemento(org.eclipse.ui.IMemento) IWorkbenchContextSupport(org.eclipse.ui.contexts.IWorkbenchContextSupport) ProgressManager(org.eclipse.ui.internal.progress.ProgressManager) MCategory(org.eclipse.e4.ui.model.application.commands.MCategory) EcoreUtil(org.eclipse.emf.ecore.util.EcoreUtil) ISaveablesLifecycleListener(org.eclipse.ui.ISaveablesLifecycleListener) CompatibilityEditor(org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor) IOException(java.io.IOException) ServiceLocatorCreator(org.eclipse.ui.internal.services.ServiceLocatorCreator) ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor) WorkbenchCommandSupport(org.eclipse.ui.internal.commands.WorkbenchCommandSupport) EModelService(org.eclipse.e4.ui.workbench.modeling.EModelService) StringReader(java.io.StringReader) IContextService(org.eclipse.ui.contexts.IContextService) EvaluationService(org.eclipse.ui.internal.services.EvaluationService) ViewDescriptor(org.eclipse.ui.internal.registry.ViewDescriptor) ContextInjectionFactory(org.eclipse.e4.core.contexts.ContextInjectionFactory) UIEvents(org.eclipse.e4.ui.workbench.UIEvents) WorkbenchException(org.eclipse.ui.WorkbenchException) IPreferenceStore(org.eclipse.jface.preference.IPreferenceStore) WorkbenchAdvisor(org.eclipse.ui.application.WorkbenchAdvisor) URISyntaxException(java.net.URISyntaxException) IAction(org.eclipse.jface.action.IAction) IBindingManagerListener(org.eclipse.jface.bindings.IBindingManagerListener) ErrorDialog(org.eclipse.jface.dialogs.ErrorDialog) Policy(org.eclipse.ui.internal.misc.Policy) IWorkbenchRegistryConstants(org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants) MCommandsFactory(org.eclipse.e4.ui.model.application.commands.MCommandsFactory) IStatus(org.eclipse.core.runtime.IStatus) IExtensionRegistry(org.eclipse.core.runtime.IExtensionRegistry) IExtensionPoint(org.eclipse.core.runtime.IExtensionPoint) FontDefinition(org.eclipse.ui.internal.themes.FontDefinition) IAdaptable(org.eclipse.core.runtime.IAdaptable) IWizardRegistry(org.eclipse.ui.wizards.IWizardRegistry) IBindingService(org.eclipse.ui.keys.IBindingService) Collection(java.util.Collection) UUID(java.util.UUID) ShowKeysListener(org.eclipse.ui.internal.keys.show.ShowKeysListener) IProgressMonitor(org.eclipse.core.runtime.IProgressMonitor) SourceProviderService(org.eclipse.ui.internal.services.SourceProviderService) Objects(java.util.Objects) ISourceProvider(org.eclipse.ui.ISourceProvider) WorkbenchThemeManager(org.eclipse.ui.internal.themes.WorkbenchThemeManager) ISourceProviderService(org.eclipse.ui.services.ISourceProviderService) ISelection(org.eclipse.jface.viewers.ISelection) IEditorRegistry(org.eclipse.ui.IEditorRegistry) CommandCallback(org.eclipse.jface.action.ExternalActionManager.CommandCallback) CompatibilityPart(org.eclipse.ui.internal.e4.compatibility.CompatibilityPart) SafeRunnable(org.eclipse.jface.util.SafeRunnable) WWinPartServiceSaveHandler(org.eclipse.ui.internal.WorkbenchWindow.WWinPartServiceSaveHandler) IExtensionDelta(org.eclipse.core.runtime.IExtensionDelta) IDecoratorManager(org.eclipse.ui.IDecoratorManager) IPerspectiveRegistry(org.eclipse.ui.IPerspectiveRegistry) Image(org.eclipse.swt.graphics.Image) IEventLoopAdvisor(org.eclipse.e4.ui.internal.workbench.swt.IEventLoopAdvisor) BundleEvent(org.osgi.framework.BundleEvent) HashSet(java.util.HashSet) E4Util(org.eclipse.ui.internal.e4.compatibility.E4Util) E4Application(org.eclipse.e4.ui.internal.workbench.swt.E4Application) MPart(org.eclipse.e4.ui.model.application.ui.basic.MPart) DeviceData(org.eclipse.swt.graphics.DeviceData) IWorkbenchPreferenceConstants(org.eclipse.ui.IWorkbenchPreferenceConstants) WorkbenchLocationService(org.eclipse.ui.internal.services.WorkbenchLocationService) NotHandledException(org.eclipse.core.commands.NotHandledException) BindingService(org.eclipse.ui.internal.keys.BindingService) ServiceRegistration(org.osgi.framework.ServiceRegistration) IRegistryChangeListener(org.eclipse.core.runtime.IRegistryChangeListener) ISaveHandler(org.eclipse.e4.ui.workbench.modeling.ISaveHandler) FileInputStream(java.io.FileInputStream) EclipseSplashHandler(org.eclipse.ui.internal.splash.EclipseSplashHandler) UIStats(org.eclipse.ui.internal.misc.UIStats) ITheme(org.eclipse.ui.themes.ITheme) SynchronousBundleListener(org.osgi.framework.SynchronousBundleListener) FrameworkUtil(org.osgi.framework.FrameworkUtil) Arrays(java.util.Arrays) NotDefinedException(org.eclipse.core.commands.common.NotDefinedException) MultiStatus(org.eclipse.core.runtime.MultiStatus) MTrimContribution(org.eclipse.e4.ui.model.application.ui.menu.MTrimContribution) ActionContributionItem(org.eclipse.jface.action.ActionContributionItem) CoreException(org.eclipse.core.runtime.CoreException) PartRenderingEngine(org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine) IServiceLocatorCreator(org.eclipse.ui.internal.services.IServiceLocatorCreator) MenuSourceProvider(org.eclipse.ui.internal.services.MenuSourceProvider) IUpdateService(org.eclipse.e4.ui.internal.workbench.renderers.swt.IUpdateService) PartInitException(org.eclipse.ui.PartInitException) MBindingContext(org.eclipse.e4.ui.model.application.commands.MBindingContext) BidiUtils(org.eclipse.jface.util.BidiUtils) WorkbenchHelpSystem(org.eclipse.ui.internal.help.WorkbenchHelpSystem) MApplication(org.eclipse.e4.ui.model.application.MApplication) ServiceLocator(org.eclipse.ui.internal.services.ServiceLocator) Realm(org.eclipse.core.databinding.observable.Realm) EContextService(org.eclipse.e4.ui.services.EContextService) PreferenceConverter(org.eclipse.jface.preference.PreferenceConverter) MenuManager(org.eclipse.jface.action.MenuManager) Assert(org.eclipse.core.runtime.Assert) Set(java.util.Set) Status(org.eclipse.core.runtime.Status) IModelResourceHandler(org.eclipse.e4.ui.workbench.IModelResourceHandler) Saveable(org.eclipse.ui.Saveable) DisplayRealm(org.eclipse.jface.databinding.swt.DisplayRealm) IFocusService(org.eclipse.ui.swt.IFocusService) SWT(org.eclipse.swt.SWT) ICommandImageService(org.eclipse.ui.commands.ICommandImageService) IWorkbenchOperationSupport(org.eclipse.ui.operations.IWorkbenchOperationSupport) Dictionary(java.util.Dictionary) MCommand(org.eclipse.e4.ui.model.application.commands.MCommand) WorkbenchJob(org.eclipse.ui.progress.WorkbenchJob) IWorkbenchBrowserSupport(org.eclipse.ui.browser.IWorkbenchBrowserSupport) ArrayList(java.util.ArrayList) Listener(org.eclipse.swt.widgets.Listener) IConfigurationElement(org.eclipse.core.runtime.IConfigurationElement) IApplication(org.eclipse.equinox.app.IApplication) IViewRegistry(org.eclipse.ui.views.IViewRegistry) NotEnabledException(org.eclipse.core.commands.NotEnabledException) FocusControlSourceProvider(org.eclipse.ui.internal.menus.FocusControlSourceProvider) LegacyHandlerService(org.eclipse.ui.internal.handlers.LegacyHandlerService) CommandManager(org.eclipse.core.commands.CommandManager) Shell(org.eclipse.swt.widgets.Shell) IWorkbenchHelpSystem(org.eclipse.ui.help.IWorkbenchHelpSystem) StringWriter(java.io.StringWriter) IElementFactory(org.eclipse.ui.IElementFactory) ExecutionException(org.eclipse.core.commands.ExecutionException) IPresentationEngine(org.eclipse.e4.ui.workbench.IPresentationEngine) PrefUtil(org.eclipse.ui.internal.util.PrefUtil) EventManager(org.eclipse.core.commands.common.EventManager) Command(org.eclipse.core.commands.Command) IWorkbenchListener(org.eclipse.ui.IWorkbenchListener) IIntroRegistry(org.eclipse.ui.internal.intro.IIntroRegistry) ServiceTracker(org.osgi.util.tracker.ServiceTracker) Platform(org.eclipse.core.runtime.Platform) ModalContext(org.eclipse.jface.operation.ModalContext) IEventBroker(org.eclipse.e4.core.services.events.IEventBroker) StartupRunnable(org.eclipse.ui.internal.StartupThreading.StartupRunnable) IExtensionTracker(org.eclipse.core.runtime.dynamichelpers.IExtensionTracker) Constants(org.osgi.framework.Constants) URL(java.net.URL) IWorkbenchCommandConstants(org.eclipse.ui.IWorkbenchCommandConstants) CommandImageManager(org.eclipse.ui.internal.commands.CommandImageManager) IMenuService(org.eclipse.ui.menus.IMenuService) UIExtensionTracker(org.eclipse.ui.internal.registry.UIExtensionTracker) ThemeElementHelper(org.eclipse.ui.internal.themes.ThemeElementHelper) IProgressService(org.eclipse.ui.progress.IProgressService) URI(java.net.URI) ProgressManagerUtil(org.eclipse.ui.internal.progress.ProgressManagerUtil) IExtension(org.eclipse.core.runtime.IExtension) MElementContainer(org.eclipse.e4.ui.model.application.ui.MElementContainer) NLS(org.eclipse.osgi.util.NLS) ExternalActionManager(org.eclipse.jface.action.ExternalActionManager) EObject(org.eclipse.emf.ecore.EObject) Display(org.eclipse.swt.widgets.Display) ContextService(org.eclipse.ui.internal.contexts.ContextService) IWorkbenchPage(org.eclipse.ui.IWorkbenchPage) BundleContext(org.osgi.framework.BundleContext) ISharedImages(org.eclipse.ui.ISharedImages) IHandlerService(org.eclipse.ui.handlers.IHandlerService) List(java.util.List) IDisposable(org.eclipse.ui.services.IDisposable) Category(com.ibm.icu.util.ULocale.Category) IPerspectiveDescriptor(org.eclipse.ui.IPerspectiveDescriptor) IViewDescriptor(org.eclipse.ui.views.IViewDescriptor) IProduct(org.eclipse.core.runtime.IProduct) Resource(org.eclipse.emf.ecore.resource.Resource) ContributionInfoMessages(org.eclipse.ui.internal.testing.ContributionInfoMessages) IWindowListener(org.eclipse.ui.IWindowListener) ILocalWorkingSetManager(org.eclipse.ui.ILocalWorkingSetManager) MBindingTable(org.eclipse.e4.ui.model.application.commands.MBindingTable) StartupMonitor(org.eclipse.osgi.service.runnable.StartupMonitor) PropertyPageContributorManager(org.eclipse.ui.internal.dialogs.PropertyPageContributorManager) HashMap(java.util.HashMap) IWorkbenchLocationService(org.eclipse.ui.internal.services.IWorkbenchLocationService) ContextManager(org.eclipse.core.commands.contexts.ContextManager) IntroDescriptor(org.eclipse.ui.internal.intro.IntroDescriptor) ContextFunction(org.eclipse.e4.core.contexts.ContextFunction) IEclipseContext(org.eclipse.e4.core.contexts.IEclipseContext) PreferenceManager(org.eclipse.jface.preference.PreferenceManager) IWorkbenchActivitySupport(org.eclipse.ui.activities.IWorkbenchActivitySupport) IWorkbenchCommandSupport(org.eclipse.ui.commands.IWorkbenchCommandSupport) ContributionInfo(org.eclipse.ui.testing.ContributionInfo) Hashtable(java.util.Hashtable) WorkbenchActivitySupport(org.eclipse.ui.internal.activities.ws.WorkbenchActivitySupport) Job(org.eclipse.core.runtime.jobs.Job) E4Workbench(org.eclipse.e4.ui.internal.workbench.E4Workbench) InjectionException(org.eclipse.e4.core.di.InjectionException) CommandAction(org.eclipse.ui.internal.actions.CommandAction) WorkbenchTestable(org.eclipse.ui.internal.testing.WorkbenchTestable) CommandImageService(org.eclipse.ui.internal.commands.CommandImageService) FontData(org.eclipse.swt.graphics.FontData) WorkbenchBrowserSupport(org.eclipse.ui.internal.browser.WorkbenchBrowserSupport) IWorkbench(org.eclipse.ui.IWorkbench) IWorkingSetManager(org.eclipse.ui.IWorkingSetManager) Collections(java.util.Collections) InputStream(java.io.InputStream) BasicFactoryImpl(org.eclipse.e4.ui.model.application.ui.basic.impl.BasicFactoryImpl) ISources(org.eclipse.ui.ISources) IContributionService(org.eclipse.ui.model.IContributionService) FocusControlSourceProvider(org.eclipse.ui.internal.menus.FocusControlSourceProvider) WorkbenchMenuService(org.eclipse.ui.internal.menus.WorkbenchMenuService) CommandService(org.eclipse.ui.internal.commands.CommandService) ICommandService(org.eclipse.ui.commands.ICommandService) StartupRunnable(org.eclipse.ui.internal.StartupThreading.StartupRunnable) ISaveablesLifecycleListener(org.eclipse.ui.ISaveablesLifecycleListener) IFocusService(org.eclipse.ui.swt.IFocusService) SourceProviderService(org.eclipse.ui.internal.services.SourceProviderService) ISourceProviderService(org.eclipse.ui.services.ISourceProviderService) IContextService(org.eclipse.ui.contexts.IContextService) IBindingService(org.eclipse.ui.keys.IBindingService) IBindingService(org.eclipse.ui.keys.IBindingService) BindingService(org.eclipse.ui.internal.keys.BindingService) ISourceProvider(org.eclipse.ui.ISourceProvider) WorkbenchContextSupport(org.eclipse.ui.internal.contexts.WorkbenchContextSupport) IWorkbenchContextSupport(org.eclipse.ui.contexts.IWorkbenchContextSupport) WorkbenchCommandSupport(org.eclipse.ui.internal.commands.WorkbenchCommandSupport) IWorkbenchCommandSupport(org.eclipse.ui.commands.IWorkbenchCommandSupport) EContextService(org.eclipse.e4.ui.services.EContextService) MenuSourceProvider(org.eclipse.ui.internal.services.MenuSourceProvider) IHandlerService(org.eclipse.ui.handlers.IHandlerService) LegacyHandlerService(org.eclipse.ui.internal.handlers.LegacyHandlerService) ActiveContextSourceProvider(org.eclipse.ui.internal.contexts.ActiveContextSourceProvider) IContributionService(org.eclipse.ui.model.IContributionService) ICommandImageService(org.eclipse.ui.commands.ICommandImageService) CommandImageService(org.eclipse.ui.internal.commands.CommandImageService) ContributionService(org.eclipse.ui.internal.model.ContributionService) IContributionService(org.eclipse.ui.model.IContributionService) IEvaluationService(org.eclipse.ui.services.IEvaluationService) CommandImageManager(org.eclipse.ui.internal.commands.CommandImageManager)

Aggregations

ISourceProvider (org.eclipse.ui.ISourceProvider)7 ISourceProviderService (org.eclipse.ui.services.ISourceProviderService)4 IWorkbenchPage (org.eclipse.ui.IWorkbenchPage)3 IWorkbenchWindow (org.eclipse.ui.IWorkbenchWindow)3 URL (java.net.URL)2 ArrayList (java.util.ArrayList)2 Map (java.util.Map)2 ExecutionException (org.eclipse.core.commands.ExecutionException)2 MApplication (org.eclipse.e4.ui.model.application.MApplication)2 MCommand (org.eclipse.e4.ui.model.application.commands.MCommand)2 MenuManager (org.eclipse.jface.action.MenuManager)2 IWorkbenchPart (org.eclipse.ui.IWorkbenchPart)2 PartInitException (org.eclipse.ui.PartInitException)2 ICommandImageService (org.eclipse.ui.commands.ICommandImageService)2 WorkbenchSourceProvider (org.eclipse.ui.internal.services.WorkbenchSourceProvider)2 ShowInContext (org.eclipse.ui.part.ShowInContext)2 IViewDescriptor (org.eclipse.ui.views.IViewDescriptor)2 ULocale (com.ibm.icu.util.ULocale)1 Category (com.ibm.icu.util.ULocale.Category)1 BufferedInputStream (java.io.BufferedInputStream)1