2004-08-07 22:30:33 -04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE ACTIONS SYSTEM "actions.dtd">
|
|
|
|
|
|
|
|
|
|
<ACTIONS>
|
2004-11-13 18:24:46 -05:00
|
|
|
<ACTION NAME="factor-listener">
|
|
|
|
|
<CODE>
|
|
|
|
|
wm.addDockableWindow("console");
|
|
|
|
|
wm.getDockableWindow("console").setShell("Factor");
|
|
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2004-11-13 18:07:18 -05:00
|
|
|
<ACTION NAME="factor-restart">
|
|
|
|
|
<CODE>
|
2004-12-05 18:33:20 -05:00
|
|
|
FactorPlugin.restartExternalInstance();
|
2004-11-13 18:07:18 -05:00
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2004-08-07 22:30:33 -04:00
|
|
|
<ACTION NAME="factor-eval-selection">
|
|
|
|
|
<CODE>
|
|
|
|
|
sel = textArea.selectedText;
|
|
|
|
|
if(sel == null)
|
|
|
|
|
view.toolkit.beep();
|
|
|
|
|
else
|
2004-11-13 18:24:46 -05:00
|
|
|
FactorPlugin.evalInListener(view,sel);
|
2004-08-07 22:30:33 -04:00
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
|
|
|
|
<ACTION NAME="factor-run-file">
|
|
|
|
|
<CODE>
|
|
|
|
|
buffer.save(view,null);
|
2004-08-09 21:59:47 -04:00
|
|
|
VFSManager.waitForRequests();
|
2004-11-15 12:33:21 -05:00
|
|
|
FactorPlugin.evalInListener(view,
|
2004-08-07 22:30:33 -04:00
|
|
|
"\""
|
2004-09-02 16:40:34 -04:00
|
|
|
+ FactorReader.charsToEscapes(buffer.path)
|
2004-08-07 22:30:33 -04:00
|
|
|
+ "\" run-file");
|
|
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2004-08-08 02:32:56 -04:00
|
|
|
<ACTION NAME="factor-apropos">
|
|
|
|
|
<CODE>
|
2004-09-02 16:40:34 -04:00
|
|
|
word = FactorPlugin.getWordAtCaret(textArea);
|
|
|
|
|
if(word == null)
|
|
|
|
|
view.toolkit.beep();
|
|
|
|
|
else
|
|
|
|
|
{
|
2004-11-13 18:24:46 -05:00
|
|
|
FactorPlugin.evalInListener(view,
|
2004-09-02 16:40:34 -04:00
|
|
|
"\""
|
|
|
|
|
+ FactorReader.charsToEscapes(word)
|
|
|
|
|
+ "\" apropos.");
|
|
|
|
|
}
|
2004-08-08 02:32:56 -04:00
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2004-08-16 23:52:52 -04:00
|
|
|
<ACTION NAME="factor-see">
|
|
|
|
|
<CODE>
|
2005-01-08 00:33:03 -05:00
|
|
|
FactorPlugin.factorWordPopupOp(view,"see");
|
2004-08-17 20:44:57 -04:00
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
|
|
|
|
<ACTION NAME="factor-edit">
|
|
|
|
|
<CODE>
|
2004-11-13 18:24:46 -05:00
|
|
|
FactorPlugin.factorWordWireOp(view,"jedit");
|
2004-08-16 23:52:52 -04:00
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2004-08-31 22:22:47 -04:00
|
|
|
<ACTION NAME="factor-edit-dialog">
|
2004-08-16 23:52:52 -04:00
|
|
|
<CODE>
|
2004-09-04 01:05:50 -04:00
|
|
|
new EditWordDialog(view,FactorPlugin
|
|
|
|
|
.getSideKickParser());
|
2004-08-17 20:44:57 -04:00
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2004-08-31 22:22:47 -04:00
|
|
|
<ACTION NAME="factor-usages">
|
2004-08-17 20:44:57 -04:00
|
|
|
<CODE>
|
2004-11-13 18:24:46 -05:00
|
|
|
FactorPlugin.factorWordOutputOp(view,"usages.");
|
2004-08-16 23:52:52 -04:00
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2004-08-31 20:31:16 -04:00
|
|
|
<ACTION NAME="factor-insert-use">
|
|
|
|
|
<CODE>
|
2004-09-02 16:40:34 -04:00
|
|
|
word = FactorPlugin.getWordAtCaret(textArea);
|
|
|
|
|
if(word == null)
|
|
|
|
|
view.toolkit.beep();
|
|
|
|
|
else
|
|
|
|
|
FactorPlugin.insertUseDialog(view,word);
|
2004-08-31 20:31:16 -04:00
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2004-09-04 03:06:53 -04:00
|
|
|
<ACTION NAME="factor-extract-word">
|
|
|
|
|
<CODE>
|
|
|
|
|
FactorPlugin.extractWord(view);
|
|
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2005-01-08 00:33:03 -05:00
|
|
|
<ACTION NAME="factor-infer-effect">
|
|
|
|
|
<CODE>
|
|
|
|
|
FactorPlugin.factorWordPopupOp(view,"unit infer .");
|
|
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
|
|
|
|
<ACTION NAME="factor-compile">
|
|
|
|
|
<CODE>
|
|
|
|
|
FactorPlugin.factorWordOutputOp(view,"recompile");
|
|
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2005-01-07 23:54:23 -05:00
|
|
|
<ACTION NAME="factor-infer-effects">
|
|
|
|
|
<CODE>
|
|
|
|
|
InferBufferProcessor.createInferUnitTests(view,buffer,
|
|
|
|
|
FactorPlugin.getExternalInstance());
|
|
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2005-01-20 23:10:37 -05:00
|
|
|
<ACTION NAME="factor-compile-all">
|
|
|
|
|
<CODE>
|
|
|
|
|
wm.showDockableWindow("console");
|
|
|
|
|
CompileBufferProcessor.compileWordsInBuffer(view,buffer,
|
|
|
|
|
FactorPlugin.getExternalInstance(),
|
|
|
|
|
wm.getDockableWindow("console"));
|
|
|
|
|
</CODE>
|
|
|
|
|
</ACTION>
|
2004-08-07 22:30:33 -04:00
|
|
|
</ACTIONS>
|