home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / CommentPane$PreviewChoiceAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.3 KB  |  28 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.UI;
  4. import com.extensibility.rock.RAction;
  5. import com.extensibility.xml.SchemaUtilities;
  6. import java.awt.event.ActionEvent;
  7.  
  8. class CommentPane$PreviewChoiceAction extends RAction {
  9.    // $FF: synthetic field
  10.    final CommentPane this$0;
  11.    String flavor;
  12.  
  13.    CommentPane$PreviewChoiceAction(CommentPane var1, String var2) {
  14.       super(UI.getFileTypeName(var2));
  15.       this.this$0 = var1;
  16.       this.flavor = var2;
  17.    }
  18.  
  19.    public void actionOccurred(ActionEvent var1) {
  20.       if (this.flavor.equals("xml")) {
  21.          this.this$0.setPreviewer(this.flavor, this.this$0.getSchema().createExemplar());
  22.       } else {
  23.          this.this$0.setPreviewer(this.flavor, SchemaUtilities.getWriter(this.this$0.getSchema(), this.flavor));
  24.       }
  25.  
  26.    }
  27. }
  28.