X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjalview%2Fcommands%2FOrderCommand.js;h=893965379936564d1a6216bf6741fe7e6cb706e3;hp=c85c70b21d963fdca94d95ec70907d4dfe4e2175;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/jalview/commands/OrderCommand.js b/site/j2s/jalview/commands/OrderCommand.js index c85c70b..8939653 100644 --- a/site/j2s/jalview/commands/OrderCommand.js +++ b/site/j2s/jalview/commands/OrderCommand.js @@ -1,38 +1,38 @@ -Clazz.declarePackage ("jalview.commands"); -Clazz.load (["jalview.commands.CommandI"], "jalview.commands.OrderCommand", ["jalview.analysis.AlignmentSorter"], function () { -c$ = Clazz.decorateAsClass (function () { -this.description = null; -this.seqs = null; -this.seqs2 = null; -this.al = null; -Clazz.instantialize (this, arguments); -}, jalview.commands, "OrderCommand", null, jalview.commands.CommandI); -Clazz.makeConstructor (c$, -function (description, seqs, al) { -this.description = description; -this.seqs = seqs; -this.seqs2 = al.getSequencesArray (); -this.al = al; -this.doCommand (null); -}, "~S,~A,jalview.datamodel.AlignmentI"); -Clazz.overrideMethod (c$, "getDescription", -function () { -return this.description; -}); -Clazz.overrideMethod (c$, "getSize", -function () { -return 1; -}); -Clazz.overrideMethod (c$, "doCommand", -function (views) { -jalview.analysis.AlignmentSorter.setOrder (this.al, this.seqs2); -}, "~A"); -Clazz.overrideMethod (c$, "undoCommand", -function (views) { -jalview.analysis.AlignmentSorter.setOrder (this.al, this.seqs); -}, "~A"); -Clazz.defineMethod (c$, "getSequenceOrder", -function (undo) { -return undo ? this.seqs : this.seqs2; -}, "~B"); -}); +Clazz.declarePackage ("jalview.commands"); +Clazz.load (["jalview.commands.CommandI"], "jalview.commands.OrderCommand", ["jalview.analysis.AlignmentSorter"], function () { +c$ = Clazz.decorateAsClass (function () { +this.description = null; +this.seqs = null; +this.seqs2 = null; +this.al = null; +Clazz.instantialize (this, arguments); +}, jalview.commands, "OrderCommand", null, jalview.commands.CommandI); +Clazz.makeConstructor (c$, +function (description, seqs, al) { +this.description = description; +this.seqs = seqs; +this.seqs2 = al.getSequencesArray (); +this.al = al; +this.doCommand (null); +}, "~S,~A,jalview.datamodel.AlignmentI"); +Clazz.overrideMethod (c$, "getDescription", +function () { +return this.description; +}); +Clazz.overrideMethod (c$, "getSize", +function () { +return 1; +}); +Clazz.overrideMethod (c$, "doCommand", +function (views) { +jalview.analysis.AlignmentSorter.setOrder (this.al, this.seqs2); +}, "~A"); +Clazz.overrideMethod (c$, "undoCommand", +function (views) { +jalview.analysis.AlignmentSorter.setOrder (this.al, this.seqs); +}, "~A"); +Clazz.defineMethod (c$, "getSequenceOrder", +function (undo) { +return undo ? this.seqs : this.seqs2; +}, "~B"); +});