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 / OverviewPane$AddNamespaceUndoable.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.6 KB  |  45 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.BaseUndoable;
  4. import com.extensibility.app.BaseWindow;
  5. import com.extensibility.app.UI;
  6. import com.extensibility.xml.DTDUtilities;
  7. import com.extensibility.xml.NamespaceDeclaration;
  8. import com.extensibility.xml.URI;
  9.  
  10. public class OverviewPane$AddNamespaceUndoable extends BaseUndoable {
  11.    // $FF: synthetic field
  12.    final OverviewPane this$0;
  13.    URI uri;
  14.    URI intoURI;
  15.    // $FF: renamed from: ns com.extensibility.xml.NamespaceDeclaration
  16.    NamespaceDeclaration field_0;
  17.  
  18.    public OverviewPane$AddNamespaceUndoable(OverviewPane var1, BaseWindow var2, URI var3, URI var4) {
  19.       super(var2);
  20.       this.this$0 = var1;
  21.       this.uri = var3;
  22.       this.intoURI = var4;
  23.    }
  24.  
  25.    public String getPresentationName() {
  26.       return UI.getString("undo.overview.include");
  27.    }
  28.  
  29.    public void undo() {
  30.       super.undo();
  31.       this.this$0.doRemoveNamespace(this.field_0);
  32.       this.field_0 = null;
  33.    }
  34.  
  35.    public void doCommand() {
  36.       String var1 = DTDUtilities.makeValidName(this.uri.getShortName());
  37.       this.field_0 = this.this$0.doAddNamespace(var1, this.uri, this.intoURI);
  38.    }
  39.  
  40.    public void redo() {
  41.       super.redo();
  42.       this.doCommand();
  43.    }
  44. }
  45.