@@ -53,22 +53,22 @@ import ToggleBreakpoint from "./ToggleBreakpoint";
5353import Wrap from "./Wrap" ;
5454import WrapWithSnippet from "./WrapWithSnippet" ;
5555
56- class Actions implements ActionRecord {
56+ export class Actions implements ActionRecord {
5757 constructor ( private graph : Graph ) { }
5858
59- callAsFunction = new Call ( this . graph ) ;
60- clearAndSetSelection = new Clear ( this . graph ) ;
59+ callAsFunction = new Call ( this ) ;
60+ clearAndSetSelection = new Clear ( this ) ;
6161 copyToClipboard = new CopyToClipboard ( this . graph ) ;
62- cutToClipboard = new CutToClipboard ( this . graph ) ;
62+ cutToClipboard = new CutToClipboard ( this ) ;
6363 deselect = new Deselect ( this . graph ) ;
64- editNew = new EditNew ( this . graph ) ;
65- editNewLineAfter = new EditNewAfter ( this . graph ) ;
66- editNewLineBefore = new EditNewBefore ( this . graph ) ;
64+ editNew = new EditNew ( this . graph , this ) ;
65+ editNewLineAfter = new EditNewAfter ( this . graph , this ) ;
66+ editNewLineBefore = new EditNewBefore ( this . graph , this ) ;
6767 executeCommand = new ExecuteCommand ( this . graph ) ;
6868 extractVariable = new ExtractVariable ( this . graph ) ;
69- findInWorkspace = new FindInWorkspace ( this . graph ) ;
69+ findInWorkspace = new FindInWorkspace ( this ) ;
7070 foldRegion = new Fold ( this . graph ) ;
71- followLink = new FollowLink ( this . graph ) ;
71+ followLink = new FollowLink ( this ) ;
7272 generateSnippet = new GenerateSnippet ( this . graph ) ;
7373 getText = new GetText ( this . graph ) ;
7474 highlight = new Highlight ( this . graph ) ;
@@ -78,18 +78,18 @@ class Actions implements ActionRecord {
7878 insertEmptyLineAfter = new InsertEmptyLineAfter ( this . graph ) ;
7979 insertEmptyLineBefore = new InsertEmptyLineBefore ( this . graph ) ;
8080 insertEmptyLinesAround = new InsertEmptyLinesAround ( this . graph ) ;
81- insertSnippet = new InsertSnippet ( this . graph ) ;
81+ insertSnippet = new InsertSnippet ( this . graph , this ) ;
8282 moveToTarget = new Move ( this . graph ) ;
8383 outdentLine = new OutdentLine ( this . graph ) ;
84- pasteFromClipboard = new PasteFromClipboard ( this . graph ) ;
85- randomizeTargets = new Random ( this . graph ) ;
84+ pasteFromClipboard = new PasteFromClipboard ( this . graph , this ) ;
85+ randomizeTargets = new Random ( this ) ;
8686 remove = new Remove ( this . graph ) ;
8787 rename = new Rename ( this . graph ) ;
8888 replace = new Replace ( this . graph ) ;
8989 replaceWithTarget = new Bring ( this . graph ) ;
9090 revealDefinition = new RevealDefinition ( this . graph ) ;
9191 revealTypeDefinition = new RevealTypeDefinition ( this . graph ) ;
92- reverseTargets = new Reverse ( this . graph ) ;
92+ reverseTargets = new Reverse ( this ) ;
9393 rewrapWithPairedDelimiter = new Rewrap ( this . graph ) ;
9494 scrollToBottom = new ScrollToBottom ( this . graph ) ;
9595 scrollToCenter = new ScrollToCenter ( this . graph ) ;
@@ -101,13 +101,11 @@ class Actions implements ActionRecord {
101101 showHover = new ShowHover ( this . graph ) ;
102102 showQuickFix = new ShowQuickFix ( this . graph ) ;
103103 showReferences = new ShowReferences ( this . graph ) ;
104- sortTargets = new Sort ( this . graph ) ;
104+ sortTargets = new Sort ( this ) ;
105105 swapTargets = new Swap ( this . graph ) ;
106106 toggleLineBreakpoint = new ToggleBreakpoint ( this . graph ) ;
107107 toggleLineComment = new ToggleLineComment ( this . graph ) ;
108108 unfoldRegion = new Unfold ( this . graph ) ;
109109 wrapWithPairedDelimiter = new Wrap ( this . graph ) ;
110110 wrapWithSnippet = new WrapWithSnippet ( this . graph ) ;
111111}
112-
113- export default Actions ;
0 commit comments