Building WebObject projects in Eclipse 4.31 fails with an error:
class org.eclipse.jdt.internal.core.JavaNature cannot be cast to class org.eclipse.jdt.core.IJavaProject (org.eclipse.jdt.internal.core.JavaNature and org.eclipse.jdt.core.IJavaProject are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @...)
This PR resolves this error by using another way to get the IJavaProject.
It also replaces the deprecated SubProgressMonitor with a SubMonitor.
Building WebObject projects in Eclipse 4.31 fails with an error:
class org.eclipse.jdt.internal.core.JavaNature cannot be cast to class org.eclipse.jdt.core.IJavaProject (org.eclipse.jdt.internal.core.JavaNature and org.eclipse.jdt.core.IJavaProject are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @...)
This PR resolves this error by using another way to get the IJavaProject. It also replaces the deprecated SubProgressMonitor with a SubMonitor.