home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xa;
-
- import com.extensibility.app.UI;
- import com.extensibility.rock.RAction;
- import com.extensibility.xml.SchemaUtilities;
- import java.awt.event.ActionEvent;
-
- class CommentPane$PreviewChoiceAction extends RAction {
- // $FF: synthetic field
- final CommentPane this$0;
- String flavor;
-
- CommentPane$PreviewChoiceAction(CommentPane var1, String var2) {
- super(UI.getFileTypeName(var2));
- this.this$0 = var1;
- this.flavor = var2;
- }
-
- public void actionOccurred(ActionEvent var1) {
- if (this.flavor.equals("xml")) {
- this.this$0.setPreviewer(this.flavor, this.this$0.getSchema().createExemplar());
- } else {
- this.this$0.setPreviewer(this.flavor, SchemaUtilities.getWriter(this.this$0.getSchema(), this.flavor));
- }
-
- }
- }
-