Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dsVersion=V1_3
dsVersion=V1_4
eclipse.preferences.version=1
enabled=true
generateBundleActivationPolicyLazy=true
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.eclipse.e4.core.commands/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Bundle-SymbolicName: org.eclipse.e4.core.commands;singleton:=true
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-Version: 1.1.400.qualifier
Bundle-Version: 1.1.500.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-17
Import-Package: jakarta.annotation;version="[2.1.0,3.0.0)",
jakarta.inject;version="[2.0.0,3.0.0)",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2014 IBM Corporation and others.
* Copyright (c) 2009, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -21,7 +21,8 @@
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.osgi.service.component.annotations.Component;

@Component(service = IContextFunction.class, property = "service.context.key=org.eclipse.e4.core.commands.ECommandService")
@Component(service = IContextFunction.class )
@IContextFunction.ServiceContextKey(org.eclipse.e4.core.commands.ECommandService.class)
public class CommandServiceCreationFunction extends ContextFunction {
/**
* A context key (value "rootContext") that identifies the root of this context chain. It does
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2013 IBM Corporation and others.
* Copyright (c) 2009, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -20,7 +20,8 @@
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.osgi.service.component.annotations.Component;

@Component(service = IContextFunction.class, property = "service.context.key=org.eclipse.e4.core.commands.EHandlerService")
@Component(service = IContextFunction.class)
@IContextFunction.ServiceContextKey(org.eclipse.e4.core.commands.EHandlerService.class)
public class HandlerServiceCreationFunction extends ContextFunction {

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dsVersion=V1_3
dsVersion=V1_4
eclipse.preferences.version=1
enabled=true
generateBundleActivationPolicyLazy=true
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.eclipse.e4.ui.bindings/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.eclipse.e4.ui.bindings;singleton:=true
Bundle-Version: 0.14.400.qualifier
Bundle-Version: 0.14.500.qualifier
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2014 IBM Corporation and others.
* Copyright (c) 2009, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -20,7 +20,8 @@
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.osgi.service.component.annotations.Component;

@Component(service = IContextFunction.class, property = "service.context.key=org.eclipse.e4.ui.bindings.EBindingService")
@Component(service = IContextFunction.class)
@IContextFunction.ServiceContextKey(org.eclipse.e4.ui.bindings.EBindingService.class)
public class BindingServiceCreationFunction extends ContextFunction {

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dsVersion=V1_4
eclipse.preferences.version=1
enabled=true
generateBundleActivationPolicyLazy=true
path=OSGI-INF
validationErrorLevel=error
validationErrorLevel.missingImplicitUnbindMethod=error
4 changes: 2 additions & 2 deletions bundles/org.eclipse.e4.ui.progress/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.eclipse.e4.ui.progress;singleton:=true
Bundle-Version: 0.4.600.qualifier
Bundle-Version: 0.4.700.qualifier
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Expand All @@ -21,5 +21,5 @@ Import-Package: jakarta.annotation;version="[2.1.0,3.0.0)",
Bundle-RequiredExecutionEnvironment: JavaSE-17
Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.e4.ui.progress
Service-Component: OSGI-INF/progress.xml
Service-Component: OSGI-INF/org.eclipse.e4.ui.progress.internal.ProgressServiceCreationFunction.xml
Automatic-Module-Name: org.eclipse.e4.ui.progress
8 changes: 0 additions & 8 deletions bundles/org.eclipse.e4.ui.progress/OSGI-INF/progress.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@

import org.eclipse.e4.core.contexts.ContextFunction;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IContextFunction;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.ui.progress.IProgressService;
import org.osgi.service.component.annotations.Component;

@Component(service = IContextFunction.class)
@IContextFunction.ServiceContextKey(IProgressService.class)
public class ProgressServiceCreationFunction extends ContextFunction {

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dsVersion=V1_3
dsVersion=V1_4
eclipse.preferences.version=1
enabled=true
generateBundleActivationPolicyLazy=true
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.eclipse.e4.ui.services/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.eclipse.e4.ui.services;singleton:=true
Bundle-Version: 1.6.300.qualifier
Bundle-Version: 1.6.400.qualifier
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2016 IBM Corporation and others.
* Copyright (c) 2009, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -23,12 +23,11 @@
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.event.EventAdmin;



/**
* Use this class to obtain an instance of {@link IEventBroker}.
*/
@Component(service = IContextFunction.class, property = "service.context.key=org.eclipse.e4.core.services.events.IEventBroker")
@Component(service = IContextFunction.class)
@IContextFunction.ServiceContextKey(IEventBroker.class)
public class EventBrokerFactory extends ContextFunction {

// mandatory static reference to EventAdmin to ensure it is available before
Expand All @@ -50,4 +49,3 @@ public Object compute(IEclipseContext context, String contextKey) {
return broker;
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
classpath=true
dsVersion=V1_3
dsVersion=V1_4
eclipse.preferences.version=1
enabled=true
generateBundleActivationPolicyLazy=true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.eclipse.e4.ui.workbench.swt;singleton:=true
Bundle-Version: 0.17.500.qualifier
Bundle-Version: 0.17.600.qualifier
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2010, 2016 IBM Corporation and others.
* Copyright (c) 2010, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -20,7 +20,8 @@
import org.eclipse.e4.core.di.InjectionException;
import org.osgi.service.component.annotations.Component;

@Component(service = IContextFunction.class, property = "service.context.key=org.eclipse.e4.ui.services.EMenuService")
@Component(service = IContextFunction.class)
@IContextFunction.ServiceContextKey(org.eclipse.e4.ui.services.EMenuService.class)
public class MenuServiceCreationFunction extends ContextFunction {

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2010, 2016 IBM Corporation and others.
* Copyright (c) 2010, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -19,13 +19,13 @@
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.osgi.service.component.annotations.Component;

@Component(service = IContextFunction.class, property = "service.context.key=org.eclipse.e4.core.services.statusreporter.StatusReporter")
@Component(service = IContextFunction.class)
@IContextFunction.ServiceContextKey(org.eclipse.e4.core.services.statusreporter.StatusReporter.class)
public class StatusReporterCreationFunction extends ContextFunction {

@Override
public Object compute(IEclipseContext context, String contextKey) {
return ContextInjectionFactory.make(WorkbenchStatusReporter.class,
context);
return ContextInjectionFactory.make(WorkbenchStatusReporter.class, context);
}

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
classpath=true
dsVersion=V1_3
dsVersion=V1_4
eclipse.preferences.version=1
enabled=true
generateBundleActivationPolicyLazy=true
Expand Down
5 changes: 3 additions & 2 deletions bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.eclipse.e4.ui.workbench;singleton:=true
Bundle-Version: 1.15.500.qualifier
Bundle-Version: 1.15.600.qualifier
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Expand Down Expand Up @@ -37,7 +37,8 @@ Export-Package: org.eclipse.e4.ui.internal.workbench;
Bundle-Activator: org.eclipse.e4.ui.internal.workbench.Activator
Import-Package: jakarta.annotation;version="[2.1.0,3.0.0)",
jakarta.inject;version="[2.0.0,3.0.0)",
org.osgi.service.event;version="[1.3.0,2.0.0)"
org.osgi.service.event;version="[1.3.0,2.0.0)",
org.osgi.service.event.propertytypes;version="[1.4.0,2.0.0)"
Require-Capability: osgi.extender;
filter:="(&(osgi.extender=osgi.component)(version>=1.2)(!(version>=2.0)))",
osgi.service;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2013, 2016 Dirk Fauth and others.
* Copyright (c) 2013, 2024 Dirk Fauth and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -24,13 +24,13 @@
/**
* Context function to provide the LocaleChangeServiceImpl to the application context.
*/
@Component(service = IContextFunction.class, property = "service.context.key=org.eclipse.e4.core.services.nls.ILocaleChangeService")
@Component(service = IContextFunction.class)
@IContextFunction.ServiceContextKey(ILocaleChangeService.class)
public class LocaleChangeServiceContextFunction extends ContextFunction {

@Override
public Object compute(IEclipseContext context, String contextKey) {
ILocaleChangeService lcService = ContextInjectionFactory.make(
LocaleChangeServiceImpl.class, context);
ILocaleChangeService lcService = ContextInjectionFactory.make(LocaleChangeServiceImpl.class, context);

// add the new object to the application context
MApplication application = context.get(MApplication.class);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2022 Christoph Läubrich and others.
* Copyright (c) 2022, 2024 Christoph Läubrich and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -27,10 +27,11 @@
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.event.Event;
import org.osgi.service.event.EventHandler;
import org.osgi.service.event.propertytypes.EventTopics;

@Component(service = IContextFunction.class, property = {
"service.context.key=org.eclipse.core.runtime.dynamichelpers.IExtensionTracker",
"event.topics=" + IEclipseContext.TOPIC_DISPOSE })
@Component(service = IContextFunction.class)
@IContextFunction.ServiceContextKey(IExtensionTracker.class)
@EventTopics(IEclipseContext.TOPIC_DISPOSE)
public class ExtensionTrackeContextFunction extends ContextFunction implements EventHandler {

@Reference
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2016 IBM Corporation and others.
* Copyright (c) 2009, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -24,7 +24,8 @@
import org.eclipse.e4.ui.model.application.ui.basic.MWindow;
import org.osgi.service.component.annotations.Component;

@Component(service = IContextFunction.class, property = "service.context.key=org.eclipse.e4.ui.workbench.modeling.EPartService")
@Component(service = IContextFunction.class)
@IContextFunction.ServiceContextKey(org.eclipse.e4.ui.workbench.modeling.EPartService.class)
public class PartServiceCreationFunction extends ContextFunction {

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2016 IBM Corporation and others.
* Copyright (c) 2009, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -24,7 +24,8 @@
* used near the root of a context tree to provide a reasonable default monitor for cases where more
* specific contexts have not provided one.
*/
@Component(service = IContextFunction.class, property = "service.context.key=org.eclipse.core.runtime.IProgressMonitor")
@Component(service = IContextFunction.class)
@IContextFunction.ServiceContextKey(org.eclipse.core.runtime.IProgressMonitor.class)
public class ProgressMonitorFunction extends ContextFunction {

@Override
Expand Down
5 changes: 5 additions & 0 deletions bundles/org.eclipse.search/.project
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ds.core.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dsVersion=V1_4
eclipse.preferences.version=1
enabled=true
generateBundleActivationPolicyLazy=true
path=OSGI-INF
validationErrorLevel=error
validationErrorLevel.missingImplicitUnbindMethod=error
2 changes: 1 addition & 1 deletion bundles/org.eclipse.search/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ Require-Bundle:
org.eclipse.search.core;bundle-version="[3.16.0,4.0.0)";visibility:=reexport
Bundle-RequiredExecutionEnvironment: JavaSE-17
Automatic-Module-Name: org.eclipse.search
Service-Component: OSGI-INF/*.xml
Service-Component: OSGI-INF/org.eclipse.search.internal.ui.text.DirtyFileSearchParticipant.xml
8 changes: 0 additions & 8 deletions bundles/org.eclipse.search/OSGI-INF/dirtyEditorService.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import java.util.HashMap;
import java.util.Map;

import org.osgi.service.component.annotations.Component;

import org.eclipse.core.resources.IFile;

import org.eclipse.core.filebuffers.FileBuffers;
Expand All @@ -38,6 +40,7 @@

import org.eclipse.search.internal.core.text.DirtyFileProvider;

@Component(service = DirtyFileProvider.class, immediate = false, property = { "weight:Integer=100" })
public class DirtyFileSearchParticipant implements DirtyFileProvider {

@Override
Expand Down
3 changes: 2 additions & 1 deletion docs/Eclipse4_RCP_Contexts.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ These contexts — and the services requested — are bounded by the lifecycle o
This approach exposes a context function as the implementation of a service defined OSGi Declarative Services.
This pattern is used for creating the _IEventBroker_, using the new DS annotations support.

@Component(service = IContextFunction.class, property = "service.context.key=org.eclipse.e4.core.services.events.IEventBroker")
@Component(service = IContextFunction.class)
@IContextFunction.ServiceContextKey(org.eclipse.e4.core.services.events.IEventBroker.class)
public class EventBrokerFactory extends ContextFunction {
@Override
public Object compute(IEclipseContext context, String contextKey) {
Expand Down
1 change: 1 addition & 0 deletions examples/org.eclipse.e4.demo.cssbridge/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/OSGI-INF/org.eclipse.*.xml
Loading
Loading