Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328244

Summary: HUTN problem with closed projects
Product: [Modeling] Epsilon Reporter: Steffen Zschaler <steffen.zschaler>
Component: CoreAssignee: Louis Rose <louis>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: dkolovos, louis
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: interim

Description Steffen Zschaler CLA 2010-10-20 09:48:10 EDT
It seems that HUTN stumbles over projects that are closed when the workspace is initially opened. I get the following exception on the Eclipse console:

org.eclipse.core.internal.resources.ResourceException: Resource '/MyProject' is not open.
   at org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:137)
   at org.eclipse.core.internal.resources.Project.hasNature(Project.java:511)
   at org.eclipse.epsilon.hutn.xmi.dt.startup.ConformanceCheckingNature.hasConformanceCheckingNature(ConformanceCheckingNature.java:29)
   at org.eclipse.epsilon.hutn.xmi.dt.startup.CheckConformanceOnStartup$ConformanceChecker.checkConformanceOfModelsInProjectsWithConformanceCheckingNature(CheckConformanceOnStartup.java:67)
   at org.eclipse.epsilon.hutn.xmi.dt.startup.CheckConformanceOnStartup$ConformanceChecker.run(CheckConformanceOnStartup.java:55)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

where MyProject is a project that is in the workspace but is currently closed. I'm not actually using HUTN, so I do not know if this causes any further problems, but thought I would report it anyway.

Cheers,

Steffen
Comment 1 Louis Rose CLA 2011-09-20 04:34:51 EDT
I think I fixed this a while back, but did not see this bug report. I will investigate...
Comment 2 Louis Rose CLA 2011-09-20 05:37:17 EDT
Yes, this was fixed (inadvertently) in HUTN, but a similar problem in Concordance was still present. I've now fixed the problem throughout the code base by always checking that a project is open before inspecting its natures.
Comment 3 Dimitris Kolovos CLA 2012-11-08 16:19:06 EST
Fixed in 1.0