Skip to content
Snippets Groups Projects
Commit b293f977 authored by cfsnook's avatar cfsnook
Browse files

Remove workaround 16184 - a better fix is to not ignore changes to attributes (see 16242)

git-svn-id: svn://svn.code.sf.net/p/rodin-b-sharp/svn/trunk/Camille@16243 1434b563-b632-4741-aa49-43a3a8374d2e
parent 6510f068
No related branches found
No related tags found
No related merge requests found
...@@ -61,13 +61,14 @@ public class PersistenceHelper { ...@@ -61,13 +61,14 @@ public class PersistenceHelper {
* both Resource and IResource to be save. * both Resource and IResource to be save.
*/ */
//final long textTimestamp = getTextTimestamp(resource); //final long textTimestamp = getTextTimestamp(resource);
// TODO: Workaround for save bug. The method getTextTimestamp // REMOVED WORKAROUND BELOW: a better fix is to not ignore attributes in EventBReferencesCheck
// returns in some cases -1 (no time annotation exists). I noticed // --- TODO: Workaround for save bug. The method getTextTimestamp
// that many different instances of the same resource exist. Some // --- returns in some cases -1 (no time annotation exists). I noticed
// are annotated, the others not. // --- that many different instances of the same resource exist. Some
// --- are annotated, the others not.
long textTimestamp = getTextTimestamp(resource); long textTimestamp = getTextTimestamp(resource);
if(textTimestamp == -1) // if(textTimestamp == -1)
textTimestamp = System.currentTimeMillis(); // textTimestamp = System.currentTimeMillis();
resource.setTimeStamp(textTimestamp); resource.setTimeStamp(textTimestamp);
getIResource(resource).setLocalTimeStamp(textTimestamp); getIResource(resource).setLocalTimeStamp(textTimestamp);
} catch (final IOException e) { } catch (final IOException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment