Skip to content

Commit

Permalink
Generated all OSGi Declarative Services component files by PDE-DS/Tycho
Browse files Browse the repository at this point in the history
Remove the now generated OSGi Declarative Services component-xml files
from git.

Resolve wildcards in Service-Component header.
  • Loading branch information
HannesWell committed Sep 30, 2024
1 parent f9b743f commit 99f7c85
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 26 deletions.
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.e4.ui.progress/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -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,12 @@

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.osgi.service.component.annotations.Component;

@Component(service = IContextFunction.class, property = {
"service.context.key=org.eclipse.e4.ui.progress.IProgressService" })
public class ProgressServiceCreationFunction 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
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Export-Package: org.eclipse.e4.demo.cssbridge.core,
org.eclipse.e4.demo.cssbridge.ui.views,
org.eclipse.e4.demo.cssbridge.util
Bundle-ActivationPolicy: lazy
Service-Component: OSGI-INF/mailservice.xml
Service-Component: OSGI-INF/org.eclipse.e4.demo.cssbridge.internal.core.DummyMailService.xml
Automatic-Module-Name: org.eclipse.e4.demo.cssbridge
Bundle-Vendor: %Bundle-Vendor
Bundle-Localization: plugin

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
import org.eclipse.e4.demo.cssbridge.model.Importance;
import org.eclipse.e4.demo.cssbridge.model.Mail;
import org.eclipse.e4.demo.cssbridge.util.MailBuilder;
import org.osgi.service.component.annotations.Component;

@Component(service = IMailService.class)
public class DummyMailService implements IMailService {
private static final String MAILBOX_NAME = "[email protected]";

Expand Down

0 comments on commit 99f7c85

Please sign in to comment.