Pages linking to ANNOTATIONS_EXPORT_IMPORT_R0:
TASK_INDEX
SCHEDULE_MAINTENANCE_R2
ANNOTATIONS_STICKIES_R0

Ticket Summary Owner Status Type Component Priority Effort Importance
#988 ANNOTATIONS_EXPORT_IMPORT_R0 mitex closed planned_task DOMAIN_ELEMENTS 3 0.5 0

Reported by Astea, 3 years ago.

description

wiki page: ANNOTATIONS_EXPORT_IMPORT_R0 - effort: 0.5d

analysis_owners

mitex

analysis_reviewers

pap

analysis_score

3

design_owners

milo, mitex

design_reviewers

meddle

design_score

3

implementation_owners

mitex

implementation_reviewers

meddle

implementation_score

3

test_score

0

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.)