X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjavax%2Fswing%2Fundo%2FAbstractUndoableEdit.js;fp=site%2Fj2s%2Fjavax%2Fswing%2Fundo%2FAbstractUndoableEdit.js;h=adc153e4e860a7894995828e01acd9157fa09f4c;hp=edf8647201fc66f4201cc6eac0682c35706c0e2a;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/javax/swing/undo/AbstractUndoableEdit.js b/site/j2s/javax/swing/undo/AbstractUndoableEdit.js index edf8647..adc153e 100644 --- a/site/j2s/javax/swing/undo/AbstractUndoableEdit.js +++ b/site/j2s/javax/swing/undo/AbstractUndoableEdit.js @@ -1,78 +1,78 @@ -Clazz.declarePackage ("javax.swing.undo"); -Clazz.load (["javax.swing.undo.UndoableEdit"], "javax.swing.undo.AbstractUndoableEdit", ["javax.swing.UIManager", "javax.swing.undo.CannotRedoException", "$.CannotUndoException"], function () { -c$ = Clazz.decorateAsClass (function () { -this.hasBeenDone = false; -this.alive = false; -Clazz.instantialize (this, arguments); -}, javax.swing.undo, "AbstractUndoableEdit", null, javax.swing.undo.UndoableEdit); -Clazz.makeConstructor (c$, -function () { -this.hasBeenDone = true; -this.alive = true; -}); -Clazz.overrideMethod (c$, "die", -function () { -this.alive = false; -}); -Clazz.overrideMethod (c$, "undo", -function () { -if (!this.canUndo ()) { -throw new javax.swing.undo.CannotUndoException (); -}this.hasBeenDone = false; -}); -Clazz.overrideMethod (c$, "canUndo", -function () { -return this.alive && this.hasBeenDone; -}); -Clazz.overrideMethod (c$, "redo", -function () { -if (!this.canRedo ()) { -throw new javax.swing.undo.CannotRedoException (); -}this.hasBeenDone = true; -}); -Clazz.overrideMethod (c$, "canRedo", -function () { -return this.alive && !this.hasBeenDone; -}); -Clazz.overrideMethod (c$, "addEdit", -function (anEdit) { -return false; -}, "javax.swing.undo.UndoableEdit"); -Clazz.overrideMethod (c$, "replaceEdit", -function (anEdit) { -return false; -}, "javax.swing.undo.UndoableEdit"); -Clazz.overrideMethod (c$, "isSignificant", -function () { -return true; -}); -Clazz.overrideMethod (c$, "getPresentationName", -function () { -return ""; -}); -Clazz.overrideMethod (c$, "getUndoPresentationName", -function () { -var name = this.getPresentationName (); -if (!"".equals (name)) { -name = javax.swing.UIManager.getString ("AbstractUndoableEdit.undoText") + " " + name; -} else { -name = javax.swing.UIManager.getString ("AbstractUndoableEdit.undoText"); -}return name; -}); -Clazz.overrideMethod (c$, "getRedoPresentationName", -function () { -var name = this.getPresentationName (); -if (!"".equals (name)) { -name = javax.swing.UIManager.getString ("AbstractUndoableEdit.redoText") + " " + name; -} else { -name = javax.swing.UIManager.getString ("AbstractUndoableEdit.redoText"); -}return name; -}); -Clazz.defineMethod (c$, "toString", -function () { -return Clazz.superCall (this, javax.swing.undo.AbstractUndoableEdit, "toString", []) + " hasBeenDone: " + this.hasBeenDone + " alive: " + this.alive; -}); -Clazz.defineStatics (c$, -"UndoName", "Undo", -"RedoName", "Redo"); -}); +Clazz.declarePackage ("javax.swing.undo"); +Clazz.load (["javax.swing.undo.UndoableEdit"], "javax.swing.undo.AbstractUndoableEdit", ["javax.swing.UIManager", "javax.swing.undo.CannotRedoException", "$.CannotUndoException"], function () { +c$ = Clazz.decorateAsClass (function () { +this.hasBeenDone = false; +this.alive = false; +Clazz.instantialize (this, arguments); +}, javax.swing.undo, "AbstractUndoableEdit", null, javax.swing.undo.UndoableEdit); +Clazz.makeConstructor (c$, +function () { +this.hasBeenDone = true; +this.alive = true; +}); +Clazz.overrideMethod (c$, "die", +function () { +this.alive = false; +}); +Clazz.overrideMethod (c$, "undo", +function () { +if (!this.canUndo ()) { +throw new javax.swing.undo.CannotUndoException (); +}this.hasBeenDone = false; +}); +Clazz.overrideMethod (c$, "canUndo", +function () { +return this.alive && this.hasBeenDone; +}); +Clazz.overrideMethod (c$, "redo", +function () { +if (!this.canRedo ()) { +throw new javax.swing.undo.CannotRedoException (); +}this.hasBeenDone = true; +}); +Clazz.overrideMethod (c$, "canRedo", +function () { +return this.alive && !this.hasBeenDone; +}); +Clazz.overrideMethod (c$, "addEdit", +function (anEdit) { +return false; +}, "javax.swing.undo.UndoableEdit"); +Clazz.overrideMethod (c$, "replaceEdit", +function (anEdit) { +return false; +}, "javax.swing.undo.UndoableEdit"); +Clazz.overrideMethod (c$, "isSignificant", +function () { +return true; +}); +Clazz.overrideMethod (c$, "getPresentationName", +function () { +return ""; +}); +Clazz.overrideMethod (c$, "getUndoPresentationName", +function () { +var name = this.getPresentationName (); +if (!"".equals (name)) { +name = javax.swing.UIManager.getString ("AbstractUndoableEdit.undoText") + " " + name; +} else { +name = javax.swing.UIManager.getString ("AbstractUndoableEdit.undoText"); +}return name; +}); +Clazz.overrideMethod (c$, "getRedoPresentationName", +function () { +var name = this.getPresentationName (); +if (!"".equals (name)) { +name = javax.swing.UIManager.getString ("AbstractUndoableEdit.redoText") + " " + name; +} else { +name = javax.swing.UIManager.getString ("AbstractUndoableEdit.redoText"); +}return name; +}); +Clazz.defineMethod (c$, "toString", +function () { +return Clazz.superCall (this, javax.swing.undo.AbstractUndoableEdit, "toString", []) + " hasBeenDone: " + this.hasBeenDone + " alive: " + this.alive; +}); +Clazz.defineStatics (c$, +"UndoName", "Undo", +"RedoName", "Redo"); +});