PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/bundles/plugins-trunk/Console/console/commands/execute.xml

#
XML | 31 lines | 23 code | 8 blank | 0 comment | 0 complexity | 353cefdb52d948ad79737a79808bbecf MD5 | raw file
 1<?xml version="1.0" ?>
 2
 3<!DOCTYPE COMMANDO SYSTEM "commando.dtd">
 4
 5<COMMANDO>
 6	<UI>
 7		<CAPTION LABEL="Execute">
 8
 9		<FILE_ENTRY LABEL="Executable" VARNAME="source"
10			EVAL="n=buffer.getName();mode=buffer.getMode().getName();if ((mode.equals(&quot;c++&quot;) || mode.equals(&quot;c&quot;)) &amp;&amp; n.lastIndexOf('.') != -1) { n=n.substring(0, n.lastIndexOf('.')); };buffer.getDirectory()+n" />
11		<ENTRY LABEL="Parameters" VARNAME="params" />
12
13		</CAPTION>
14
15	</UI>
16
17	<COMMANDS>
18		<COMMAND SHELL="System" CONFIRM="FALSE">
19			buf = new StringBuffer();
20			buf.append("\""+source+"\"");
21			
22			if (params.length() > 0)
23			{
24				buf.append(" "+params);
25			}
26
27			// return value
28			buf.toString();
29		</COMMAND>
30	</COMMANDS>
31</COMMANDO>