コード例 #1
0
ファイル: DapCtx.java プロジェクト: eclipse/vjet.all
 /** Gets a context associated with current thread */
 public static DapCtx ctx() {
   DapCtx context = CtxAssociator.getCtx();
   if (context == null) {
     context = create();
     setCtx(context);
   }
   return context;
 }
コード例 #2
0
ファイル: TraceCtx.java プロジェクト: eclipse/vjet.all
 /** Gets a context assocaited with current thread */
 public static TraceCtx ctx() {
   TraceCtx context = CtxAssociator.getCtx();
   if (context == null) {
     context = new TraceCtx();
     setCtx(context);
   }
   return context;
 }
コード例 #3
0
ファイル: TraceCtx.java プロジェクト: eclipse/vjet.all
 /** Sets the context to be associated with this thread. The context can be null. */
 public static void setCtx(final TraceCtx context) {
   CtxAssociator.setCtx(context);
 }
コード例 #4
0
ファイル: DapCtx.java プロジェクト: eclipse/vjet.all
 /** Sets the context to be associated with this thread. The context can be null. */
 public static void setCtx(final DapCtx context) {
   if (context != null) {
     context.setUpScriptEngineCtx();
   }
   CtxAssociator.setCtx(context);
 }