Skip to content

Commit 4d4bbe0

Browse files
author
jantje
committed
#1204 move the registration of the listeners more forward
I'm doing this because it seems like the listeners are not triggered when running in maven. Now they are but the indexer seems to fail on the second run
1 parent eda78c9 commit 4d4bbe0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

io.sloeber.core/src/io/sloeber/core/Activator.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void start(BundleContext context) throws Exception {
9191
testKnownIssues();
9292
initializeImportantVariables();
9393
runPluginCoreStartInstantiatorJob();
94-
94+
registerListeners();
9595
runInstallJob();
9696
instance = this;
9797

@@ -200,6 +200,8 @@ private static void registerListeners() {
200200
CoreModel singCoreModel = CoreModel.getDefault();
201201
singCoreModel.addCProjectDescriptionListener(new ConfigurationChangeListener(),
202202
CProjectDescriptionEvent.ABOUT_TO_APPLY);
203+
Common.log(new Status(IStatus.WARNING, Activator.getId(),
204+
"Listeners are registered"));
203205
}
204206

205207
private static void initializeImportantVariables() {
@@ -250,7 +252,7 @@ protected IStatus run(IProgressMonitor monitor) {
250252
if (InstancePreferences.useBonjour()) {
251253
SloeberNetworkDiscovery.start();
252254
}
253-
registerListeners();
255+
254256
return Status.OK_STATUS;
255257
}
256258

0 commit comments

Comments
 (0)