Fixing resource not found error.
diff --git a/core/org.eclipse.rcptt.core/src/org/eclipse/rcptt/internal/core/model/Q7Element.java b/core/org.eclipse.rcptt.core/src/org/eclipse/rcptt/internal/core/model/Q7Element.java
index f17dba4..85cf21c 100644
--- a/core/org.eclipse.rcptt.core/src/org/eclipse/rcptt/internal/core/model/Q7Element.java
+++ b/core/org.eclipse.rcptt.core/src/org/eclipse/rcptt/internal/core/model/Q7Element.java
@@ -70,6 +70,7 @@
protected synchronized Object openWhenClosed(Object info,
IProgressMonitor monitor) throws ModelException {
ModelManager manager = ModelManager.getModelManager();
+ final boolean isWC = isInWorkingCopyMode();
try {
Map<IQ7Element, Object> newElements = new HashMap<IQ7Element, Object>();
generateInfos(info, newElements, monitor);
@@ -79,13 +80,13 @@
if (info == null) {
throw newNotPresentException();
}
- if (!isInWorkingCopyMode()) {
+ if (!isWC) {
// Do not put info if in working copy mode
manager.putInfos(this, newElements);
}
} finally {
}
- Object info2 = manager.getInfo(this);
+ Object info2 = isWC ? info : manager.getInfo(this);
return info2;
}