Don't forget to dispose wizard page image
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user