Changeset 346 for trunk/loci/visbio/view


Ignore:
Timestamp:
04/22/05 13:21:57 (15 years ago)
Author:
curtis
Message:

Comment out references to old loci.ome.xml package.

Location:
trunk/loci/visbio/view
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/view/DisplayManager.java

    r299 r346  
    2525 
    2626import java.awt.Component; 
    27 import java.util.Vector; 
     27//import java.util.Vector; 
    2828import javax.swing.JOptionPane; 
    29 import loci.ome.xml.CAElement; 
    30 import loci.ome.xml.OMEElement; 
     29//import loci.ome.xml.CAElement; 
     30//import loci.ome.xml.OMEElement; 
    3131import loci.visbio.*; 
    3232import loci.visbio.help.HelpManager; 
     
    143143 
    144144  /** Writes the current state to the given XML object. */ 
    145   public void saveState(OMEElement ome) throws SaveException { 
     145  /*public void saveState(OMEElement ome) throws SaveException { 
    146146    DisplayWindow[] windows = getDisplays(); 
    147147 
     
    153153    // save all displays 
    154154    for (int i=0; i<windows.length; i++) windows[i].saveState(ome, i); 
    155   } 
     155  }*/ 
    156156 
    157157  /** Restores the current state from the given XML object. */ 
    158   public void restoreState(OMEElement ome) throws SaveException { 
     158  /*public void restoreState(OMEElement ome) throws SaveException { 
    159159    CAElement custom = ome.getCustomAttr(); 
    160160 
     
    200200      if (!vn.contains(display)) removeDisplay(display); 
    201201    } 
    202   } 
     202  }*/ 
    203203 
    204204 
  • trunk/loci/visbio/view/DisplayWindow.java

    r198 r346  
    2828import javax.swing.JFrame; 
    2929import javax.swing.JPanel; 
    30 import loci.ome.xml.CAElement; 
    31 import loci.ome.xml.OMEElement; 
     30//import loci.ome.xml.CAElement; 
     31//import loci.ome.xml.OMEElement; 
    3232import loci.visbio.VisBioFrame; 
    3333import loci.visbio.WindowManager; 
     
    203203  protected static final String DISPLAY_DIALOG = "VisBio_DisplayWindow"; 
    204204 
    205   protected CAElement custom; 
     205  //protected CAElement custom; 
    206206  protected int index; 
    207207 
    208208  /** Writes the current state to the given XML object. */ 
    209   public void saveState(OMEElement ome, int id) { 
     209  /*public void saveState(OMEElement ome, int id) { 
    210210    custom = ome.getCustomAttr(); 
    211211    custom.createElement(DISPLAY_DIALOG); 
     
    216216    captureHandler.saveState(); 
    217217    transformHandler.saveState(); 
    218   } 
     218  }*/ 
    219219 
    220220  /** Restores the current state from the given XML object. */ 
    221   public void restoreState(OMEElement ome, int id) { 
     221  /*public void restoreState(OMEElement ome, int id) { 
    222222    custom = ome.getCustomAttr(); 
    223223    String[] idList = custom.getAttributes(DISPLAY_DIALOG, "id"); 
     
    247247    captureHandler.restoreState(); 
    248248    transformHandler.restoreState(); 
    249   } 
     249  }*/ 
    250250 
    251251  /** Sets value for the given attribute. */ 
    252252  protected void setAttr(String attr, String value) { 
    253     custom.setAttribute(attr, value); 
     253    /*custom.setAttribute(attr, value);*/ 
    254254  } 
    255255 
    256256  /** Gets value for the given attribute. */ 
    257257  protected String getAttr(String attr) { 
    258     return custom.getAttributes(DISPLAY_DIALOG, attr)[index]; 
     258    return null;/*custom.getAttributes(DISPLAY_DIALOG, attr)[index];*/ 
    259259  } 
    260260 
Note: See TracChangeset for help on using the changeset viewer.