wiki:ANNOTATIONS_EXPORT_IMPORT_R0
Last modified 16 years ago Last modified on 03/14/09 11:30:23

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=ANNOTATIONS_EXPORT_IMPORT_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Warning! This content is now obsolete. Read GROUP_ANNOTATIONS_R0.

Overview

Annotations can be exported to and imported from a file. This includes stickies, highlights and audio annotations.

Task requirements

In the Stickies palette in the Annotations tab there should be two buttons: "Save Stickies As..." and "Import Stickies...". The Highlights and Audio palettes should have analogical buttons (when done).

When clicked such a button, a file dialog appears.

It's important that it should not be possible to import stickies and highlights, exported from another book.

I recommend to implement ANNOTATIONS_STICKIES_R0 first.

Task result

Source code.

Implementation idea

Use the same code that performs saving/loading annotations from/to a file.

Use JFileChooser control. If dealing with stickies, the file filter should be something like "*.stickies" and etc.

How to demo

  • Run Sophie2
  • Create a new book
  • Create a new sticky
  • Export the stickies to a file, located on the desktop
  • Show the desktop and look for the file
  • Return to Sophie2 window
  • Delete the sticky
  • Import stickies from the file

Design

(Describe your design here.)

Implementation

(Describe and link the implementation results here (from the wiki or the repository).)

Testing

(Place the testing results here.)

Comments

(Write comments for this or later revisions here.)