Changeset 2764


Ignore:
Timestamp:
05/08/07 16:16:34 (13 years ago)
Author:
curtis
Message:

Rename OME Notebook to OME Notes.

Location:
trunk/loci/ome/notes
Files:
7 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/loci/ome/notes/Notes.java

    r2725 r2764  
    11// 
    2 // Notebook.java 
     2// Notes.java 
    33// 
    44 
    55/* 
    6 OME Metadata Notebook application for exploration and editing of OME-XML and 
    7 OME-TIFF metadata. Copyright (C) 2006-@year@ Christopher Peterson. 
     6OME Notes library for flexible organization and presentation of OME-XML 
     7metadata. Copyright (C) 2006-@year@ Melissa Linkert. 
    88 
    99This program is free software; you can redistribute it and/or modify 
     
    2222*/ 
    2323 
    24 package loci.ome.notebook; 
     24package loci.ome.notes; 
    2525 
    2626import com.jgoodies.forms.layout.*; 
     
    3838import org.w3c.dom.*; 
    3939 
    40 /** Main notebook window. */ 
    41 public class Notebook extends JFrame implements ActionListener { 
     40/** Main OME Notes window. */ 
     41public class Notes extends JFrame implements ActionListener { 
    4242 
    4343  // -- Constants -- 
     
    8181 
    8282  /** Constructs a new main window with the default template. */ 
    83   public Notebook(String template, String newfile) { 
    84     super("OME Notebook"); 
     83  public Notes(String template, String newfile) { 
     84    super("OME Notes"); 
    8585 
    8686    // set up the main panel 
     
    144144    else { 
    145145      templateName = DEFAULT_TEMPLATE; 
    146       loadTemplate(Notebook.class.getResourceAsStream(DEFAULT_TEMPLATE)); 
     146      loadTemplate(Notes.class.getResourceAsStream(DEFAULT_TEMPLATE)); 
    147147    } 
    148148 
     
    158158  } 
    159159 
    160   // -- Notebook API methods -- 
     160  // -- Notes API methods -- 
    161161 
    162162  /** Load and apply a template from the specified file. */ 
     
    479479        } 
    480480        public String getDescription() { 
    481           return "OME Notebook Templates"; 
     481          return "OME Notes Templates"; 
    482482        } 
    483483      }; 
     
    590590  /** 
    591591   * Merge two OME-CA trees. When a conflict arises, use the value in 'over'. 
    592    * This method was adapted from an earlier version of the OME Notebook, 
     592   * This method was adapted from the OME Metadata Editor, 
    593593   * written by Christopher Peterson. 
    594594   * 
     
    604604  /** 
    605605   * Merge two OME-XML trees. 
    606    * This method was adapted from an earlier version of the OME Notebook, 
     606   * This method was adapted from the OME Metadata Editor, 
    607607   * written by Christopher Peterson. 
    608608   */ 
     
    653653  /** 
    654654   * Clones the specified DOM element, preserving the parent structure. 
    655    * This method was adapted from an earlier version of the OME Notebook, 
     655   * This method was adapted from the OME Metadata Editor, 
    656656   * written by Christopher Peterson. 
    657657   */ 
     
    694694    } 
    695695 
    696     new Notebook(template, data); 
     696    new Notes(template, data); 
    697697  } 
    698698 
  • trunk/loci/ome/notes/Template.java

    r2725 r2764  
    44 
    55/* 
    6 OME Metadata Notebook application for exploration and editing of OME-XML and 
    7 OME-TIFF metadata. Copyright (C) 2006-@year@ Christopher Peterson. 
     6OME Notes library for flexible organization and presentation of OME-XML 
     7metadata. Copyright (C) 2006-@year@ Melissa Linkert. 
    88 
    99This program is free software; you can redistribute it and/or modify 
     
    2222*/ 
    2323 
    24 package loci.ome.notebook; 
     24package loci.ome.notes; 
    2525 
    2626import java.io.*; 
     
    514514 
    515515      if (ca != null) { 
    516         Vector elements = DOMUtil.getChildElements("NotebookField", 
     516        Vector elements = DOMUtil.getChildElements("NotesField", 
    517517          ca.getDOMElement()); 
    518518        for (int i=0; i<elements.size(); i++) { 
     
    591591    if (map == null || map.length() == 0) { 
    592592      // this is a custom unmapped field, which gets stored in a 
    593       // NotebookField ST 
     593      // NotesField ST 
    594594 
    595595      CustomAttributesNode ca = root.getCustomAttributes(); 
    596       Element el = DOMUtil.createChild(ca.getDOMElement(), "NotebookField"); 
     596      Element el = DOMUtil.createChild(ca.getDOMElement(), "NotesField"); 
    597597      OMEXMLNode newNode = OMEXMLNode.createNode(el); 
    598598      newNode.setAttribute("name", t.getName()); 
  • trunk/loci/ome/notes/TemplateField.java

    r2725 r2764  
    44 
    55/* 
    6 OME Metadata Notebook application for exploration and editing of OME-XML and 
    7 OME-TIFF metadata. Copyright (C) 2006-@year@ Christopher Peterson. 
     6OME Notes library for flexible organization and presentation of OME-XML 
     7metadata. Copyright (C) 2006-@year@ Melissa Linkert. 
    88 
    99This program is free software; you can redistribute it and/or modify 
     
    2222*/ 
    2323 
    24 package loci.ome.notebook; 
     24package loci.ome.notes; 
    2525 
    2626import java.util.*; 
  • trunk/loci/ome/notes/TemplateGroup.java

    r2725 r2764  
    44 
    55/* 
    6 OME Metadata Notebook application for exploration and editing of OME-XML and 
    7 OME-TIFF metadata. Copyright (C) 2006-@year@ Christopher Peterson. 
     6OME Notes library for flexible organization and presentation of OME-XML 
     7metadata. Copyright (C) 2006-@year@ Melissa Linkert. 
    88 
    99This program is free software; you can redistribute it and/or modify 
     
    2222*/ 
    2323 
    24 package loci.ome.notebook; 
     24package loci.ome.notes; 
    2525 
    2626import java.awt.Point; 
  • trunk/loci/ome/notes/TemplateTab.java

    r2725 r2764  
    44 
    55/* 
    6 OME Metadata Notebook application for exploration and editing of OME-XML and 
    7 OME-TIFF metadata. Copyright (C) 2006-@year@ Christopher Peterson. 
     6OME Notes library for flexible organization and presentation of OME-XML 
     7metadata. Copyright (C) 2006-@year@ Melissa Linkert. 
    88 
    99This program is free software; you can redistribute it and/or modify 
     
    2222*/ 
    2323 
    24 package loci.ome.notebook; 
     24package loci.ome.notes; 
    2525 
    2626import java.util.Vector; 
  • trunk/loci/ome/notes/editor/TemplateEditor.java

    r2725 r2764  
    44 
    55/* 
    6 OME Metadata Notebook application for exploration and editing of OME-XML and 
    7 OME-TIFF metadata. Copyright (C) 2006-@year@ Christopher Peterson. 
     6OME Notes library for flexible organization and presentation of OME-XML 
     7metadata. Copyright (C) 2006-@year@ Melissa Linkert. 
    88 
    99This program is free software; you can redistribute it and/or modify 
     
    2222*/ 
    2323 
    24 package loci.ome.notebook.editor; 
     24package loci.ome.notes.editor; 
    2525 
    2626import com.jgoodies.forms.layout.*; 
     
    3131import javax.swing.*; 
    3232import javax.swing.filechooser.FileFilter; 
    33 import loci.ome.notebook.*; 
     33import loci.ome.notes.*; 
    3434import loci.ome.viewer.MetadataPane; 
    3535import org.openmicroscopy.xml.OMENode; 
    3636 
    37 /** Main class for notebook template editor. */ 
     37/** Main class for OME Notes template editor. */ 
    3838public class TemplateEditor extends JFrame 
    3939  implements ActionListener, MouseListener 
     
    9898  /** Constructs a new window with a blank template. */ 
    9999  public TemplateEditor() { 
    100     super("OME Notebook Template Editor"); 
     100    super("OME Notes Template Editor"); 
    101101 
    102102    tabs = new Vector(); 
     
    334334          return f.getAbsolutePath().endsWith(".template") || f.isDirectory(); 
    335335        } 
    336         public String getDescription() { return "OME Notebook templates"; } 
     336        public String getDescription() { return "OME Notes templates"; } 
    337337      }; 
    338338 
  • trunk/loci/ome/notes/package.html

    r1380 r2764  
    11<html><body> 
    2 OME Metadata Notebook application for exploration and editing of 
    3 OME-XML and OME-TIFF metadata. 
     2OME Notes library for flexible organization and 
     3presentation of OME-XML metadata. 
    44</body></html> 
  • trunk/loci/ome/notes/templates/editor.template

    r2685 r2764  
    1 # This is a sample template for the OME Notebook. 
     1# This is a sample template for OME Notes. 
    22 
    33# Define various general options 
Note: See TracChangeset for help on using the changeset viewer.