Issue #117 resolved

Unsaved changes log entry generation

Martin Robillard
created an issue

For each Qualyzer session, a entry is logged in the workspace log, stating:

!ENTRY org.eclipse.core.resources 2 10035 2011-01-31 09:39:18.484 !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

Let's try to find that bit and squash it.

Comments (2)

  1. Martin Robillard reporter

    This was the fix, to put in ApplicationWorkbenchAdvisor

    // This method is necessary to prevent the platform from
        // issuing a warning that resources are not saved, after each session.
        // Impact on performance to be assessed.
        @Override
        public boolean preShutdown()
        {
            try
            {
                ResourcesPlugin.getWorkspace().save(true, null);
            }
            catch(final CoreException lException)
            {
                fLogger.error("Problem saving workspace state", lException); //$NON-NLS-1$
            }
            return super.preShutdown();
        }
    
  2. Log in to comment