1
1
/*******************************************************************************
2
- * Copyright (c) 2018, 2020 Remain Software and others
2
+ * Copyright (c) 2018, 2024 Remain Software and others
3
3
*
4
4
* This program and the accompanying materials
5
5
* are made available under the terms of the Eclipse Public License 2.0
35
35
import org .osgi .framework .FrameworkUtil ;
36
36
import org .osgi .service .component .annotations .Component ;
37
37
import org .osgi .service .event .Event ;
38
- import org .osgi .service .event .EventConstants ;
39
38
import org .osgi .service .event .EventHandler ;
39
+ import org .osgi .service .event .propertytypes .EventTopics ;
40
40
41
41
/**
42
42
* Early startup to run the TipManager in the IDE.
43
43
*/
44
- @ Component (property = EventConstants . EVENT_TOPIC + '=' + UIEvents . UILifeCycle . APP_STARTUP_COMPLETE )
45
- @ SuppressWarnings ( "restriction" )
44
+ @ Component (service = EventHandler . class )
45
+ @ EventTopics ( UIEvents . UILifeCycle . APP_STARTUP_COMPLETE )
46
46
public class TipsStartupService implements EventHandler {
47
47
48
48
private static final String DBLQUOTE = "\" " ; //$NON-NLS-1$
@@ -54,6 +54,7 @@ public class TipsStartupService implements EventHandler {
54
54
private static final String SPACE = " " ; //$NON-NLS-1$
55
55
56
56
@ Override
57
+ @ SuppressWarnings ("restriction" )
57
58
public void handleEvent (Event event ) {
58
59
if (TipsPreferences .getStartupBehavior () != TipManager .START_DISABLE ) {
59
60
Job job = new Job (Messages .Startup_1 ) {
0 commit comments