[
https://jira.jboss.org/browse/JBIDE-6504?page=com.atlassian.jira.plugin.s...
]
Dan Florian commented on JBIDE-6504:
------------------------------------
Tested and committed patch. Only thing added was also a check to make sure the file was
not a hidden file. Only caught this as I'm working with some hidden files now.
Probably doesn't hurt that the decorator is decorating hidden files but I thought
there really is no point as the user can't see them.
Exceptions in modeshape when deleting a project
-----------------------------------------------
Key: JBIDE-6504
URL:
https://jira.jboss.org/browse/JBIDE-6504
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: modeshape
Reporter: Rob Stryker
Assignee: Dan Florian
Attachments: jbide6504.patch
This is the exception. It seems when resources are being deleted, the IFiles are still
being checked even though they don't exist.
!ENTRY org.jboss.tools.modeshape.rest 4 0 2010-06-21 16:48:45.776
!MESSAGE Error obtaining the "published" property from the resource
"L/JP5/.classpath"
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Resource '/JP5/.classpath'
does not exist.
at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:326)
at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:200)
at
org.eclipse.core.internal.resources.Resource.checkAccessibleAndLocal(Resource.java:206)
at
org.eclipse.core.internal.resources.Resource.getPersistentProperty(Resource.java:1178)
at
org.jboss.tools.modeshape.rest.PublishedResourceHelper.getPublishedOnWorkspaces(PublishedResourceHelper.java:134)
at
org.jboss.tools.modeshape.rest.PublishedResourceHelper.isPublished(PublishedResourceHelper.java:193)
at
org.jboss.tools.modeshape.rest.views.ModeShapeContentProvider.decorate(ModeShapeContentProvider.java:147)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
at
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:371)
at
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:331)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SUBENTRY 1 org.eclipse.core.resources 4 368 2010-06-21 16:48:45.778
!MESSAGE Resource '/JP5/.classpath' does not exist.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira