Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Patch
Description
The ResourceListener did not properly handle open and add of projects. If a project already had a nature, these were not added to the set of managed Groovy Projects. A restart would fix this problem.
— Use the javaProject rather than IProject
GroovyModel.getProjectOutputPath()
GroovyModel.getModel().getGroovyProject(javaProject).setOutputPath(projectPreference, projectPreference);
– Fix the listener code
GroovyCoreActivator.resourceChanged()
if (resourceType == IResource.PROJECT) {
// adding a project either due to rename or open (ADDED)
// removing a project due to rename (REMOVED) or closing (CHANGED)
if (kind == IResourceDelta.ADDED ||
(kind == IResourceDelta.CHANGED && project.isOpen() && (delta.getFlags() & IResourceDelta.OPEN) != 0))
else if (kind == IResourceDelta.REMOVED ||
(kind == IResourceDelta.CHANGED && !project.isOpen() && (delta.getFlags() & IResourceDelta.OPEN) != 0))
} else if (resourceType == IResource.FILE) {