Skip to content

Commit 24881ac

Browse files
committed
Use DS annotations instead of handcrafted XML
1 parent cd70f45 commit 24881ac

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

bundles/org.eclipse.search/.project

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
<arguments>
2626
</arguments>
2727
</buildCommand>
28+
<buildCommand>
29+
<name>org.eclipse.pde.ds.core.builder</name>
30+
<arguments>
31+
</arguments>
32+
</buildCommand>
2833
</buildSpec>
2934
<natures>
3035
<nature>org.eclipse.jdt.core.javanature</nature>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
dsVersion=V1_4
2+
eclipse.preferences.version=1
3+
enabled=true
4+
generateBundleActivationPolicyLazy=true
5+
path=OSGI-INF
6+
validationErrorLevel=error
7+
validationErrorLevel.missingImplicitUnbindMethod=error

bundles/org.eclipse.search/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ Require-Bundle:
3030
org.eclipse.ltk.core.refactoring;bundle-version="[3.5.0,4.0.0)",
3131
org.eclipse.ltk.ui.refactoring;bundle-version="[3.5.0,4.0.0)",
3232
org.eclipse.search.core;bundle-version="[3.16.0,4.0.0)";visibility:=reexport
33+
Service-Component: OSGI-INF/org.eclipse.search.ui.dirtyEditorSearchParticipant.xml
3334
Bundle-RequiredExecutionEnvironment: JavaSE-17
3435
Automatic-Module-Name: org.eclipse.search
35-
Service-Component: OSGI-INF/*.xml

bundles/org.eclipse.search/OSGI-INF/dirtyEditorService.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

bundles/org.eclipse.search/search/org/eclipse/search/internal/ui/text/DirtyFileSearchParticipant.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
import java.util.HashMap;
1717
import java.util.Map;
1818

19+
import org.osgi.service.component.annotations.Component;
20+
1921
import org.eclipse.core.resources.IFile;
2022

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

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

43+
@Component(service = DirtyFileProvider.class, name = "org.eclipse.search.ui.dirtyEditorSearchParticipant", property = "weight:Integer=100")
4144
public class DirtyFileSearchParticipant implements DirtyFileProvider {
4245

4346
@Override

0 commit comments

Comments
 (0)