示例#1
0
 /** Adds or edits the description of the tag. */
 private void editDescription() {
   if (!(data instanceof AnnotationData)) return;
   String text = model.getAnnotationDescription((AnnotationData) data);
   originalDescription = text;
   SwingUtilities.convertPointToScreen(popupPoint, this);
   JFrame f = MetadataViewerAgent.getRegistry().getTaskBar().getFrame();
   int type = EditorDialog.EDIT_TYPE;
   if (isModulo) type = EditorDialog.VIEW_TYPE;
   EditorDialog d = new EditorDialog(f, (AnnotationData) data, false, type);
   if (isModulo) d.allowEdit(false);
   d.addPropertyChangeListener(this);
   d.setOriginalDescription(originalDescription);
   d.setSize(300, 250);
   UIUtilities.showOnScreen(d, popupPoint);
 }