Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / javax / swing / undo / AbstractUndoableEdit.js
index edf8647..adc153e 100644 (file)
@@ -1,78 +1,78 @@
-Clazz.declarePackage ("javax.swing.undo");\r
-Clazz.load (["javax.swing.undo.UndoableEdit"], "javax.swing.undo.AbstractUndoableEdit", ["javax.swing.UIManager", "javax.swing.undo.CannotRedoException", "$.CannotUndoException"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.hasBeenDone = false;\r
-this.alive = false;\r
-Clazz.instantialize (this, arguments);\r
-}, javax.swing.undo, "AbstractUndoableEdit", null, javax.swing.undo.UndoableEdit);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.hasBeenDone = true;\r
-this.alive = true;\r
-});\r
-Clazz.overrideMethod (c$, "die", \r
-function () {\r
-this.alive = false;\r
-});\r
-Clazz.overrideMethod (c$, "undo", \r
-function () {\r
-if (!this.canUndo ()) {\r
-throw  new javax.swing.undo.CannotUndoException ();\r
-}this.hasBeenDone = false;\r
-});\r
-Clazz.overrideMethod (c$, "canUndo", \r
-function () {\r
-return this.alive && this.hasBeenDone;\r
-});\r
-Clazz.overrideMethod (c$, "redo", \r
-function () {\r
-if (!this.canRedo ()) {\r
-throw  new javax.swing.undo.CannotRedoException ();\r
-}this.hasBeenDone = true;\r
-});\r
-Clazz.overrideMethod (c$, "canRedo", \r
-function () {\r
-return this.alive && !this.hasBeenDone;\r
-});\r
-Clazz.overrideMethod (c$, "addEdit", \r
-function (anEdit) {\r
-return false;\r
-}, "javax.swing.undo.UndoableEdit");\r
-Clazz.overrideMethod (c$, "replaceEdit", \r
-function (anEdit) {\r
-return false;\r
-}, "javax.swing.undo.UndoableEdit");\r
-Clazz.overrideMethod (c$, "isSignificant", \r
-function () {\r
-return true;\r
-});\r
-Clazz.overrideMethod (c$, "getPresentationName", \r
-function () {\r
-return "";\r
-});\r
-Clazz.overrideMethod (c$, "getUndoPresentationName", \r
-function () {\r
-var name = this.getPresentationName ();\r
-if (!"".equals (name)) {\r
-name = javax.swing.UIManager.getString ("AbstractUndoableEdit.undoText") + " " + name;\r
-} else {\r
-name = javax.swing.UIManager.getString ("AbstractUndoableEdit.undoText");\r
-}return name;\r
-});\r
-Clazz.overrideMethod (c$, "getRedoPresentationName", \r
-function () {\r
-var name = this.getPresentationName ();\r
-if (!"".equals (name)) {\r
-name = javax.swing.UIManager.getString ("AbstractUndoableEdit.redoText") + " " + name;\r
-} else {\r
-name = javax.swing.UIManager.getString ("AbstractUndoableEdit.redoText");\r
-}return name;\r
-});\r
-Clazz.defineMethod (c$, "toString", \r
-function () {\r
-return Clazz.superCall (this, javax.swing.undo.AbstractUndoableEdit, "toString", []) + " hasBeenDone: " + this.hasBeenDone + " alive: " + this.alive;\r
-});\r
-Clazz.defineStatics (c$,\r
-"UndoName", "Undo",\r
-"RedoName", "Redo");\r
-});\r
+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");
+});