このトピックでは事前定義済のコード・テンプレートを示し、それぞれについてショートカットおよびテンプレートで導入されるコードを示します。
ai
for (int $i$ = 0; $i$ < $array$.length; $i$++)
{
$type$ $var$ = $array$[$i$];
$end$
}
daev
public void on$end$(DataActionContext ctx)
{
// Code before executing the default action
if (ctx.getEventActionBinding() != null) ctx.getEventActionBinding().doIt();
// Code after executing the default action
}
for
for ($end$ ; ; )
{
}
tag
<$tag$>
$end$
</$tag$>
if
if ($end$)
{
}
ife
if ($end$)
{
} else
{
}
fori
for (int $i$ = 0; $i$ < $lim$; $i$++)
{
$end$
}
forn
int $n$ = $lim$;
for (int $i$ = 0; $i$ < $n$; $i$++)
{
$end$
}
iofc
if ($var$ instanceof $type$)
{
$type$ $casted$ = ($type$) $var$;
$end$
}
bc4jclient
String amDef = "test.TestModule";
String config = "TestModuleLocal";
ApplicationModule am =
Configuration.createRootApplicationModule(amDef,config);
ViewObject vo = am.findViewObject("TestView");
$end$// Work with your appmodule and view object here
Configuration.releaseRootApplicationModule(am,true);
itar
for (int $i$ = 0; $i$ < $array$.length; $i$++)
{
$type$ $var$ = $array$[$i$];
$end$
}
itco
for(Iterator $iter$ = $col$.iterator();$iter$.hasNext();)
{
$type$ $var$ = ($type$) $iter$.next();
$end$
}
itli
for (int $i$ = 0; $i$ < $list$.size(); $i$++)
{
$type$ $var$ = ($type$) $list$.get($i$);
$end$
}
itmk
Iterator $iter$ = $map$.keySet().iterator();
while ($iter$.hasNext())
{
$type$ $var$ = ($type$) $iter$.next();
$end$
}
itmv
Iterator $iter$ = $map$.values().iterator();
while ($iter$.hasNext())
{
$type$ $var$ = ($type$) $iter$.next();
$end$
}
conn
public static Connection getConnection() throws SQLException
{
String username = "$end$scott";
String password = "tiger";
String thinConn = "jdbc:oracle:thin:@localhost:1521:ORCL";
Driver d = new OracleDriver();
Connection conn = DriverManager.getConnection(thinConn,username,password);
conn.setAutoCommit(false);
return conn;
}
itoar
$type$ $var$ = new $typeelem$[$list$.size()];
$var$ = ($type$) $list$.toArray($var$);
$end$
main
public static void main(String[] args)
{
$end$
}
outp
out.println($end$);
pral
private ArrayList _$end$ = new ArrayList();
prb
private boolean _$end$;
prhm
private HashMap _$end$ = new HashMap();
pri
private int _$end$;
prs
private String _$end$;
pusf
public static final $end$;
pusfb
public static final boolean $end$;
pusfi
public static final int $end$;
pusfs
public static final String $end$;
ritar
for (int $i$ = $array$.length; --$i$ >= 0 ;)
{
$type$ $var$ = $array$[$i$];
$end$
}
ritli
for (int $i$ = $list$.size(); --$i$ >= 0 ; )
{
$type$ $var$ = ($type$) $list$.get($i$);
$end$
}
SEP
System.err.println($end$);
sop
System.out.println($end$);
sw
switch ($end$)
{
case XXX:
{
}
break;
default:
{
}
break;
}
try
try
{
$end$
} catch (Exception ex)
{
ex.printStackTrace();
} finally
{
}
wh
while ($end$)
{
}
Copyright © 1997, 2006, Oracle. All rights reserved.