Ticket #1977 (closed bug: later)

Opened 16 years ago

Last modified 15 years ago

Tweak: Desktop book should be autosaved

Reported by: deyan Owned by:
Priority: major Milestone: M12_RELEASE
Component: uncategorized Version: 2.0
Keywords: Cc:
Category: unknown Effort:
Importance: 10 Ticket_group:
Estimated Number of Hours: 0 Add Hours to Ticket: 0
Billable?: yes Total Hours: 0
Analysis_owners: deyan Design_owners: mitex
Imp._owners: mitex Test_owners:
Analysis_reviewers: Changelog:
Design_reviewers: Imp._reviewers:
Test_reviewers: Analysis_score: 0
Design_score: 0 Imp._score: 0
Test_score: 0

Description (last modified by deyan) (diff)

Contents of the book desktop should be autosaved in a local folder after evert change.

Change History

comment:1 Changed 16 years ago by deyan

  • Status changed from new to s1b_analysis_finished

comment:2 Changed 16 years ago by deyan

  • Description modified (diff)

comment:3 Changed 16 years ago by mitex

  • Design_owners set to mitex
  • Status changed from s1b_analysis_finished to s2a_design_started
  • Imp._owners set to bobi, mitex

comment:4 Changed 15 years ago by mitex

  • Status changed from s2a_design_started to s3b_implementation_finished
  • Imp._owners changed from bobi, mitex to mitex

Design:

  • Create a static utility method {{{AppViewUtil.loadDesktopBook(AppMainWindow)
    • Get writable entry for "desktop.sjrb"
    • If the file is empty (0 bytes), create a new book and make the page transparent (use the existing logic). Then save the book to the file.
    • Open the file and set the desktop book view.
  • Create SaveDesktopTimerTask in org.sophie2.main.app.commons.util
    • Create a static helper method saveDesktop(DefaultMainWindow
      • Call StoredResourceAccess.save(null) for the resource access of the desktop view.
      • Call this method from the run method of the task.
  • In FakeAuthorMain and AuthorModule\
    • call loadDesktopBook
    • schedule a new SaveDesktopTimerTask for an interval of 1 minute.
  • In MainWindowLogic.ON_CLOSE call SaveDesktopTimerTask.saveDesktop. This is needed, because it is possible that the desktop book is modified after last automatic save and then the application is closed without saving again.

Implementation:
svn://sophie2.org/sophie2/branches/private/mitex/bug1977

comment:5 Changed 15 years ago by mitex

The desktop book is saved every minute, not on every change. This change in task requirements was discussed with pap. Maybe 5 minutes or more is even better choice, integrators will decide.

comment:6 Changed 15 years ago by deyan

  • Importance set to 10

Batch update from file 0911261.csv

comment:7 Changed 15 years ago by deyan

  • Status changed from s3b_implementation_finished to closed
  • Resolution set to later
Note: See TracTickets for help on using tickets.