Changeset 2516


Ignore:
Timestamp:
03/26/07 12:35:31 (13 years ago)
Author:
melissa
Message:

Added option to open the OME Notebook with metadata for the current file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/ImageViewer.java

    r2430 r2516  
    3434import javax.swing.event.ChangeEvent; 
    3535import javax.swing.event.ChangeListener; 
     36import loci.ome.notebook.Notebook; 
    3637 
    3738/** 
     
    160161    fileSave.addActionListener(this); 
    161162    file.add(fileSave); 
     163    JMenuItem view = new JMenuItem("View..."); 
     164    view.setEnabled(true); 
     165    view.setActionCommand("view"); 
     166    view.addActionListener(this); 
     167    file.add(view); 
    162168    JMenuItem fileExit = new JMenuItem("Exit"); 
    163169    fileExit.setActionCommand("exit"); 
     
    344350      } 
    345351    } 
     352    else if ("view".equals(cmd)) { 
     353      Notebook n =  
     354        new Notebook(null, filename); 
     355    } 
    346356    else if ("exit".equals(cmd)) dispose(); 
    347357    else if ("about".equals(cmd)) { 
Note: See TracChangeset for help on using the changeset viewer.