Don't forget to dispose wizard page image

This commit is contained in:
aboyko
2023-01-17 10:15:22 -05:00
parent 5ac79698c4
commit 2063ff438e
2 changed files with 12 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2012, 2020 Pivotal Software, Inc.
* Copyright (c) 2012, 2023 Pivotal Software, 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
@@ -189,6 +189,7 @@ public abstract class WizardPageWithSections extends WizardPage implements IPage
for (WizardPageSection s : sections) {
s.dispose();
}
super.dispose();
}
@Override

View File

@@ -84,16 +84,18 @@ public class BootProjectTracker {
}
private boolean isSpringProject(IJavaProject jp) {
try {
IClasspathEntry[] classpath = jp.getResolvedClasspath(true);
//Look for a 'spring-core' jar or project entry
for (IClasspathEntry e : classpath) {
if (isBootJar(e) || isBootProject(e)) {
return true;
if (jp.exists()) {
try {
IClasspathEntry[] classpath = jp.getResolvedClasspath(true);
//Look for a 'spring-core' jar or project entry
for (IClasspathEntry e : classpath) {
if (isBootJar(e) || isBootProject(e)) {
return true;
}
}
} catch (JavaModelException e) {
logger.log(e);
}
} catch (JavaModelException e) {
logger.log(e);
}
return false;
}