Logging to track Boot LS start/stop
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2022 VMware, Inc.
|
||||
* Copyright (c) 2022, 2023 VMware, Inc.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
@@ -40,6 +40,7 @@ public class BootProjectTracker {
|
||||
|
||||
@Override
|
||||
public void classpathChanged(IJavaProject jp) {
|
||||
logger.log("Classpath changed for project: " + jp.getElementName());
|
||||
processProject(jp);
|
||||
}
|
||||
});
|
||||
@@ -56,10 +57,12 @@ public class BootProjectTracker {
|
||||
private void processProject(IJavaProject jp) {
|
||||
if (isSpringProject(jp)) {
|
||||
if (springProjects.add(jp)) {
|
||||
logger.log("Boot project ADDED: " + jp.getElementName());
|
||||
fireEvent();
|
||||
}
|
||||
} else {
|
||||
if (springProjects.remove(jp)) {
|
||||
logger.log("Boot project REMOVED: " + jp.getElementName());
|
||||
fireEvent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user