bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
public void addNote(Event e) { NoteTreeNode parentTreeNode = dd.getTree().getSelectedNode(); Note parentNote = parentTreeNode.getDisplayedNote().getNote(); Note newNote = new Note("new", parentNote, ""); parentTreeNode.addChild(newNote); }
|
public void addNote(Event e) { NoteTreeNode parentTreeNode = dd.getTree().getSelectedNode(); Note parentNote = parentTreeNode.getDisplayedNote().getNote(); Note newNote = new Note("new", parentNote, ""); parentTreeNode.addChild(newNote); }
| 3,236,596
|
public void removeNotes(Event e) { for (NoteTreeNode node : dd.getTree().getSelectedNodes()) { node.dispose(); } }
|
public void removeNotes(Event e) { for (NoteTreeNode node : dd.getTree().getSelectedNodes()) { node.dispose(); } }
| 3,236,597
|
public List childNodes() { return Collections.EMPTY_LIST; }
|
public List childNodes() { return EMPTY_LIST; }
| 3,236,600
|
public RubyArray(Ruby ruby) { this(ruby, new ArrayList()); }
|
public RubyArray(Ruby ruby) { this(ruby, new ArrayList()); }
| 3,236,601
|
public static RubyArray create(Ruby ruby, RubyObject recv, RubyObject[] args) { RubyArray array = newArray(ruby, Arrays.asList(args)); array.setRubyClass((RubyClass) recv); return array; }
|
public static RubyArray create(Ruby ruby, RubyObject recv, RubyObject[] args) { RubyArray array = newArray(ruby, Arrays.asList(args)); array.setRubyClass((RubyClass) recv); return array; }
| 3,236,602
|
public static RubyArray newArray(Ruby ruby, long len) { return new RubyArray(ruby, new ArrayList((int) len)); }
|
public static RubyArray newArray(Ruby ruby, long len) { return new RubyArray(ruby, new ArrayList((int) len)); }
| 3,236,603
|
public static RubyArray nilArray(Ruby ruby) { return new RubyArray(ruby) { public boolean isNil() { return true; } }; }
|
public static RubyArray nilArray(Ruby ruby) { return new RubyArray(ruby) { public boolean isNil() { return true; } }; }
| 3,236,604
|
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); } RubyArray ary2 = newArray(getRuby(), list.subList((int) beg, (int) (len + beg))); return ary2; }
|
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); } RubyArray ary2 = newArray(getRuby(), list.subList((int) beg, (int) (len + beg))); return ary2; }
| 3,236,605
|
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); } RubyArray ary2 = newArray(getRuby(), list.subList((int) beg, (int) (len + beg))); return ary2; }
|
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); } RubyArray ary2 = newArray(getRuby(), list.subList((int) beg, (int) (len + beg))); return ary2; }
| 3,236,606
|
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); } RubyArray ary2 = newArray(getRuby(), list.subList((int) beg, (int) (len + beg))); return ary2; }
|
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); } RubyArray ary2 = newArray(getRuby(), list.subList((int) beg, (int) (len + beg))); return ary2; }
| 3,236,607
|
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); } RubyArray ary2 = newArray(getRuby(), list.subList((int) beg, (int) (len + beg))); return ary2; }
|
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); } RubyArray ary2 = newArray(getRuby(), list.subList((int) beg, (int) (len + beg))); return ary2; }
| 3,236,608
|
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); } catch (RaiseException rExcptn) { runtime.printError(rExcptn.getException()); status = 1; } catch (ThrowJump throwJump) { runtime.printError(throwJump.getNameError()); status = 1; } runtime.tearDown(); return status; }
|
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); } catch (RaiseException rExcptn) { runtime.printError(rExcptn.getException()); status = 1; } catch (ThrowJump throwJump) { runtime.printError(throwJump.getNameError()); status = 1; } runtime.tearDown(); return status; }
| 3,236,610
|
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); } catch (RaiseException rExcptn) { runtime.printError(rExcptn.getException()); status = 1; } catch (ThrowJump throwJump) { runtime.printError(throwJump.getNameError()); status = 1; } runtime.tearDown(); return status; }
|
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); } catch (RaiseException rExcptn) { runtime.printError(rExcptn.getException()); status = 1; } catch (ThrowJump throwJump) { runtime.printError(throwJump.getNameError()); status = 1; } runtime.tearDown(); return status; }
| 3,236,611
|
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); } catch (RaiseException rExcptn) { runtime.printError(rExcptn.getException()); status = 1; } catch (ThrowJump throwJump) { runtime.printError(throwJump.getNameError()); status = 1; } runtime.tearDown(); return status; }
|
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); } catch (RaiseException rExcptn) { runtime.printError(rExcptn.getException()); return 1; } catch (ThrowJump throwJump) { runtime.printError(throwJump.getNameError()); return 1; } runtime.tearDown(); return status; }
| 3,236,612
|
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); } catch (RaiseException rExcptn) { runtime.printError(rExcptn.getException()); status = 1; } catch (ThrowJump throwJump) { runtime.printError(throwJump.getNameError()); status = 1; } runtime.tearDown(); return status; }
|
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); } catch (RaiseException rExcptn) { runtime.printError(rExcptn.getException()); return 1; } catch (ThrowJump throwJump) { runtime.printError(throwJump.getNameError()); return 1; } runtime.tearDown(); return status; }
| 3,236,613
|
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); } catch (RaiseException rExcptn) { runtime.printError(rExcptn.getException()); status = 1; } catch (ThrowJump throwJump) { runtime.printError(throwJump.getNameError()); status = 1; } runtime.tearDown(); return status; }
|
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); } catch (RaiseException rExcptn) { runtime.printError(rExcptn.getException()); status = 1; } catch (ThrowJump throwJump) { runtime.printError(throwJump.getNameError()); status = 1; } runtime.tearDown(); return status; }
| 3,236,614
|
public static RubyClass createDirClass(Ruby ruby) { RubyClass dirClass = ruby.defineClass("Dir", ruby.getClasses().getObjectClass()); dirClass.includeModule(ruby.getRubyModule("Enumerable")); dirClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyDir.class, "newInstance")); dirClass.defineSingletonMethod("glob", CallbackFactory.getSingletonMethod(RubyDir.class, "glob", RubyString.class)); dirClass.defineSingletonMethod("[]", CallbackFactory.getSingletonMethod(RubyDir.class, "glob", RubyString.class)); // dirClass.defineAlias("[]", "glob"); dirClass.defineSingletonMethod("chdir", CallbackFactory.getSingletonMethod(RubyDir.class, "chdir", RubyString.class)); dirClass.defineSingletonMethod("chroot", CallbackFactory.getSingletonMethod(RubyDir.class, "chroot", RubyString.class)); dirClass.defineSingletonMethod("delete", CallbackFactory.getSingletonMethod(RubyDir.class, "delete", RubyString.class)); dirClass.defineSingletonMethod("foreach", CallbackFactory.getSingletonMethod(RubyDir.class, "foreach", RubyString.class)); dirClass.defineSingletonMethod("getwd", CallbackFactory.getSingletonMethod(RubyDir.class, "getwd")); dirClass.defineSingletonMethod("pwd", CallbackFactory.getSingletonMethod(RubyDir.class, "getwd")); // dirClass.defineAlias("pwd", "getwd"); dirClass.defineSingletonMethod("mkdir", CallbackFactory.getOptSingletonMethod(RubyDir.class, "mkdir")); dirClass.defineSingletonMethod("open", CallbackFactory.getOptSingletonMethod(RubyDir.class, "open", RubyString.class)); dirClass.defineSingletonMethod("rmdir", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); dirClass.defineSingletonMethod("unlink", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); dirClass.defineSingletonMethod("delete", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); // dirClass.defineAlias("unlink", "rmdir"); // dirClass.defineAlias("delete", "rmdir"); dirClass.defineMethod("close", CallbackFactory.getMethod(RubyDir.class, "close")); dirClass.defineMethod("each", CallbackFactory.getMethod(RubyDir.class, "each")); dirClass.defineMethod("tell", CallbackFactory.getMethod(RubyDir.class, "tell")); dirClass.defineAlias("pos", "tell"); dirClass.defineMethod("seek", CallbackFactory.getMethod(RubyDir.class, "seek", RubyInteger.class)); dirClass.defineAlias("pos=", "seek"); dirClass.defineMethod("read", CallbackFactory.getMethod(RubyDir.class, "read")); dirClass.defineMethod("rewind", CallbackFactory.getMethod(RubyDir.class, "rewind")); dirClass.defineMethod("initialize", CallbackFactory.getMethod(RubyDir.class, "initialize", RubyString.class)); return dirClass; }
|
public static RubyClass createDirClass(Ruby ruby) { RubyClass dirClass = ruby.defineClass("Dir", ruby.getClasses().getObjectClass()); dirClass.includeModule(ruby.getRubyModule("Enumerable")); dirClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyDir.class, "newInstance")); dirClass.defineSingletonMethod("glob", CallbackFactory.getSingletonMethod(RubyDir.class, "glob", RubyString.class)); dirClass.defineSingletonMethod("[]", CallbackFactory.getSingletonMethod(RubyDir.class, "glob", RubyString.class)); // dirClass.defineAlias("[]", "glob"); dirClass.defineSingletonMethod("chdir", CallbackFactory.getSingletonMethod(RubyDir.class, "chdir", RubyString.class)); dirClass.defineSingletonMethod("chroot", CallbackFactory.getSingletonMethod(RubyDir.class, "chroot", RubyString.class)); dirClass.defineSingletonMethod("delete", CallbackFactory.getSingletonMethod(RubyDir.class, "delete", RubyString.class)); dirClass.defineSingletonMethod("foreach", CallbackFactory.getSingletonMethod(RubyDir.class, "foreach", RubyString.class)); dirClass.defineSingletonMethod("getwd", CallbackFactory.getSingletonMethod(RubyDir.class, "getwd")); dirClass.defineSingletonMethod("pwd", CallbackFactory.getSingletonMethod(RubyDir.class, "getwd")); // dirClass.defineAlias("pwd", "getwd"); dirClass.defineSingletonMethod("mkdir", CallbackFactory.getOptSingletonMethod(RubyDir.class, "mkdir")); dirClass.defineSingletonMethod("open", CallbackFactory.getSingletonMethod(RubyDir.class, "open", RubyString.class)); dirClass.defineSingletonMethod("rmdir", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); dirClass.defineSingletonMethod("unlink", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); dirClass.defineSingletonMethod("delete", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); // dirClass.defineAlias("unlink", "rmdir"); // dirClass.defineAlias("delete", "rmdir"); dirClass.defineMethod("close", CallbackFactory.getMethod(RubyDir.class, "close")); dirClass.defineMethod("each", CallbackFactory.getMethod(RubyDir.class, "each")); dirClass.defineMethod("tell", CallbackFactory.getMethod(RubyDir.class, "tell")); dirClass.defineAlias("pos", "tell"); dirClass.defineMethod("seek", CallbackFactory.getMethod(RubyDir.class, "seek", RubyInteger.class)); dirClass.defineAlias("pos=", "seek"); dirClass.defineMethod("read", CallbackFactory.getMethod(RubyDir.class, "read")); dirClass.defineMethod("rewind", CallbackFactory.getMethod(RubyDir.class, "rewind")); dirClass.defineMethod("initialize", CallbackFactory.getMethod(RubyDir.class, "initialize", RubyString.class)); return dirClass; }
| 3,236,615
|
public static RubyClass createDirClass(Ruby ruby) { RubyClass dirClass = ruby.defineClass("Dir", ruby.getClasses().getObjectClass()); dirClass.includeModule(ruby.getRubyModule("Enumerable")); dirClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyDir.class, "newInstance")); dirClass.defineSingletonMethod("glob", CallbackFactory.getSingletonMethod(RubyDir.class, "glob", RubyString.class)); dirClass.defineSingletonMethod("[]", CallbackFactory.getSingletonMethod(RubyDir.class, "glob", RubyString.class)); // dirClass.defineAlias("[]", "glob"); dirClass.defineSingletonMethod("chdir", CallbackFactory.getSingletonMethod(RubyDir.class, "chdir", RubyString.class)); dirClass.defineSingletonMethod("chroot", CallbackFactory.getSingletonMethod(RubyDir.class, "chroot", RubyString.class)); dirClass.defineSingletonMethod("delete", CallbackFactory.getSingletonMethod(RubyDir.class, "delete", RubyString.class)); dirClass.defineSingletonMethod("foreach", CallbackFactory.getSingletonMethod(RubyDir.class, "foreach", RubyString.class)); dirClass.defineSingletonMethod("getwd", CallbackFactory.getSingletonMethod(RubyDir.class, "getwd")); dirClass.defineSingletonMethod("pwd", CallbackFactory.getSingletonMethod(RubyDir.class, "getwd")); // dirClass.defineAlias("pwd", "getwd"); dirClass.defineSingletonMethod("mkdir", CallbackFactory.getOptSingletonMethod(RubyDir.class, "mkdir")); dirClass.defineSingletonMethod("open", CallbackFactory.getOptSingletonMethod(RubyDir.class, "open", RubyString.class)); dirClass.defineSingletonMethod("rmdir", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); dirClass.defineSingletonMethod("unlink", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); dirClass.defineSingletonMethod("delete", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); // dirClass.defineAlias("unlink", "rmdir"); // dirClass.defineAlias("delete", "rmdir"); dirClass.defineMethod("close", CallbackFactory.getMethod(RubyDir.class, "close")); dirClass.defineMethod("each", CallbackFactory.getMethod(RubyDir.class, "each")); dirClass.defineMethod("tell", CallbackFactory.getMethod(RubyDir.class, "tell")); dirClass.defineAlias("pos", "tell"); dirClass.defineMethod("seek", CallbackFactory.getMethod(RubyDir.class, "seek", RubyInteger.class)); dirClass.defineAlias("pos=", "seek"); dirClass.defineMethod("read", CallbackFactory.getMethod(RubyDir.class, "read")); dirClass.defineMethod("rewind", CallbackFactory.getMethod(RubyDir.class, "rewind")); dirClass.defineMethod("initialize", CallbackFactory.getMethod(RubyDir.class, "initialize", RubyString.class)); return dirClass; }
|
public static RubyClass createDirClass(Ruby ruby) { RubyClass dirClass = ruby.defineClass("Dir", ruby.getClasses().getObjectClass()); dirClass.includeModule(ruby.getRubyModule("Enumerable")); dirClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyDir.class, "newInstance")); dirClass.defineSingletonMethod("glob", CallbackFactory.getSingletonMethod(RubyDir.class, "glob", RubyString.class)); dirClass.defineSingletonMethod("[]", CallbackFactory.getSingletonMethod(RubyDir.class, "glob", RubyString.class)); // dirClass.defineAlias("[]", "glob"); dirClass.defineSingletonMethod("chdir", CallbackFactory.getSingletonMethod(RubyDir.class, "chdir", RubyString.class)); dirClass.defineSingletonMethod("chroot", CallbackFactory.getSingletonMethod(RubyDir.class, "chroot", RubyString.class)); dirClass.defineSingletonMethod("delete", CallbackFactory.getSingletonMethod(RubyDir.class, "delete", RubyString.class)); dirClass.defineSingletonMethod("foreach", CallbackFactory.getSingletonMethod(RubyDir.class, "foreach", RubyString.class)); dirClass.defineSingletonMethod("getwd", CallbackFactory.getSingletonMethod(RubyDir.class, "getwd")); dirClass.defineSingletonMethod("pwd", CallbackFactory.getSingletonMethod(RubyDir.class, "getwd")); // dirClass.defineAlias("pwd", "getwd"); dirClass.defineSingletonMethod("mkdir", CallbackFactory.getOptSingletonMethod(RubyDir.class, "mkdir")); dirClass.defineSingletonMethod("open", CallbackFactory.getOptSingletonMethod(RubyDir.class, "open", RubyString.class)); dirClass.defineSingletonMethod("rmdir", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); dirClass.defineSingletonMethod("unlink", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); dirClass.defineSingletonMethod("delete", CallbackFactory.getSingletonMethod(RubyDir.class, "rmdir", RubyString.class)); // dirClass.defineAlias("unlink", "rmdir"); // dirClass.defineAlias("delete", "rmdir"); dirClass.defineMethod("close", CallbackFactory.getMethod(RubyDir.class, "close")); dirClass.defineMethod("each", CallbackFactory.getMethod(RubyDir.class, "each")); dirClass.defineMethod("tell", CallbackFactory.getMethod(RubyDir.class, "tell")); dirClass.defineAlias("pos", "tell"); dirClass.defineMethod("seek", CallbackFactory.getMethod(RubyDir.class, "seek", RubyFixnum.class)); dirClass.defineAlias("pos=", "seek"); dirClass.defineMethod("read", CallbackFactory.getMethod(RubyDir.class, "read")); dirClass.defineMethod("rewind", CallbackFactory.getMethod(RubyDir.class, "rewind")); dirClass.defineMethod("initialize", CallbackFactory.getMethod(RubyDir.class, "initialize", RubyString.class)); return dirClass; }
| 3,236,616
|
public static RubyArray glob(IRubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); /*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplementedError(); }*/ String[] files = new Glob(pattern).getNames(); // new File(".").list(new GlobFilenameFilter(pattern)); return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); }
|
public static RubyArray glob(IRubyObject recv, RubyString pat) {// FIXME this is only a small subset of the functionallity of this functionString pattern = pat.toString();/*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) {throw new NotImplementedError();}*/String[] files = new Glob(pattern).getNames();// new File(".").list(new GlobFilenameFilter(pattern));return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files));}
| 3,236,617
|
public static RubyArray glob(IRubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); /*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplementedError(); }*/ String[] files = new Glob(pattern).getNames(); // new File(".").list(new GlobFilenameFilter(pattern)); return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); }
|
public static RubyArray glob(IRubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); /*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplementedError(); }*/ String[] files = new Glob(pattern).getNames(); // new File(".").list(new GlobFilenameFilter(pattern)); return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); }
| 3,236,618
|
public static RubyArray glob(IRubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); /*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplementedError(); }*/ String[] files = new Glob(pattern).getNames(); // new File(".").list(new GlobFilenameFilter(pattern)); return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); }
|
public static RubyArray glob(IRubyObject recv, RubyString pat) {// FIXME this is only a small subset of the functionallity of this functionString pattern = pat.toString();/*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) {throw new NotImplementedError();}*/String[] files = new Glob(pattern).getNames();// new File(".").list(new GlobFilenameFilter(pattern));return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files));}
| 3,236,619
|
public RubyString read() { return new RubyString(getRuntime(), snapshot[pos++]); }
|
public RubyString read() { pos++; if (pos >= snapshot.length) { return RubyString.nilString(runtime); } return new RubyString(getRuntime(), snapshot[pos]); }
| 3,236,620
|
public RubyObject iterate(Callback iterateMethod, RubyObject data1, Callback blockMethod, RubyObject data2) { // VALUE self = ruby_top_self; getIterStack().push(Iter.ITER_PRE); getBlock().push(null, new IterateMethod(blockMethod, data2), getRubyTopSelf()); try { while (true) { try { return iterateMethod.execute(data1, null, this); } catch (BreakJump bExcptn) { return getNil(); } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } catch (RetryException rExcptn) { } } } finally { getIterStack().pop(); getBlock().pop(); } }
|
public RubyObject iterate(Callback iterateMethod, RubyObject data1, Callback blockMethod, RubyObject data2) { // VALUE self = ruby_top_self; getIterStack().push(Iter.ITER_PRE); getBlockStack().push(null, new IterateMethod(blockMethod, data2), getRubyTopSelf()); try { while (true) { try { return iterateMethod.execute(data1, null, this); } catch (BreakJump bExcptn) { return getNil(); } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } catch (RetryException rExcptn) { } } } finally { getIterStack().pop(); getBlock().pop(); } }
| 3,236,621
|
public RubyObject iterate(Callback iterateMethod, RubyObject data1, Callback blockMethod, RubyObject data2) { // VALUE self = ruby_top_self; getIterStack().push(Iter.ITER_PRE); getBlock().push(null, new IterateMethod(blockMethod, data2), getRubyTopSelf()); try { while (true) { try { return iterateMethod.execute(data1, null, this); } catch (BreakJump bExcptn) { return getNil(); } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } catch (RetryException rExcptn) { } } } finally { getIterStack().pop(); getBlock().pop(); } }
|
public RubyObject iterate(Callback iterateMethod, RubyObject data1, Callback blockMethod, RubyObject data2) { // VALUE self = ruby_top_self; getIterStack().push(Iter.ITER_PRE); getBlock().push(null, new IterateMethod(blockMethod, data2), getRubyTopSelf()); try { while (true) { try { return iterateMethod.execute(data1, null, this); } catch (BreakJump bExcptn) { return getNil(); } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } catch (RetryException rExcptn) { } } } finally { getIterStack().pop(); getBlockStack().pop(); } }
| 3,236,622
|
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participantJID)); // Register PacketListeners AndFilter messageFilter = new AndFilter(new PacketTypeFilter(Message.class), new FromContainsFilter(participantJID)); SparkManager.getConnection().addPacketListener(this, messageFilter); SparkManager.getConnection().addPacketListener(this, presenceFilter); // The roomname will be the participantJID this.roomname = participantJID; // Use the agents username as the Tab Title this.tabTitle = title; // The name of the room will be the node of the user jid + conversation. final SimpleDateFormat formatter = new SimpleDateFormat("h:mm a"); this.roomTitle = participantNickname; // Add RoomInfo this.getSplitPane().setRightComponent(null); getSplitPane().setDividerSize(0); roster = SparkManager.getConnection().getRoster(); presence = roster.getPresence(participantJID); RosterEntry entry = roster.getEntry(participantJID); tabIcon = SparkManager.getUserManager().getTabIconForPresence(presence); PacketFilter filter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(participantJID)); SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(Packet packet) { presence = (Presence)packet; } }, filter); // Create toolbar buttons. ChatRoomButton infoButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.PROFILE_IMAGE_24x24)); infoButton.setToolTipText(Res.getString("message.view.information.about.this.user")); // Create basic toolbar. getToolBar().addChatRoomButton(infoButton); // If the user is not in the roster, then allow user to add them. if (entry == null && !StringUtils.parseResource(participantJID).equals(participantNickname)) { ChatRoomButton addToRosterButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.ADD_IMAGE_24x24)); addToRosterButton.setToolTipText(Res.getString("message.add.this.user.to.your.roster")); getToolBar().addChatRoomButton(addToRosterButton); addToRosterButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { RosterDialog rosterDialog = new RosterDialog(); rosterDialog.setDefaultJID(participantJID); rosterDialog.setDefaultNickname(getParticipantNickname()); rosterDialog.showRosterDialog(SparkManager.getChatManager().getChatContainer().getChatFrame()); } }); } // Show VCard. infoButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { VCardManager vcard = SparkManager.getVCardManager(); vcard.viewProfile(participantJID, SparkManager.getChatManager().getChatContainer()); } }); // If this is a private chat from a group chat room, do not show toolbar. if (StringUtils.parseResource(participantJID).equals(participantNickname)) { getToolBar().setVisible(false); } typingTimer = new Timer(2000, new ActionListener() { public void actionPerformed(ActionEvent e) { if(!sendTypingNotification) { return; } long now = System.currentTimeMillis(); if (now - lastTypedCharTime > 2000) { if (!sendNotification) { // send cancel SparkManager.getMessageEventManager().sendCancelledNotification(getParticipantJID(), threadID); sendNotification = true; } } } }); typingTimer.start(); lastActivity = System.currentTimeMillis(); // Add VCard Panel final VCardPanel vcardPanel = new VCardPanel(participantJID); getToolBar().add(vcardPanel, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); }
|
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new BareAddressFilter(participantJID)); // Register PacketListeners AndFilter messageFilter = new AndFilter(new PacketTypeFilter(Message.class), new FromContainsFilter(participantJID)); SparkManager.getConnection().addPacketListener(this, messageFilter); SparkManager.getConnection().addPacketListener(this, presenceFilter); // The roomname will be the participantJID this.roomname = participantJID; // Use the agents username as the Tab Title this.tabTitle = title; // The name of the room will be the node of the user jid + conversation. final SimpleDateFormat formatter = new SimpleDateFormat("h:mm a"); this.roomTitle = participantNickname; // Add RoomInfo this.getSplitPane().setRightComponent(null); getSplitPane().setDividerSize(0); roster = SparkManager.getConnection().getRoster(); presence = roster.getPresence(participantJID); RosterEntry entry = roster.getEntry(participantJID); tabIcon = SparkManager.getUserManager().getTabIconForPresence(presence); PacketFilter filter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(participantJID)); SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(Packet packet) { presence = (Presence)packet; } }, filter); // Create toolbar buttons. ChatRoomButton infoButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.PROFILE_IMAGE_24x24)); infoButton.setToolTipText(Res.getString("message.view.information.about.this.user")); // Create basic toolbar. getToolBar().addChatRoomButton(infoButton); // If the user is not in the roster, then allow user to add them. if (entry == null && !StringUtils.parseResource(participantJID).equals(participantNickname)) { ChatRoomButton addToRosterButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.ADD_IMAGE_24x24)); addToRosterButton.setToolTipText(Res.getString("message.add.this.user.to.your.roster")); getToolBar().addChatRoomButton(addToRosterButton); addToRosterButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { RosterDialog rosterDialog = new RosterDialog(); rosterDialog.setDefaultJID(participantJID); rosterDialog.setDefaultNickname(getParticipantNickname()); rosterDialog.showRosterDialog(SparkManager.getChatManager().getChatContainer().getChatFrame()); } }); } // Show VCard. infoButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { VCardManager vcard = SparkManager.getVCardManager(); vcard.viewProfile(participantJID, SparkManager.getChatManager().getChatContainer()); } }); // If this is a private chat from a group chat room, do not show toolbar. if (StringUtils.parseResource(participantJID).equals(participantNickname)) { getToolBar().setVisible(false); } typingTimer = new Timer(2000, new ActionListener() { public void actionPerformed(ActionEvent e) { if(!sendTypingNotification) { return; } long now = System.currentTimeMillis(); if (now - lastTypedCharTime > 2000) { if (!sendNotification) { // send cancel SparkManager.getMessageEventManager().sendCancelledNotification(getParticipantJID(), threadID); sendNotification = true; } } } }); typingTimer.start(); lastActivity = System.currentTimeMillis(); // Add VCard Panel final VCardPanel vcardPanel = new VCardPanel(participantJID); getToolBar().add(vcardPanel, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); }
| 3,236,623
|
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participantJID)); // Register PacketListeners AndFilter messageFilter = new AndFilter(new PacketTypeFilter(Message.class), new FromContainsFilter(participantJID)); SparkManager.getConnection().addPacketListener(this, messageFilter); SparkManager.getConnection().addPacketListener(this, presenceFilter); // The roomname will be the participantJID this.roomname = participantJID; // Use the agents username as the Tab Title this.tabTitle = title; // The name of the room will be the node of the user jid + conversation. final SimpleDateFormat formatter = new SimpleDateFormat("h:mm a"); this.roomTitle = participantNickname; // Add RoomInfo this.getSplitPane().setRightComponent(null); getSplitPane().setDividerSize(0); roster = SparkManager.getConnection().getRoster(); presence = roster.getPresence(participantJID); RosterEntry entry = roster.getEntry(participantJID); tabIcon = SparkManager.getUserManager().getTabIconForPresence(presence); PacketFilter filter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(participantJID)); SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(Packet packet) { presence = (Presence)packet; } }, filter); // Create toolbar buttons. ChatRoomButton infoButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.PROFILE_IMAGE_24x24)); infoButton.setToolTipText(Res.getString("message.view.information.about.this.user")); // Create basic toolbar. getToolBar().addChatRoomButton(infoButton); // If the user is not in the roster, then allow user to add them. if (entry == null && !StringUtils.parseResource(participantJID).equals(participantNickname)) { ChatRoomButton addToRosterButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.ADD_IMAGE_24x24)); addToRosterButton.setToolTipText(Res.getString("message.add.this.user.to.your.roster")); getToolBar().addChatRoomButton(addToRosterButton); addToRosterButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { RosterDialog rosterDialog = new RosterDialog(); rosterDialog.setDefaultJID(participantJID); rosterDialog.setDefaultNickname(getParticipantNickname()); rosterDialog.showRosterDialog(SparkManager.getChatManager().getChatContainer().getChatFrame()); } }); } // Show VCard. infoButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { VCardManager vcard = SparkManager.getVCardManager(); vcard.viewProfile(participantJID, SparkManager.getChatManager().getChatContainer()); } }); // If this is a private chat from a group chat room, do not show toolbar. if (StringUtils.parseResource(participantJID).equals(participantNickname)) { getToolBar().setVisible(false); } typingTimer = new Timer(2000, new ActionListener() { public void actionPerformed(ActionEvent e) { if(!sendTypingNotification) { return; } long now = System.currentTimeMillis(); if (now - lastTypedCharTime > 2000) { if (!sendNotification) { // send cancel SparkManager.getMessageEventManager().sendCancelledNotification(getParticipantJID(), threadID); sendNotification = true; } } } }); typingTimer.start(); lastActivity = System.currentTimeMillis(); // Add VCard Panel final VCardPanel vcardPanel = new VCardPanel(participantJID); getToolBar().add(vcardPanel, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); }
|
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participantJID)); // Register PacketListeners AndFilter messageFilter = new AndFilter(new PacketTypeFilter(Message.class), new BareAddressFilter(participantJID)); SparkManager.getConnection().addPacketListener(this, messageFilter); SparkManager.getConnection().addPacketListener(this, presenceFilter); // The roomname will be the participantJID this.roomname = participantJID; // Use the agents username as the Tab Title this.tabTitle = title; // The name of the room will be the node of the user jid + conversation. final SimpleDateFormat formatter = new SimpleDateFormat("h:mm a"); this.roomTitle = participantNickname; // Add RoomInfo this.getSplitPane().setRightComponent(null); getSplitPane().setDividerSize(0); roster = SparkManager.getConnection().getRoster(); presence = roster.getPresence(participantJID); RosterEntry entry = roster.getEntry(participantJID); tabIcon = SparkManager.getUserManager().getTabIconForPresence(presence); PacketFilter filter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(participantJID)); SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(Packet packet) { presence = (Presence)packet; } }, filter); // Create toolbar buttons. ChatRoomButton infoButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.PROFILE_IMAGE_24x24)); infoButton.setToolTipText(Res.getString("message.view.information.about.this.user")); // Create basic toolbar. getToolBar().addChatRoomButton(infoButton); // If the user is not in the roster, then allow user to add them. if (entry == null && !StringUtils.parseResource(participantJID).equals(participantNickname)) { ChatRoomButton addToRosterButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.ADD_IMAGE_24x24)); addToRosterButton.setToolTipText(Res.getString("message.add.this.user.to.your.roster")); getToolBar().addChatRoomButton(addToRosterButton); addToRosterButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { RosterDialog rosterDialog = new RosterDialog(); rosterDialog.setDefaultJID(participantJID); rosterDialog.setDefaultNickname(getParticipantNickname()); rosterDialog.showRosterDialog(SparkManager.getChatManager().getChatContainer().getChatFrame()); } }); } // Show VCard. infoButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { VCardManager vcard = SparkManager.getVCardManager(); vcard.viewProfile(participantJID, SparkManager.getChatManager().getChatContainer()); } }); // If this is a private chat from a group chat room, do not show toolbar. if (StringUtils.parseResource(participantJID).equals(participantNickname)) { getToolBar().setVisible(false); } typingTimer = new Timer(2000, new ActionListener() { public void actionPerformed(ActionEvent e) { if(!sendTypingNotification) { return; } long now = System.currentTimeMillis(); if (now - lastTypedCharTime > 2000) { if (!sendNotification) { // send cancel SparkManager.getMessageEventManager().sendCancelledNotification(getParticipantJID(), threadID); sendNotification = true; } } } }); typingTimer.start(); lastActivity = System.currentTimeMillis(); // Add VCard Panel final VCardPanel vcardPanel = new VCardPanel(participantJID); getToolBar().add(vcardPanel, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); }
| 3,236,624
|
public void setUp() { ruby = Ruby.getDefaultInstance(null); rubyTime = ruby.getClasses().getTimeClass(); RubyObject[] args = new RubyObject[1]; args[0] = RubyFixnum.newFixnum(ruby, 18000000); nineTeenSeventy = RubyTime.s_at(ruby, rubyTime, args); }
|
public void setUp() { if (ruby == null) { ruby = Ruby.getDefaultInstance(null); } rubyTime = ruby.getClasses().getTimeClass(); RubyObject[] args = new RubyObject[1]; args[0] = RubyFixnum.newFixnum(ruby, 18000000); nineTeenSeventy = RubyTime.s_at(ruby, rubyTime, args); }
| 3,236,625
|
public void testTimeNow() { RubyTime myTime = RubyTime.s_new(ruby, rubyTime); try { Thread.sleep(1000); } catch (InterruptedException e) { fail("Unexpected InterruptedException"); } Date now = new Date(); assertTrue(now.after(myTime.getJavaDate())); }
|
public void testTimeNow() { RubyTime myTime = RubyTime.s_new(ruby, rubyTime); try { Thread.sleep(100); } catch (InterruptedException e) { fail("Unexpected InterruptedException"); } Date now = new Date(); assertTrue(now.after(myTime.getJavaDate())); }
| 3,236,626
|
ImViewerUI(String title) { super(title); loadingWindow = new LoadingWindow(this); createWindowsMenu(); }
|
ImViewerUI(String title) { super(title); loadingWindow = new LoadingWindow(this); }
| 3,236,627
|
private JMenuBar createMenuBar() { JMenuBar menuBar = new JMenuBar(); menuBar.add(createControlsMenu()); menuBar.add(createZoomMenu()); menuBar.add(createRatingMenu()); //menuBar.add(windowsMenu); //Adds windows menu to the task bar menu. TaskBar tb = ImViewerAgent.getRegistry().getTaskBar(); tb.addToMenu(TaskBar.WINDOW_MENU, windowsMenu); return menuBar; }
|
private JMenuBar createMenuBar() { JMenuBar menuBar = new JMenuBar(); menuBar.add(createControlsMenu()); menuBar.add(createZoomMenu()); menuBar.add(createRatingMenu()); //menuBar.add(windowsMenu); //Adds windows menu to the task bar menu. TaskBar tb = ImViewerAgent.getRegistry().getTaskBar(); tb.addToMenu(TaskBar.WINDOW_MENU, windowsMenu); return menuBar; }
| 3,236,628
|
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1].split("\\swhere\\s"); sb.append(second[0]); if (second.length == 1) { return sb.toString(); } else if (second.length == 2) { // where sb.append("\n where "); sb.append(second[1]); return sb.toString(); } } throw new InternalException("Assumptions about the number of " + "\"froms\" and \"wheres\" in sql query failed. "); }
|
publicStringonPrepareStatement(Stringsql){ //start StringBuildersb=newStringBuilder(); String[]first=sql.split("\\sfrom\\s"); sb.append(first[0]); if(first.length==1) { returnsb.toString(); } elseif(first.length==2) { //from sb.append("\nfrom"); String[]second=first[1].split("\\swhere\\s"); sb.append(second[0]); if(second.length==1) { returnsb.toString(); } elseif(second.length==2) { //where sb.append("\nwhere"); sb.append(second[1]); returnsb.toString(); } } thrownewInternalException("Assumptionsaboutthenumberof"+ "\"froms\"and\"wheres\"insqlqueryfailed."); }
| 3,236,629
|
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1].split("\\swhere\\s"); sb.append(second[0]); if (second.length == 1) { return sb.toString(); } else if (second.length == 2) { // where sb.append("\n where "); sb.append(second[1]); return sb.toString(); } } throw new InternalException("Assumptions about the number of " + "\"froms\" and \"wheres\" in sql query failed. "); }
|
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1].split("\\swhere\\s"); sb.append(second[0]); if (second.length == 1) { return sb.toString(); } else if (second.length == 2) { // where sb.append("\n where "); sb.append(second[1]); return sb.toString(); } } throw new InternalException("Assumptions about the number of " + "\"froms\" and \"wheres\" in sql query failed. "); }
| 3,236,630
|
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1].split("\\swhere\\s"); sb.append(second[0]); if (second.length == 1) { return sb.toString(); } else if (second.length == 2) { // where sb.append("\n where "); sb.append(second[1]); return sb.toString(); } } throw new InternalException("Assumptions about the number of " + "\"froms\" and \"wheres\" in sql query failed. "); }
|
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1].split("\\swhere\\s"); sb.append(second[0]); if (second.length == 1) { return sb.toString(); } else if (second.length == 2) { // where sb.append("\n where "); sb.append(second[1]); return sb.toString(); } } throw new InternalException("Assumptions about the number of " + "\"froms\" and \"wheres\" in sql query failed. "); }
| 3,236,631
|
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1].split("\\swhere\\s"); sb.append(second[0]); if (second.length == 1) { return sb.toString(); } else if (second.length == 2) { // where sb.append("\n where "); sb.append(second[1]); return sb.toString(); } } throw new InternalException("Assumptions about the number of " + "\"froms\" and \"wheres\" in sql query failed. "); }
|
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1].split("\\swhere\\s"); sb.append(second[0]); if (second.length == 1) { return sb.toString(); } else if (second.length == 2) { // where sb.append("\n where "); sb.append(second[1]); return sb.toString(); } } throw new InternalException("Assumptions about the number of " + "\"froms\" and \"wheres\" in sql query failed. "); }
| 3,236,632
|
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the context and retrieve objects we're gonna use. renderer = ctx; QuantumManager qManager = renderer.getQuantumManager(); PixelBuffer pixels = renderer.getPixels(); Pixels metadata = renderer.getMetadata(); ChannelBinding[] cBindings = renderer.getChannelBindings(); RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create the RGB buffer. initAxesSize(planeDef, metadata); performanceStats.startMalloc(); log.info("Creating RGBBuffer of size " + sizeX1 + "x" + sizeX2); RGBBuffer renderedDataBuf = new RGBBuffer(sizeX1, sizeX2); performanceStats.endMalloc(); //Process the first active wavelength. Plane2D wData; for (int i = 0; i < cBindings.length; i++) { if (cBindings[i].getActive().booleanValue()) { //Get the raw data. performanceStats.startIO(i); wData = Helper.createPlane(planeDef, i, metadata, pixels); performanceStats.endIO(i); try { //Transform it into an RGB image. performanceStats.startRendering(); renderWave(renderedDataBuf, wData, cBindings[i].getColor(), qManager.getStrategyFor(i)); performanceStats.endRendering(); } catch (QuantizationException e) { e.setWavelength(i); throw e; } break; } } //Done. return renderedDataBuf; }
|
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the context and retrieve objects we're gonna use. renderer = ctx; QuantumManager qManager = renderer.getQuantumManager(); PixelBuffer pixels = renderer.getPixels(); Pixels metadata = renderer.getMetadata(); ChannelBinding[] cBindings = renderer.getChannelBindings(); RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create the RGB buffer. initAxesSize(planeDef, metadata); performanceStats.startMalloc(); log.info("Creating RGBBuffer of size " + sizeX1 + "x" + sizeX2); RGBBuffer renderedDataBuf = new RGBBuffer(sizeX1, sizeX2); performanceStats.endMalloc(); //Process the first active wavelength. Plane2D wData; for (int i = 0; i < cBindings.length; i++) { if (cBindings[i].getActive().booleanValue()) { //Get the raw data. performanceStats.startIO(i); wData = PlaneFactory.createPlane(planeDef, i, metadata, pixels); performanceStats.endIO(i); try { //Transform it into an RGB image. performanceStats.startRendering(); renderWave(renderedDataBuf, wData, cBindings[i].getColor(), qManager.getStrategyFor(i)); performanceStats.endRendering(); } catch (QuantizationException e) { e.setWavelength(i); throw e; } break; } } //Done. return renderedDataBuf; }
| 3,236,633
|
public void setNickname(String nickname){ nicknameLabel.setText(nickname); }
|
public void setNickname(String nickname) { nicknameLabel.setText(nickname); }
| 3,236,637
|
public Object invoke(MethodInvocation arg0) throws Throwable { secSys.setCurrentDetails(); Boolean readOnly = (Boolean) ht.execute(new CheckReadOnlyAction(secSys)); if ( readOnly != null && readOnly.booleanValue()) { if (log.isDebugEnabled()) { log.debug("Tx readonly. Not saving current event."); } } else { secSys.setCurrentEvent((Event)ht.merge(secSys.getCurrentEvent())); } log.info(String.format("Auth:\tuser=%s,group=%s,event=%s(%s)", secSys.currentUserId(),secSys.currentGroup().getId(), secSys.currentEvent().getId(),secSys.currentEvent().getType())); boolean failure = false; try { ht.execute(new EnableFilterAction(secSys)); Object retVal = arg0.proceed(); return retVal; } catch (Exception ex){ failure = true; throw ex; } finally { try { if (!failure) { ht.flush(); ht.execute(new CheckDirtyAction(secSys)); ht.execute(new DisableFilterAction(secSys)); } } finally { secSys.clearCurrentDetails(); } } }
|
public Object invoke(MethodInvocation arg0) throws Throwable { secSys.setCurrentDetails(); Boolean readOnly = (Boolean) ht.execute(new CheckReadOnlyAction(secSys)); if ( readOnly != null && readOnly.booleanValue()) { if (log.isDebugEnabled()) { log.debug("Tx readonly. Not saving current event."); } } else { secSys.setCurrentEvent((Event)ht.merge(secSys.getCurrentEvent())); } log.info(String.format("Auth:\tuser=%s,group=%s,event=%s(%s)", secSys.currentUserId(),secSys.currentGroup().getId(), secSys.currentEvent().getId(),secSys.currentEvent().getType())); boolean failure = false; try { ht.execute(new EnableFilterAction(secSys)); Object retVal = arg0.proceed(); return retVal; } catch (Exception ex){ failure = true; throw ex; } finally { try { if (!failure) { ht.flush(); ht.execute(new CheckDirtyAction(secSys)); ht.execute(new DisableFilterAction(secSys)); } } finally { secSys.clearCurrentDetails(); } } }
| 3,236,638
|
private void buildGUI() { //create and initialize the tabs tabs = new JTabbedPane(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); tabs.setAlignmentX(LEFT_ALIGNMENT); tabs.insertTab("Mapping", im.getIcon(IconManager.MAPPING), mappingPanel, null, POS_MAPPING); tabs.insertTab(control.getModelType()+" Model", im.getIcon(IconManager.GREYSCALE), modelPane, null, POS_MODEL); tabs.insertTab("Options", im.getIcon(IconManager.CODOMAIN), quantumPane.getCodomainPane(), null, POS_CD); getContentPane().setLayout(new BorderLayout(0, 0)); getContentPane().add(new ToolBar(control, registry), BorderLayout.NORTH); getContentPane().add(tabs, BorderLayout.CENTER); //setIconImage(IconManager.getOMEImageIcon()); }
|
private void buildGUI() { //create and initialize the tabs tabs = new JTabbedPane(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); tabs.setAlignmentX(LEFT_ALIGNMENT); tabs.insertTab("Mapping", im.getIcon(IconManager.MAPPING), mappingPanel, null, POS_MAPPING); tabs.insertTab(control.getModelType()+" Model", im.getIcon(IconManager.GREYSCALE), modelPane, null, POS_MODEL); tabs.insertTab("Options", im.getIcon(IconManager.CODOMAIN), quantumPane.getCodomainPane(), null, POS_CD); getContentPane().setLayout(new BorderLayout(0, 0)); getContentPane().add(new ToolBar(control, registry), BorderLayout.NORTH); getContentPane().add(tabs, BorderLayout.CENTER); //setIconImage(IconManager.getOMEImageIcon()); }
| 3,236,639
|
private void buildMappingPanel() { mappingPanel.setLayout(new BorderLayout(0, 0)); mappingPanel.add(quantumPane.getGRPane(), BorderLayout.NORTH); mappingPanel.add(quantumPane.getDomainPane(), BorderLayout.CENTER); }
|
private void buildMappingPanel() { mappingPanel.setLayout(new BorderLayout(0, 0)); mappingPanel.add(quantumPane.getGRPane(), BorderLayout.NORTH); mappingPanel.add(quantumPane.getDomainPane(), BorderLayout.CENTER); }
| 3,236,640
|
private JMenu createMenu() { JMenu menu = new JMenu("Controls"); /* JMenuItem menuItem = new JMenuItem("Save", im.getIcon(IconManager.SAVE_SETTINGS)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.SAVE); menu.add(menuItem); */ JMenuItem menuItem = new JMenuItem("Reset defaults", im.getIcon(IconManager.RESET_DEFAULTS)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.RESET_DEFAULTS); menu.add(menuItem); return menu; }
|
private JMenu createMenu() { JMenu menu = new JMenu("Controls"); /* JMenuItem menuItem = new JMenuItem("Save", im.getIcon(IconManager.SAVE_SETTINGS)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.SAVE); menu.add(menuItem); */ JMenuItem menuItem = new JMenuItem("Reset defaults", im.getIcon(IconManager.RESET_DEFAULTS)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.RESET_DEFAULTS); menu.add(menuItem); return menu; }
| 3,236,641
|
private JMenuBar createMenuBar() { JMenuBar menuBar = new JMenuBar(); menuBar.add(createModelMenu()); menuBar.add(createMenu()); return menuBar; }
|
private JMenuBar createMenuBar() { JMenuBar menuBar = new JMenuBar(); menuBar.add(createModelMenu()); menuBar.add(createMenu()); return menuBar; }
| 3,236,642
|
private JMenu createModelMenu() { JMenu menu = new JMenu("Model"); JMenuItem menuItem = new JMenuItem("GreyScale", im.getIcon(IconManager.GREYSCALE)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.GREY); menu.add(menuItem); menuItem = new JMenuItem("RGB", im.getIcon(IconManager.RGB)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.RGB); menu.add(menuItem); menuItem = new JMenuItem("HSB", im.getIcon(IconManager.HSB)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.HSB); menu.add(menuItem); return menu; }
|
private JMenu createModelMenu() { JMenu menu = new JMenu("Model"); JMenuItem menuItem = new JMenuItem("GreyScale", im.getIcon(IconManager.GREYSCALE)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.GREY); menu.add(menuItem); menuItem = new JMenuItem("RGB", im.getIcon(IconManager.RGB)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.RGB); menu.add(menuItem); menuItem = new JMenuItem("HSB", im.getIcon(IconManager.HSB)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.HSB); menu.add(menuItem); return menu; }
| 3,236,643
|
private void initPanes() { quantumPane = new QuantumPane(control); modelPane = control.getModelPane(); modelPane.buildComponent(); mappingPanel = new JPanel(); mappingPanel.setLayout(new BorderLayout(0, 10)); }
|
private void initPanes() { quantumPane = new QuantumPane(control); modelPane = control.getModelPane(); modelPane.buildComponent(); mappingPanel = new JPanel(); mappingPanel.setLayout(new BorderLayout(0, 10)); }
| 3,236,644
|
public ChannelButton(String text, Color color, int index, boolean selected) { super(text, color); if (color == null) throw new IllegalArgumentException("No color."); this.index = index; setSelected(selected); addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { onClick(e); } public void mouseReleased(MouseEvent e) { onReleased(e); } }); }
|
public ChannelButton(String text, Color color, int index, boolean selected) { super(text, color); if (color == null) throw new IllegalArgumentException("No color."); this.index = index; setSelected(selected); addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { onClick(e); } public void mouseReleased(MouseEvent e) { onReleased(e); } }); }
| 3,236,645
|
public ChannelButton(String text, Color color, int index, boolean selected) { super(text, color); if (color == null) throw new IllegalArgumentException("No color."); this.index = index; setSelected(selected); addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { onClick(e); } public void mouseReleased(MouseEvent e) { onReleased(e); } }); }
|
public ChannelButton(String text, Color color, int index, boolean selected) { super(text, color); if (color == null) throw new IllegalArgumentException("No color."); this.index = index; setSelected(selected); addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { onClick(e); } public void mouseReleased(MouseEvent e) { onReleased(e); } }); }
| 3,236,646
|
private void onClick(MouseEvent e) { onReleased(e); if (!e.isPopupTrigger()) setChannelSelected(); }
|
private void onClick(MouseEvent e) { onReleased(e); if (!e.isMetaDown()) setChannelSelected(); }
| 3,236,647
|
private void onReleased(MouseEvent e) { if (e.isPopupTrigger()) { if (popupMenu == null) popupMenu = new ChannelButtonPopupMenu(this); popupMenu.show(this, e.getX(), e.getY()); } }
|
privatevoidonReleased(MouseEvente){if(e.isPopupTrigger()){if(popupMenu==null)popupMenu=newChannelButtonPopupMenu(this);popupMenu.show(this,e.getX(),e.getY());}}
| 3,236,648
|
void showInfo() { firePropertyChange(INFO_PROPERTY, null, new Integer(index)); }
|
voidshowInfo(){firePropertyChange(INFO_PROPERTY,null,newInteger(index));}
| 3,236,649
|
public Object getById(final Class klazz, final int id) { return getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { OMEModel o = (OMEModel) session.load(klazz,id); BaseModelUtils u = o.getUtils(); return o; } }); }
|
public Object getById(final Class klazz, final int id) { return getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { OMEModel o = (OMEModel) session.load(klazz,id); return o; } }); }
| 3,236,650
|
public Object doInHibernate(Session session) throws HibernateException { OMEModel o = (OMEModel) session.load(klazz,id); BaseModelUtils u = o.getUtils(); return o; }
|
public Object doInHibernate(Session session) throws HibernateException { OMEModel o = (OMEModel) session.load(klazz,id); return o; }
| 3,236,651
|
void initStrategies(QuantumDef qd, PixelsType type, ChannelBinding[] waves) { QuantumStrategy stg; double gMin, gMax; List channels = this.metadata.getChannels(); int w = 0; Channel channel; for (Iterator i = channels.iterator(); i.hasNext();) { channel = (Channel) i.next(); stg = QuantumFactory.getStrategy(qd,type); gMin = channel.getStatsInfo().getGlobalMin().doubleValue(); gMax = channel.getStatsInfo().getGlobalMax().doubleValue(); stg.setExtent(gMin, gMax); stg.setMapping( QuantumFactory.convertFamilyType(waves[w].getFamily()), waves[w].getCoefficient().doubleValue(), waves[w].getNoiseReduction().booleanValue()); if (wavesStg[w] == null) stg.setWindow(waves[w].getInputStart().intValue(), waves[w].getInputEnd().intValue()); else stg.setWindow(wavesStg[w].getWindowStart(), wavesStg[w].getWindowEnd()); wavesStg[w] = stg; } }
|
void initStrategies(QuantumDef qd, PixelsType type, ChannelBinding[] waves) { QuantumStrategy stg; double gMin, gMax; List channels = this.metadata.getChannels(); int w = 0; Channel channel; for (Iterator i = channels.iterator(); i.hasNext();) { channel = (Channel) i.next(); stg = QuantumFactory.getStrategy(qd,type); gMin = channel.getStatsInfo().getGlobalMin().doubleValue(); gMax = channel.getStatsInfo().getGlobalMax().doubleValue(); stg.setExtent(gMin, gMax); stg.setMapping( waves[w].getFamily(), waves[w].getCoefficient().doubleValue(), waves[w].getNoiseReduction().booleanValue()); if (wavesStg[w] == null) stg.setWindow(waves[w].getInputStart().intValue(), waves[w].getInputEnd().intValue()); else stg.setWindow(wavesStg[w].getWindowStart(), wavesStg[w].getWindowEnd()); wavesStg[w] = stg; } }
| 3,236,652
|
public void accept(NodeVisitor iVisitor) { iVisitor.visitForNode(this); }
|
public void accept(NodeVisitor iVisitor) { iVisitor.visitForNode(this); }
| 3,236,653
|
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ruby.getBlock().flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject recv = getIterNode().eval(ruby, self); ArgsUtil.endCallArgs(ruby, tmpBlock); ruby.setSourceFile(file); ruby.setSourceLine(line); result = recv.getRubyClass().call(recv, "each", null, 0); break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } ruby.getIter().pop(); ruby.getBlock().pop(); return result; }
|
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ruby.getBlock().flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject recv = getIterNode().eval(ruby, self); ArgsUtil.endCallArgs(ruby, tmpBlock); ruby.setSourceFile(file); ruby.setSourceLine(line); result = recv.getRubyClass().call(recv, "each", null, 0); break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } ruby.getIter().pop(); ruby.getBlock().pop(); return result; }
| 3,236,654
|
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ruby.getBlock().flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject recv = getIterNode().eval(ruby, self); ArgsUtil.endCallArgs(ruby, tmpBlock); ruby.setSourceFile(file); ruby.setSourceLine(line); result = recv.getRubyClass().call(recv, "each", null, 0); break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } ruby.getIter().pop(); ruby.getBlock().pop(); return result; }
|
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ruby.getBlock().flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject recv = getIterNode().eval(ruby, self); ArgsUtil.endCallArgs(ruby, tmpBlock); ruby.setSourceFile(file); ruby.setSourceLine(line); result = recv.getRubyClass().call(recv, "each", null, 0); break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } ruby.getIter().pop(); ruby.getBlock().pop(); return result; }
| 3,236,655
|
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ruby.getBlock().flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject recv = getIterNode().eval(ruby, self); ArgsUtil.endCallArgs(ruby, tmpBlock); ruby.setSourceFile(file); ruby.setSourceLine(line); result = recv.getRubyClass().call(recv, "each", null, 0); break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } ruby.getIter().pop(); ruby.getBlock().pop(); return result; }
|
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ruby.getBlock().flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject recv = getIterNode().eval(ruby, self); ArgsUtil.endCallArgs(ruby, tmpBlock); ruby.setSourceFile(file); ruby.setSourceLine(line); result = recv.getRubyClass().call(recv, "each", null, 0); break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } ruby.getIter().pop(); ruby.getBlock().pop(); return result; }
| 3,236,656
|
public LoadService() { super(); }
|
public LoadService(Ruby runtime) { super(); }
| 3,236,657
|
public void init(Ruby runtime, List additionalDirectories) { this.runtime = runtime; for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { loadPath.add(RubyString.newString(runtime, (String)iter.next())); } if (runtime.getSafeLevel() == 0) { loadPath.add(RubyString.newString(runtime, System.getProperty("jruby.lib"))); } String rubyDir = System.getProperty("jruby.home") + File.separatorChar + "lib" + File.separatorChar + "ruby" + File.separatorChar; loadPath.add(RubyString.newString(runtime, rubyDir + "site_ruby" + File.separatorChar + Constants.RUBY_MAJOR_VERSION)); loadPath.add(RubyString.newString(runtime, rubyDir + "site_ruby" + File.separatorChar + Constants.RUBY_MAJOR_VERSION + File.separatorChar + "java")); loadPath.add(RubyString.newString(runtime, rubyDir + "site_ruby")); loadPath.add(RubyString.newString(runtime, rubyDir + Constants.RUBY_MAJOR_VERSION)); loadPath.add(RubyString.newString(runtime, rubyDir + Constants.RUBY_MAJOR_VERSION + File.separatorChar + "java")); if (runtime.getSafeLevel() == 0) { loadPath.add(RubyString.newString(runtime, ".")); } }
|
public void init(Ruby runtime, List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { loadPath.add(RubyString.newString(runtime, (String)iter.next())); } if (runtime.getSafeLevel() == 0) { loadPath.add(RubyString.newString(runtime, System.getProperty("jruby.lib"))); } String rubyDir = System.getProperty("jruby.home") + File.separatorChar + "lib" + File.separatorChar + "ruby" + File.separatorChar; loadPath.add(RubyString.newString(runtime, rubyDir + "site_ruby" + File.separatorChar + Constants.RUBY_MAJOR_VERSION)); loadPath.add(RubyString.newString(runtime, rubyDir + "site_ruby" + File.separatorChar + Constants.RUBY_MAJOR_VERSION + File.separatorChar + "java")); loadPath.add(RubyString.newString(runtime, rubyDir + "site_ruby")); loadPath.add(RubyString.newString(runtime, rubyDir + Constants.RUBY_MAJOR_VERSION)); loadPath.add(RubyString.newString(runtime, rubyDir + Constants.RUBY_MAJOR_VERSION + File.separatorChar + "java")); if (runtime.getSafeLevel() == 0) { loadPath.add(RubyString.newString(runtime, ".")); } }
| 3,236,659
|
public boolean require(String file) { if (!loadedFeatures.contains(file)) { if (load(file)) { loadedFeatures.add(file); return true; } } return false; }
|
public boolean require(String file) { RubyString name = RubyString.newString(runtime, file); if (!loadedFeatures.contains(name)) { if (load(file)) { loadedFeatures.add(file); return true; } } return false; }
| 3,236,660
|
public boolean require(String file) { if (!loadedFeatures.contains(file)) { if (load(file)) { loadedFeatures.add(file); return true; } } return false; }
|
public boolean require(String file) { if (!loadedFeatures.contains(file)) { if (load(file)) { loadedFeatures.add(name); return true; } } return false; }
| 3,236,661
|
public void testUnloadedEntityFieldOnDetachedPixels() throws Exception { // PREPARE ------------------------------------------------- // TODO or bool flag? p.setAcquisitionContext(new AcquisitionContext(-1l)); _up.saveAndReturnObject(p); flush(); clear(); // TEST ------------------------------------------------- assertNotNull("should be back.", p.getAcquisitionContext()); assertTrue("and it should have a valid id.", p.getAcquisitionContext() .getId().longValue() > 0); }
|
public void testUnloadedEntityFieldOnDetachedPixels() throws Exception { // PREPARE ------------------------------------------------- // TODO or bool flag? AcquisitionContext ac = new AcquisitionContext(); ac.setId(-1l); p.setAcquisitionContext(ac); _up.saveAndReturnObject(p); flush(); clear(); // TEST ------------------------------------------------- assertNotNull("should be back.", p.getAcquisitionContext()); assertTrue("and it should have a valid id.", p.getAcquisitionContext() .getId().longValue() > 0); }
| 3,236,662
|
public RubyString findClassPath() { return null; }
|
public RubyString findClassPath() { return null; }
| 3,236,663
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getObjectClass(); } path = (RubyString)getInstanceVariables().get("__classpath__"); if (path != null) { if (getInstanceVariables().get("__classid__") != null) { path = RubyString.m_newString(getRuby(), ((RubyId)getInstanceVariables().get("__classid__")).toName()); // todo: convert from symbol to string getInstanceVariables().put("__classpath__", path); getInstanceVariables().remove("__classid__"); } } if (path == null) { path = rbModule.findClassPath(); /* if (path.isNil()) { return null; }*/ return path; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getObjectClass(); } path = (RubyString)getInstanceVariables().get("__classpath__"); if (path == null) { if (getInstanceVariables().get("__classid__") != null) { path = RubyString.m_newString(getRuby(), ((RubyId)getInstanceVariables().get("__classid__")).toName()); // todo: convert from symbol to string getInstanceVariables().put("__classpath__", path); getInstanceVariables().remove("__classid__"); } } if (path == null) { path = rbModule.findClassPath(); /* if (path.isNil()) { return null; }*/ return path; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,236,664
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getObjectClass(); } path = (RubyString)getInstanceVariables().get("__classpath__"); if (path != null) { if (getInstanceVariables().get("__classid__") != null) { path = RubyString.m_newString(getRuby(), ((RubyId)getInstanceVariables().get("__classid__")).toName()); // todo: convert from symbol to string getInstanceVariables().put("__classpath__", path); getInstanceVariables().remove("__classid__"); } } if (path == null) { path = rbModule.findClassPath(); /* if (path.isNil()) { return null; }*/ return path; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getObjectClass(); } path = (RubyString)getInstanceVariables().get("__classpath__"); if (path != null) { if (getInstanceVariables().get("__classid__") != null) { path = RubyString.m_newString(getRuby(), ((RubyId)getInstanceVariables().get("__classid__")).toName()); // todo: convert from symbol to string getInstanceVariables().put("__classpath__", path); getInstanceVariables().remove("__classid__"); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); /* if (path.isNil()) { return null; }*/ return path; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,236,665
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getObjectClass(); } path = (RubyString)getInstanceVariables().get("__classpath__"); if (path != null) { if (getInstanceVariables().get("__classid__") != null) { path = RubyString.m_newString(getRuby(), ((RubyId)getInstanceVariables().get("__classid__")).toName()); // todo: convert from symbol to string getInstanceVariables().put("__classpath__", path); getInstanceVariables().remove("__classid__"); } } if (path == null) { path = rbModule.findClassPath(); /* if (path.isNil()) { return null; }*/ return path; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getObjectClass(); } path = (RubyString)getInstanceVariables().get("__classpath__"); if (path != null) { if (getInstanceVariables().get("__classid__") != null) { path = RubyString.m_newString(getRuby(), ((RubyId)getInstanceVariables().get("__classid__")).toName()); // todo: convert from symbol to string getInstanceVariables().put("__classpath__", path); getInstanceVariables().remove("__classid__"); } } if (path == null) { path = rbModule.findClassPath(); if (tmp.isNil()) { return null; }*/ return path; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,236,666
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getObjectClass(); } path = (RubyString)getInstanceVariables().get("__classpath__"); if (path != null) { if (getInstanceVariables().get("__classid__") != null) { path = RubyString.m_newString(getRuby(), ((RubyId)getInstanceVariables().get("__classid__")).toName()); // todo: convert from symbol to string getInstanceVariables().put("__classpath__", path); getInstanceVariables().remove("__classid__"); } } if (path == null) { path = rbModule.findClassPath(); /* if (path.isNil()) { return null; }*/ return path; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getObjectClass(); } path = (RubyString)getInstanceVariables().get("__classpath__"); if (path != null) { if (getInstanceVariables().get("__classid__") != null) { path = RubyString.m_newString(getRuby(), ((RubyId)getInstanceVariables().get("__classid__")).toName()); // todo: convert from symbol to string getInstanceVariables().put("__classpath__", path); getInstanceVariables().remove("__classid__"); } } if (path == null) { path = rbModule.findClassPath(); /* if (path.isNil()) { return null; } return path; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); } return path; }
| 3,236,667
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getObjectClass(); } path = (RubyString)getInstanceVariables().get("__classpath__"); if (path != null) { if (getInstanceVariables().get("__classid__") != null) { path = RubyString.m_newString(getRuby(), ((RubyId)getInstanceVariables().get("__classid__")).toName()); // todo: convert from symbol to string getInstanceVariables().put("__classpath__", path); getInstanceVariables().remove("__classid__"); } } if (path == null) { path = rbModule.findClassPath(); /* if (path.isNil()) { return null; }*/ return path; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getObjectClass(); } path = (RubyString)getInstanceVariables().get("__classpath__"); if (path != null) { if (getInstanceVariables().get("__classid__") != null) { path = RubyString.m_newString(getRuby(), ((RubyId)getInstanceVariables().get("__classid__")).toName()); // todo: convert from symbol to string getInstanceVariables().put("__classpath__", path); getInstanceVariables().remove("__classid__"); } } if (path == null) { path = rbModule.findClassPath(); /* if (path.isNil()) { return null; }*/ return (RubyString)tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return (RubyString)tmp; }
| 3,236,668
|
public static PiccoloAction getZoomTo200Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_200_MODE); } }; return action; };
|
public static PiccoloAction getZoomTo200Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_200_MODE); } }; return action; };
| 3,236,669
|
public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_200_MODE); }
|
public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_200_MODE); }
| 3,236,670
|
public static PiccoloAction getZoomTo50Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_50_MODE); } }; return action; };
|
public static PiccoloAction getZoomTo50Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_50_MODE); } }; return action; };
| 3,236,671
|
public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_50_MODE); }
|
public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_50_MODE); }
| 3,236,672
|
public static PiccoloAction getZoomTo75Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_75_MODE); } }; return action; };
|
public static PiccoloAction getZoomTo75Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_75_MODE); } }; return action; };
| 3,236,673
|
public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_75_MODE); }
|
public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_75_MODE); }
| 3,236,675
|
public static PiccoloAction getZoomToActualAction(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_ACTUAL_MODE); } }; return action; };
|
public static PiccoloAction getZoomToActualAction(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_ACTUAL_MODE); } }; return action; };
| 3,236,677
|
public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_ACTUAL_MODE); }
|
public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_ACTUAL_MODE); }
| 3,236,678
|
public static PiccoloAction getZoomToFitAction(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_TO_FIT_MODE); } }; return action; };
|
public static PiccoloAction getZoomToFitAction(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_TO_FIT_MODE); } }; return action; };
| 3,236,679
|
public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_TO_FIT_MODE); }
|
public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_TO_FIT_MODE); }
| 3,236,680
|
public String getUserNicknameFromJID(String jid) { ContactList contactList = SparkManager.getWorkspace().getContactList(); ContactItem item = contactList.getContactItemByJID(jid); if (item != null) { return item.getNickname(); } return null; }
|
public String getUserNicknameFromJID(String jid) { ContactList contactList = SparkManager.getWorkspace().getContactList(); ContactItem item = contactList.getContactItemByJID(jid); if (item != null) { return item.getNickname(); } return jid; }
| 3,236,681
|
public final Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Broker broker = bc.getBroker(); // build configuration key names, since they're based // on the configured name of this directive _directiveName = builder.getName(); TEMPLATE_EXTENSIONS_NAME = _directiveName + TEMPLATE_EXTENSIONS_NAME; // determine what type of file we need to deal with if (builder.getArg(PARSE_TEXT_K, bc) != null) { _type = TYPE_TEXT; } else if (builder.getArg(PARSE_TEMPLATE_K, bc) != null) { _type = TYPE_TEMPLATE; } else if (builder.getArg(PARSE_MACRO_K, bc) != null) { _type = TYPE_MACRO; } else { _type = TYPE_DYNAMIC; } // if the filename passed to us was a Macro (needs to be evaluated later) // then store it as _macFilename. Otherwise, assume it's a String // and we'll just use that string as the filename Object o = builder.getArg(PARSE_FILENAME, bc); if (o instanceof Macro) { if (_type == TYPE_TEXT || _type == TYPE_MACRO) { broker.getLog("IncludeDirective") .warning("Included a 'static' file type using a dynamic filename." + "File will be included, but any included #macro's will not."); } _macFilename = (Macro) o; } else { _strFilename = o.toString(); if (_strFilename == null || _strFilename.length() == 0) throw makeBuildException("Filename cannot be null or empty"); if (_type == TYPE_TEXT) { // we're a static type, need to // include the file (by returning it) now, // during build time try { return getThingToInclude(broker, _type, _strFilename); } catch (Exception e) { throw makeBuildException("Unable to include as text", e); } } else if (_type == TYPE_MACRO) { // we're a template type. ned to get the template (already parsed) // and merge its macros into our build context. // then we return the template so its contents can also be included Template t = null; try { t = getTemplate(broker, _strFilename); bc.mergeConstants(t); } catch (Exception e) { throw makeBuildException("Unable to include as macro", e); } return t; } else if (_type == TYPE_DYNAMIC) { // being dynamic means we need to guess the // file type based on the file's extension // and take care of finding the file during runtime _type = guessType(broker, _strFilename); } } // we are configured to be lazy, or we couldn't determine the filename // during the build() process (b/c it is a Macro) return this; }
|
_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); public_log = bc.getLog("IncludeDirective"); final_log = bc.getLog("IncludeDirective"); Object_log = bc.getLog("IncludeDirective"); build(DirectiveBuilder_log = bc.getLog("IncludeDirective"); builder,_log = bc.getLog("IncludeDirective"); BuildContext_log = bc.getLog("IncludeDirective"); bc)_log = bc.getLog("IncludeDirective"); throws_log = bc.getLog("IncludeDirective"); BuildException_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); Broker_log = bc.getLog("IncludeDirective"); broker_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); bc.getBroker();_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); build_log = bc.getLog("IncludeDirective"); configuration_log = bc.getLog("IncludeDirective"); key_log = bc.getLog("IncludeDirective"); names,_log = bc.getLog("IncludeDirective"); since_log = bc.getLog("IncludeDirective"); they're_log = bc.getLog("IncludeDirective"); based_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); on_log = bc.getLog("IncludeDirective"); the_log = bc.getLog("IncludeDirective"); configured_log = bc.getLog("IncludeDirective"); name_log = bc.getLog("IncludeDirective"); of_log = bc.getLog("IncludeDirective"); this_log = bc.getLog("IncludeDirective"); directive_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _directiveName_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); builder.getName();_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); TEMPLATE_EXTENSIONS_NAME_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); _directiveName_log = bc.getLog("IncludeDirective"); +_log = bc.getLog("IncludeDirective"); TEMPLATE_EXTENSIONS_NAME;_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); determine_log = bc.getLog("IncludeDirective"); what_log = bc.getLog("IncludeDirective"); type_log = bc.getLog("IncludeDirective"); of_log = bc.getLog("IncludeDirective"); file_log = bc.getLog("IncludeDirective"); we_log = bc.getLog("IncludeDirective"); need_log = bc.getLog("IncludeDirective"); to_log = bc.getLog("IncludeDirective"); deal_log = bc.getLog("IncludeDirective"); with_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); if_log = bc.getLog("IncludeDirective"); (builder.getArg(PARSE_TEXT_K,_log = bc.getLog("IncludeDirective"); bc)_log = bc.getLog("IncludeDirective"); !=_log = bc.getLog("IncludeDirective"); null)_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _type_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); TYPE_TEXT;_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); else_log = bc.getLog("IncludeDirective"); if_log = bc.getLog("IncludeDirective"); (builder.getArg(PARSE_TEMPLATE_K,_log = bc.getLog("IncludeDirective"); bc)_log = bc.getLog("IncludeDirective"); !=_log = bc.getLog("IncludeDirective"); null)_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _type_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); TYPE_TEMPLATE;_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); else_log = bc.getLog("IncludeDirective"); if_log = bc.getLog("IncludeDirective"); (builder.getArg(PARSE_MACRO_K,_log = bc.getLog("IncludeDirective"); bc)_log = bc.getLog("IncludeDirective"); !=_log = bc.getLog("IncludeDirective"); null)_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _type_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); TYPE_MACRO;_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); else_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _type_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); TYPE_DYNAMIC;_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); if_log = bc.getLog("IncludeDirective"); the_log = bc.getLog("IncludeDirective"); filename_log = bc.getLog("IncludeDirective"); passed_log = bc.getLog("IncludeDirective"); to_log = bc.getLog("IncludeDirective"); us_log = bc.getLog("IncludeDirective"); was_log = bc.getLog("IncludeDirective"); a_log = bc.getLog("IncludeDirective"); Macro_log = bc.getLog("IncludeDirective"); (needs_log = bc.getLog("IncludeDirective"); to_log = bc.getLog("IncludeDirective"); be_log = bc.getLog("IncludeDirective"); evaluated_log = bc.getLog("IncludeDirective"); later)_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); then_log = bc.getLog("IncludeDirective"); store_log = bc.getLog("IncludeDirective"); it_log = bc.getLog("IncludeDirective"); as_log = bc.getLog("IncludeDirective"); _macFilename._log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); Otherwise,_log = bc.getLog("IncludeDirective"); assume_log = bc.getLog("IncludeDirective"); it's_log = bc.getLog("IncludeDirective"); a_log = bc.getLog("IncludeDirective"); String_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); and_log = bc.getLog("IncludeDirective"); we'll_log = bc.getLog("IncludeDirective"); just_log = bc.getLog("IncludeDirective"); use_log = bc.getLog("IncludeDirective"); that_log = bc.getLog("IncludeDirective"); string_log = bc.getLog("IncludeDirective"); as_log = bc.getLog("IncludeDirective"); the_log = bc.getLog("IncludeDirective"); filename_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); Object_log = bc.getLog("IncludeDirective"); o_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); builder.getArg(PARSE_FILENAME,_log = bc.getLog("IncludeDirective"); bc);_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); if_log = bc.getLog("IncludeDirective"); (o_log = bc.getLog("IncludeDirective"); instanceof_log = bc.getLog("IncludeDirective"); Macro)_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); if_log = bc.getLog("IncludeDirective"); (_type_log = bc.getLog("IncludeDirective"); ==_log = bc.getLog("IncludeDirective"); TYPE_TEXT_log = bc.getLog("IncludeDirective"); ||_log = bc.getLog("IncludeDirective"); _type_log = bc.getLog("IncludeDirective"); ==_log = bc.getLog("IncludeDirective"); TYPE_MACRO)_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); broker.getLog("IncludeDirective")_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); .warning("Included_log = bc.getLog("IncludeDirective"); a_log = bc.getLog("IncludeDirective"); 'static'_log = bc.getLog("IncludeDirective"); file_log = bc.getLog("IncludeDirective"); type_log = bc.getLog("IncludeDirective"); using_log = bc.getLog("IncludeDirective"); a_log = bc.getLog("IncludeDirective"); dynamic_log = bc.getLog("IncludeDirective"); filename."_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); +_log = bc.getLog("IncludeDirective"); "File_log = bc.getLog("IncludeDirective"); will_log = bc.getLog("IncludeDirective"); be_log = bc.getLog("IncludeDirective"); included,_log = bc.getLog("IncludeDirective"); but_log = bc.getLog("IncludeDirective"); any_log = bc.getLog("IncludeDirective"); included_log = bc.getLog("IncludeDirective"); #macro's_log = bc.getLog("IncludeDirective"); will_log = bc.getLog("IncludeDirective"); not.");_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _macFilename_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); (Macro)_log = bc.getLog("IncludeDirective"); o;_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); else_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _strFilename_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); o.toString();_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); if_log = bc.getLog("IncludeDirective"); (_strFilename_log = bc.getLog("IncludeDirective"); ==_log = bc.getLog("IncludeDirective"); null_log = bc.getLog("IncludeDirective"); ||_log = bc.getLog("IncludeDirective"); _strFilename.length()_log = bc.getLog("IncludeDirective"); ==_log = bc.getLog("IncludeDirective"); 0)_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); throw_log = bc.getLog("IncludeDirective"); makeBuildException("Filename_log = bc.getLog("IncludeDirective"); cannot_log = bc.getLog("IncludeDirective"); be_log = bc.getLog("IncludeDirective"); null_log = bc.getLog("IncludeDirective"); or_log = bc.getLog("IncludeDirective"); empty");_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); if_log = bc.getLog("IncludeDirective"); (_type_log = bc.getLog("IncludeDirective"); ==_log = bc.getLog("IncludeDirective"); TYPE_TEXT)_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); we're_log = bc.getLog("IncludeDirective"); a_log = bc.getLog("IncludeDirective"); static_log = bc.getLog("IncludeDirective"); type,_log = bc.getLog("IncludeDirective"); need_log = bc.getLog("IncludeDirective"); to_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); include_log = bc.getLog("IncludeDirective"); the_log = bc.getLog("IncludeDirective"); file_log = bc.getLog("IncludeDirective"); (by_log = bc.getLog("IncludeDirective"); returning_log = bc.getLog("IncludeDirective"); it)_log = bc.getLog("IncludeDirective"); now,_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); during_log = bc.getLog("IncludeDirective"); build_log = bc.getLog("IncludeDirective"); time_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); try_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); return_log = bc.getLog("IncludeDirective"); getThingToInclude(broker,_log = bc.getLog("IncludeDirective"); _type,_log = bc.getLog("IncludeDirective"); _strFilename);_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); catch_log = bc.getLog("IncludeDirective"); (Exception_log = bc.getLog("IncludeDirective"); e)_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); throw_log = bc.getLog("IncludeDirective"); makeBuildException("Unable_log = bc.getLog("IncludeDirective"); to_log = bc.getLog("IncludeDirective"); include_log = bc.getLog("IncludeDirective"); as_log = bc.getLog("IncludeDirective"); text",_log = bc.getLog("IncludeDirective"); e);_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); else_log = bc.getLog("IncludeDirective"); if_log = bc.getLog("IncludeDirective"); (_type_log = bc.getLog("IncludeDirective"); ==_log = bc.getLog("IncludeDirective"); TYPE_MACRO)_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); we're_log = bc.getLog("IncludeDirective"); a_log = bc.getLog("IncludeDirective"); template_log = bc.getLog("IncludeDirective"); type._log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); ned_log = bc.getLog("IncludeDirective"); to_log = bc.getLog("IncludeDirective"); get_log = bc.getLog("IncludeDirective"); the_log = bc.getLog("IncludeDirective"); template_log = bc.getLog("IncludeDirective"); (already_log = bc.getLog("IncludeDirective"); parsed)_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); and_log = bc.getLog("IncludeDirective"); merge_log = bc.getLog("IncludeDirective"); its_log = bc.getLog("IncludeDirective"); macros_log = bc.getLog("IncludeDirective"); into_log = bc.getLog("IncludeDirective"); our_log = bc.getLog("IncludeDirective"); build_log = bc.getLog("IncludeDirective"); context._log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); then_log = bc.getLog("IncludeDirective"); we_log = bc.getLog("IncludeDirective"); return_log = bc.getLog("IncludeDirective"); the_log = bc.getLog("IncludeDirective"); template_log = bc.getLog("IncludeDirective"); so_log = bc.getLog("IncludeDirective"); its_log = bc.getLog("IncludeDirective"); contents_log = bc.getLog("IncludeDirective"); can_log = bc.getLog("IncludeDirective"); also_log = bc.getLog("IncludeDirective"); be_log = bc.getLog("IncludeDirective"); included_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); Template_log = bc.getLog("IncludeDirective"); t_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); null;_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); try_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); t_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); getTemplate(broker,_log = bc.getLog("IncludeDirective"); _strFilename);_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); bc.mergeConstants(t);_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); catch_log = bc.getLog("IncludeDirective"); (Exception_log = bc.getLog("IncludeDirective"); e)_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); throw_log = bc.getLog("IncludeDirective"); makeBuildException("Unable_log = bc.getLog("IncludeDirective"); to_log = bc.getLog("IncludeDirective"); include_log = bc.getLog("IncludeDirective"); as_log = bc.getLog("IncludeDirective"); macro",_log = bc.getLog("IncludeDirective"); e);_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); return_log = bc.getLog("IncludeDirective"); t;_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); else_log = bc.getLog("IncludeDirective"); if_log = bc.getLog("IncludeDirective"); (_type_log = bc.getLog("IncludeDirective"); ==_log = bc.getLog("IncludeDirective"); TYPE_DYNAMIC)_log = bc.getLog("IncludeDirective"); {_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); being_log = bc.getLog("IncludeDirective"); dynamic_log = bc.getLog("IncludeDirective"); means_log = bc.getLog("IncludeDirective"); we_log = bc.getLog("IncludeDirective"); need_log = bc.getLog("IncludeDirective"); to_log = bc.getLog("IncludeDirective"); guess_log = bc.getLog("IncludeDirective"); the_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); file_log = bc.getLog("IncludeDirective"); type_log = bc.getLog("IncludeDirective"); based_log = bc.getLog("IncludeDirective"); on_log = bc.getLog("IncludeDirective"); the_log = bc.getLog("IncludeDirective"); file's_log = bc.getLog("IncludeDirective"); extension_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); and_log = bc.getLog("IncludeDirective"); take_log = bc.getLog("IncludeDirective"); care_log = bc.getLog("IncludeDirective"); of_log = bc.getLog("IncludeDirective"); finding_log = bc.getLog("IncludeDirective"); the_log = bc.getLog("IncludeDirective"); file_log = bc.getLog("IncludeDirective"); during_log = bc.getLog("IncludeDirective"); runtime_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _type_log = bc.getLog("IncludeDirective"); =_log = bc.getLog("IncludeDirective"); guessType(broker,_log = bc.getLog("IncludeDirective"); _strFilename);_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); we_log = bc.getLog("IncludeDirective"); are_log = bc.getLog("IncludeDirective"); configured_log = bc.getLog("IncludeDirective"); to_log = bc.getLog("IncludeDirective"); be_log = bc.getLog("IncludeDirective"); lazy,_log = bc.getLog("IncludeDirective"); or_log = bc.getLog("IncludeDirective"); we_log = bc.getLog("IncludeDirective"); couldn't_log = bc.getLog("IncludeDirective"); determine_log = bc.getLog("IncludeDirective"); the_log = bc.getLog("IncludeDirective"); filename_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); //_log = bc.getLog("IncludeDirective"); during_log = bc.getLog("IncludeDirective"); the_log = bc.getLog("IncludeDirective"); build()_log = bc.getLog("IncludeDirective"); process_log = bc.getLog("IncludeDirective"); (b/c_log = bc.getLog("IncludeDirective"); it_log = bc.getLog("IncludeDirective"); is_log = bc.getLog("IncludeDirective"); a_log = bc.getLog("IncludeDirective"); Macro)_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); return_log = bc.getLog("IncludeDirective"); this;_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); }
| 3,236,682
|
public void write(FastWriter out, Context context) throws PropertyException, IOException { Broker broker = context.getBroker(); // the filename arg passed to us was a Macro, so // evaluate and check it now if (_macFilename != null) { _strFilename = _macFilename.evaluate(context).toString(); if (_strFilename == null || _strFilename.length() == 0) { throw makePropertyException("Filename cannot be null or empty"); } } // make sure we're not trying to include ourself. // maybe there is a better way to handle this? if (context.getCurrentLocation().indexOf(_strFilename) > -1) { String warning = context.getCurrentLocation() + " includes itself."; writeWarning(warning, context, out); } // this should only be true if StrictCompatibility is set to false // and "as <something>" wasn't specified in the arg list if (_type == TYPE_DYNAMIC) _type = guessType(broker, _strFilename); Object toInclude = getThingToInclude(broker, _type, _strFilename); switch (_type) { case TYPE_MACRO: // during runtime evaluation of a template, // a TYPE_MACRO doesn't really work as expected. // we logged a warning above in build(), but // we still need to write it out as a template // so just fall through case TYPE_TEMPLATE: ((Template) toInclude).write(out, context); break; case TYPE_TEXT: // static types are strings out.write(toInclude.toString()); break; default: // should never happen throw makePropertyException("Unrecognized file type: " + _type); } }
|
public void write(FastWriter out, Context context) throws PropertyException, IOException { Broker broker = context.getBroker(); // the filename arg passed to us was a Macro, so // evaluate and check it now if (_macFilename != null) { _strFilename = _macFilename.evaluate(context).toString(); if (_strFilename == null || _strFilename.length() == 0) { throw makePropertyException("Filename cannot be null or empty"); } } // make sure we're not trying to include ourself. // maybe there is a better way to handle this? if (context.getCurrentLocation().indexOf(_strFilename) > -1) { String warning = context.getCurrentLocation() + " includes itself."; writeWarning(warning, context, out); } // this should only be true if StrictCompatibility is set to false // and "as <something>" wasn't specified in the arg list if (_type == TYPE_DYNAMIC) _type = guessType(broker, _strFilename); Object toInclude = getThingToInclude(broker, _type, _strFilename); switch (_type) { case TYPE_MACRO: // during runtime evaluation of a template, // a TYPE_MACRO doesn't really work as expected. // we logged a warning above in build(), but // we still need to write it out as a template // so just fall through case TYPE_TEMPLATE: ((Template) toInclude).write(out, context); break; case TYPE_TEXT: // static types are strings out.write(toInclude.toString()); break; default: // should never happen throw makePropertyException("Unrecognized file type: " + _type); } }
| 3,236,683
|
private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.getText(" ")); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "categories_for_this_article"), WFUtil.getText(":"))); WFContainer c = new WFContainer(); HtmlSelectManyListbox availableCategories = WFUtil.getSelectManyListbox(AVAILABLE_CATEGORIES_ID, ref + "availableCategories", ref + "selectedAvailableCategories"); availableCategories.setStyle("width:200px;height:160px;"); availableCategories.setConverter(new IntegerConverter()); c.add(availableCategories); c.add(WFUtil.getBreak(2)); c.add(WFUtil.getButtonVB(CATEGORY_BACK_ID, bref + "back", this)); p.getChildren().add(c); c = new WFContainer(); c.add(WFUtil.getBreak()); c.add(WFUtil.getButton(ADD_CATEGORIES_ID, ">", this)); c.add(WFUtil.getBreak(2)); c.add(WFUtil.getButton(SUB_CATEGORIES_ID, "<", this)); p.getChildren().add(c); HtmlSelectManyListbox articleCategories = WFUtil.getSelectManyListbox(ARTICLE_CATEGORIES_ID, ref + "categories", ref + "selectedCategories"); articleCategories.setStyle("width:200px;height:160px;"); articleCategories.setConverter(new IntegerConverter()); p.getChildren().add(articleCategories); return p; }
|
private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.getText(" ")); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "categories_for_this_article"), WFUtil.getText(":"))); WFContainer c = new WFContainer(); HtmlSelectManyListbox availableCategories = WFUtil.getSelectManyListbox(AVAILABLE_CATEGORIES_ID, ref + "availableCategories", ref + "selectedAvailableCategories"); availableCategories.setStyle("width:200px;height:160px;"); availableCategories.setConverter(new IntegerConverter()); c.add(availableCategories); c.add(WFUtil.getBreak(2)); c.add(WFUtil.getButtonVB(CATEGORY_BACK_ID, bref + "back", this)); p.getChildren().add(c); c = new WFContainer(); c.add(WFUtil.getBreak()); c.add(WFUtil.getButton(ADD_CATEGORIES_ID, ">", this)); c.add(WFUtil.getBreak(2)); c.add(WFUtil.getButton(SUB_CATEGORIES_ID, "<", this)); p.getChildren().add(c); HtmlSelectManyListbox articleCategories = WFUtil.getSelectManyListbox(ARTICLE_CATEGORIES_ID, ref + "categories", ref + "selectedCategories"); articleCategories.setStyle("width:200px;height:160px;"); articleCategories.setConverter(new IntegerConverter()); p.getChildren().add(articleCategories); return p; }
| 3,236,685
|
private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.getText(" ")); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "categories_for_this_article"), WFUtil.getText(":"))); WFContainer c = new WFContainer(); HtmlSelectManyListbox availableCategories = WFUtil.getSelectManyListbox(AVAILABLE_CATEGORIES_ID, ref + "availableCategories", ref + "selectedAvailableCategories"); availableCategories.setStyle("width:200px;height:160px;"); availableCategories.setConverter(new IntegerConverter()); c.add(availableCategories); c.add(WFUtil.getBreak(2)); c.add(WFUtil.getButtonVB(CATEGORY_BACK_ID, bref + "back", this)); p.getChildren().add(c); c = new WFContainer(); c.add(WFUtil.getBreak()); c.add(WFUtil.getButton(ADD_CATEGORIES_ID, ">", this)); c.add(WFUtil.getBreak(2)); c.add(WFUtil.getButton(SUB_CATEGORIES_ID, "<", this)); p.getChildren().add(c); HtmlSelectManyListbox articleCategories = WFUtil.getSelectManyListbox(ARTICLE_CATEGORIES_ID, ref + "categories", ref + "selectedCategories"); articleCategories.setStyle("width:200px;height:160px;"); articleCategories.setConverter(new IntegerConverter()); p.getChildren().add(articleCategories); return p; }
|
private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.getText(" ")); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "categories_for_this_article"), WFUtil.getText(":"))); WFContainer c = new WFContainer(); HtmlSelectManyListbox availableCategories = WFUtil.getSelectManyListbox(AVAILABLE_CATEGORIES_ID, ref + "availableCategories", ref + "selectedAvailableCategories"); availableCategories.setStyle("width:200px;height:160px;"); availableCategories.setConverter(new IntegerConverter()); c.add(availableCategories); c.add(WFUtil.getBreak(2)); c.add(WFUtil.getButtonVB(CATEGORY_BACK_ID, bref + "back", this)); p.getChildren().add(c); c = new WFContainer(); c.add(WFUtil.getBreak()); c.add(WFUtil.getButton(ADD_CATEGORIES_ID, ">", this)); c.add(WFUtil.getBreak(2)); c.add(WFUtil.getButton(SUB_CATEGORIES_ID, "<", this)); p.getChildren().add(c); HtmlSelectManyListbox articleCategories = WFUtil.getSelectManyListbox(ARTICLE_CATEGORIES_ID, ref + "categories", ref + "selectedCategories"); articleCategories.setStyle("width:200px;height:160px;"); articleCategories.setConverter(new IntegerConverter()); p.getChildren().add(articleCategories); return p; }
| 3,236,686
|
public void onSelectedDisplay() { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } int editor = model.getEditorType(); if (editor != TreeViewer.CREATE_EDITOR) { removeEditor(); PropertiesCmd cmd = new PropertiesCmd(this); cmd.execute(); } else { Browser browser = model.getSelectedBrowser(); if (browser != null) { TreeImageDisplay d = browser.getLastSelectedDisplay(); if (d != null && (d.getUserObject() instanceof ImageData)) { int index = EditorFactory.getEditorSelectedPane(); if (index == Editor.INFO_INDEX) EditorFactory.setEditorSelectedPane( Editor.PROPERTIES_INDEX); } } removeEditor(); } }
|
public void onSelectedDisplay() { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } int editor = model.getEditorType(); if (editor != TreeViewer.CREATE_EDITOR) { PropertiesCmd cmd = new PropertiesCmd(this); cmd.execute(); } else { Browser browser = model.getSelectedBrowser(); if (browser != null) { TreeImageDisplay d = browser.getLastSelectedDisplay(); if (d != null && (d.getUserObject() instanceof ImageData)) { int index = EditorFactory.getEditorSelectedPane(); if (index == Editor.INFO_INDEX) EditorFactory.setEditorSelectedPane( Editor.PROPERTIES_INDEX); } } } }
| 3,236,687
|
public void onSelectedDisplay() { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } int editor = model.getEditorType(); if (editor != TreeViewer.CREATE_EDITOR) { removeEditor(); PropertiesCmd cmd = new PropertiesCmd(this); cmd.execute(); } else { Browser browser = model.getSelectedBrowser(); if (browser != null) { TreeImageDisplay d = browser.getLastSelectedDisplay(); if (d != null && (d.getUserObject() instanceof ImageData)) { int index = EditorFactory.getEditorSelectedPane(); if (index == Editor.INFO_INDEX) EditorFactory.setEditorSelectedPane( Editor.PROPERTIES_INDEX); } } removeEditor(); } }
|
public void onSelectedDisplay() { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } int editor = model.getEditorType(); if (editor != TreeViewer.CREATE_EDITOR) { removeEditor(); PropertiesCmd cmd = new PropertiesCmd(this); cmd.execute(); } else { Browser browser = model.getSelectedBrowser(); if (browser != null) { TreeImageDisplay d = browser.getLastSelectedDisplay(); if (d != null && (d.getUserObject() instanceof ImageData)) { int index = EditorFactory.getEditorSelectedPane(); if (index == Editor.INFO_INDEX) EditorFactory.setEditorSelectedPane( Editor.PROPERTIES_INDEX); } } removeEditor(); } }
| 3,236,688
|
public void removeEditor() { switch (model.getState()) { case DISCARDED: //case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } /* Editor editor = model.getEditor(); if (editor != null) { if (editor.hasDataToSave()) { IconManager icons = IconManager.getInstance(); EditorSaverDialog d = new EditorSaverDialog(view, icons.getIcon(IconManager.QUESTION)); d.addPropertyChangeListener( EditorSaverDialog.SAVING_DATA_EDITOR_PROPERTY, controller); UIUtilities.centerAndShow(d); return; } } */ if (editorDialog != null) editorDialog.close(); model.setEditorType(NO_EDITOR); view.removeAllFromWorkingPane(); firePropertyChange(REMOVE_EDITOR_PROPERTY, Boolean.FALSE, Boolean.TRUE); }
|
public void removeEditor() { switch (model.getState()) { case DISCARDED: //case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } /* Editor editor = model.getEditor(); if (editor != null) { if (editor.hasDataToSave()) { IconManager icons = IconManager.getInstance(); EditorSaverDialog d = new EditorSaverDialog(view, icons.getIcon(IconManager.QUESTION)); d.addPropertyChangeListener( EditorSaverDialog.SAVING_DATA_EDITOR_PROPERTY, controller); UIUtilities.centerAndShow(d); return; } } */ if (editorDialog != null) editorDialog.close(); model.setEditorType(NO_EDITOR); view.removeAllFromWorkingPane(); firePropertyChange(REMOVE_EDITOR_PROPERTY, Boolean.FALSE, Boolean.TRUE); }
| 3,236,689
|
public void closeActiveRoom() { ChatRoom room = null; try { room = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { // AgentLog.logError("Chat room not found", e1); } // Confirm end session boolean isGroupChat = room.getChatType() == Message.Type.GROUP_CHAT; if (isGroupChat) { String message = "Would you like to end this session?"; final int ok = JOptionPane.showConfirmDialog(chatFrame, message, "Confirmation", JOptionPane.YES_NO_OPTION); if (ok == JOptionPane.OK_OPTION) { room.closeChatRoom(); return; } } else { room.closeChatRoom(); return; } }
|
public void closeActiveRoom() { ChatRoom room = null; try { room = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { // AgentLog.logError("Chat room not found", e1); } // Confirm end session boolean isGroupChat = room.getChatType() == Message.Type.GROUP_CHAT; if (isGroupChat) { String message = "Would you like to end this session?"; final int ok = JOptionPane.showConfirmDialog(chatFrame, message, "Confirmation", JOptionPane.YES_NO_OPTION); if (ok == JOptionPane.OK_OPTION) { room.closeChatRoom(); return; } } else { room.closeChatRoom(); return; } }
| 3,236,690
|
public void useTabDefault(final ChatRoom room) { // Check if room is stale boolean containsRoom = getStaleChatRooms().contains(room); if (containsRoom) { return; } final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); Font defaultFont = tab.getDefaultFont(); final JLabel titleLabel = tab.getTitleLabel(); if (room instanceof ChatRoomImpl) { Icon icon = room.getTabIcon(); tab.setIcon(icon); } titleLabel.setForeground(Color.black); titleLabel.setFont(defaultFont); } }
|
public void useTabDefault(final ChatRoom room) { // Check if room is stale boolean containsRoom = getStaleChatRooms().contains(room); if (containsRoom) { return; } final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); Font defaultFont = tab.getDefaultFont(); final JLabel titleLabel = tab.getTitleLabel(); if (room instanceof ChatRoomImpl) { final ChatRoomImpl chatRoomImpl = (ChatRoomImpl)room; Presence presence = chatRoomImpl.getPresence(); Icon icon = SparkManager.getUserManager().getIconFromPresence(presence); tab.setIcon(icon); } titleLabel.setForeground(Color.black); titleLabel.setFont(defaultFont); } }
| 3,236,691
|
private void buildPresentation(String imageName) { control = new RenderingAgtCtrl(this); presentation = new RenderingAgtUIF(control, registry, imageName); control.setPresentation(presentation); }
|
private void buildPresentation(String imageName) { control = new RenderingAgtCtrl(this); presentation = new RenderingAgtUIF(control, registry, imageName); control.setPresentation(presentation); }
| 3,236,692
|
private void defaultInitChannelData() { for (int i = 0; i < pxsDims.sizeW; i++) channelData[i] = new ChannelData(i, i, i, "Wavelenth "+i, i, null); canUpdate = false; }
|
private void defaultInitChannelData() { for (int i = 0; i < pxsDims.sizeW; i++) channelData[i] = new ChannelData(i, i, i, "Wavelenth "+i, i, null); canUpdate = false; }
| 3,236,693
|
public void eventFired(AgentEvent e) { if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof DisplayRendering) presentation.deIconify(); }
|
public void eventFired(AgentEvent e) { if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof DisplayRendering) presentation.deIconify(); }
| 3,236,694
|
private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); pxsDims = renderingControl.getPixelsDims(); pxsStats = renderingControl.getPixelsStats(); curImageID = request.getImageID(); curPixelsID = request.getPixelsID(); initChannelData(); if (presentation != null) removePresentation(); buildPresentation(request.getImageName()); }
|
private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); pxsDims = renderingControl.getPixelsDims(); pxsStats = renderingControl.getPixelsStats(); curImageID = request.getImageID(); curPixelsID = request.getPixelsID(); initChannelData(); if (presentation != null) removePresentation(); buildPresentation(request.getImageName()); }
| 3,236,695
|
void initChannelData() { try { DataManagementService ds = registry.getDataManagementService(); channelData = ds.getChannelData(curImageID); if (channelData == null) defaultInitChannelData(); else { if (channelData.length != pxsDims.sizeW) defaultInitChannelData(); } } catch(DSAccessException dsae) { String s = "Can't retrieve the channel data for "+curImageID+"."; registry.getLogger().error(this, s+" Error: "+dsae); registry.getUserNotifier().notifyError("Data Retrieval Failure", s, dsae); defaultInitChannelData(); } catch(DSOutOfServiceException dsose) { ServiceActivationRequest request = new ServiceActivationRequest( ServiceActivationRequest.DATA_SERVICES); registry.getEventBus().post(request); defaultInitChannelData(); } }
|
void initChannelData() { try { DataManagementService ds = registry.getDataManagementService(); channelData = ds.getChannelData(curImageID); if (channelData == null) defaultInitChannelData(); else { if (channelData.length != pxsDims.sizeW) defaultInitChannelData(); } } catch(DSAccessException dsae) { String s = "Can't retrieve the channel data for "+curImageID+"."; registry.getLogger().error(this, s+" Error: "+dsae); registry.getUserNotifier().notifyError("Data Retrieval Failure", s, dsae); defaultInitChannelData(); } catch(DSOutOfServiceException dsose) { ServiceActivationRequest request = new ServiceActivationRequest( ServiceActivationRequest.DATA_SERVICES); registry.getEventBus().post(request); defaultInitChannelData(); } }
| 3,236,696
|
void initChannelData() { try { DataManagementService ds = registry.getDataManagementService(); channelData = ds.getChannelData(curImageID); if (channelData == null) defaultInitChannelData(); else { if (channelData.length != pxsDims.sizeW) defaultInitChannelData(); } } catch(DSAccessException dsae) { String s = "Can't retrieve the channel data for "+curImageID+"."; registry.getLogger().error(this, s+" Error: "+dsae); registry.getUserNotifier().notifyError("Data Retrieval Failure", s, dsae); defaultInitChannelData(); } catch(DSOutOfServiceException dsose) { ServiceActivationRequest request = new ServiceActivationRequest( ServiceActivationRequest.DATA_SERVICES); registry.getEventBus().post(request); defaultInitChannelData(); } }
|
void initChannelData() { try { DataManagementService ds = registry.getDataManagementService(); channelData = ds.getChannelData(curImageID); if (channelData == null) defaultInitChannelData(); else { if (channelData.length != pxsDims.sizeW) defaultInitChannelData(); } } catch(DSAccessException dsae) { String s = "Can't retrieve the channel data for "+curImageID+"."; registry.getLogger().error(this, s+" Error: "+dsae); registry.getUserNotifier().notifyError("Data Retrieval Failure", s, dsae); defaultInitChannelData(); } catch(DSOutOfServiceException dsose) { ServiceActivationRequest request = new ServiceActivationRequest( ServiceActivationRequest.DATA_SERVICES); registry.getEventBus().post(request); defaultInitChannelData(); } }
| 3,236,697
|
private void refreshImage() { RenderImage event = new RenderImage(curPixelsID); registry.getEventBus().post(event); }
|
private void refreshImage() { RenderImage event = new RenderImage(curPixelsID); registry.getEventBus().post(event); }
| 3,236,698
|
private void removePresentation() { control.disposeDialogs(); presentation.dispose(); control = null; presentation = null; }
|
private void removePresentation() { control.disposeDialogs(); presentation.dispose(); control = null; presentation = null; }
| 3,236,699
|
public void setContext(Registry ctx) { registry = ctx; canUpdate = true; EventBus bus = registry.getEventBus(); bus.register(this, ImageLoaded.class); bus.register(this, DisplayRendering.class); }
|
public void setContext(Registry ctx) { registry = ctx; canUpdate = true; EventBus bus = registry.getEventBus(); bus.register(this, ImageLoaded.class); bus.register(this, DisplayRendering.class); }
| 3,236,700
|
public void writeInstanceVars(IRubyObject obj, MarshalStream output) throws IOException { IRuby runtime = obj.getRuntime(); output.dumpInt(obj.getInstanceVariables().size()); for (Iterator iter = obj.instanceVariableNames(); iter.hasNext();) { String name = (String) iter.next(); IRubyObject value = obj.getInstanceVariable(name); // Between getting name and retrieving value the instance variable could have been // removed if (value != null) { output.dumpObject(runtime.newSymbol(name)); output.dumpObject(value); } } }
|
public void writeInstanceVars(IRubyObject obj, MarshalStream output) throws IOException { IRuby runtime = obj.getRuntime(); output.dumpInt(obj.getInstanceVariables().size()); for (Iterator iter = obj.instanceVariableNames(); iter.hasNext();) { String name = (String) iter.next(); IRubyObject value = obj.getInstanceVariable(name); // Between getting name and retrieving value the instance variable could have been // removed if (value != null) { output.dumpObject(runtime.newSymbol(name)); output.dumpObject(value); } } }
| 3,236,701
|
public void writeInstanceVars(IRubyObject obj, MarshalStream output) throws IOException { IRuby runtime = obj.getRuntime(); output.dumpInt(obj.getInstanceVariables().size()); for (Iterator iter = obj.instanceVariableNames(); iter.hasNext();) { String name = (String) iter.next(); IRubyObject value = obj.getInstanceVariable(name); // Between getting name and retrieving value the instance variable could have been // removed if (value != null) { output.dumpObject(runtime.newSymbol(name)); output.dumpObject(value); } } }
|
public void writeInstanceVars(IRubyObject obj, MarshalStream output) throws IOException { IRuby runtime = obj.getRuntime(); output.dumpInt(obj.getInstanceVariables().size()); for (Iterator iter = obj.instanceVariableNames(); iter.hasNext();) { String name = (String) iter.next(); IRubyObject value = obj.getInstanceVariable(name); // Between getting name and retrieving value the instance variable could have been // removed if (value != null) { output.dumpObject(runtime.newSymbol(name)); output.dumpObject(value); } } }
| 3,236,702
|
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (int) (b.getHeight()*2),Constants.CANVAS_BACKGROUND_COLOR); ImageIO.write(image,"png",new File("foo.png")); if (ChainBuilderAgent.DEBUG) System.err.println("...done"); } catch (Exception ex) { if (ChainBuilderAgent.DEBUG) System.err.println("Failed to save chain snapshot"); } }
|
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (int) (b.getHeight()*2),Constants.CANVAS_BACKGROUND_COLOR); ImageIO.write(image,"png",new File("foo.png")); if (ChainBuilderAgent.DEBUG) System.err.println("...done"); } catch (Exception ex) { if (ChainBuilderAgent.DEBUG) System.err.println("Failed to save chain snapshot"); } }
| 3,236,703
|
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (int) (b.getHeight()*2),Constants.CANVAS_BACKGROUND_COLOR); ImageIO.write(image,"png",new File("foo.png")); if (ChainBuilderAgent.DEBUG) System.err.println("...done"); } catch (Exception ex) { if (ChainBuilderAgent.DEBUG) System.err.println("Failed to save chain snapshot"); } }
|
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (int) (b.getHeight()*2),Constants.CANVAS_BACKGROUND_COLOR); ImageIO.write(image,"png",new File("foo.png")); if (ChainBuilderAgent.DEBUG) System.err.println("...done"); } catch (Exception ex) { if (ChainBuilderAgent.DEBUG) System.err.println("Failed to save chain snapshot"); } }
| 3,236,704
|
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (int) (b.getHeight()*2),Constants.CANVAS_BACKGROUND_COLOR); ImageIO.write(image,"png",new File("foo.png")); if (ChainBuilderAgent.DEBUG) System.err.println("...done"); } catch (Exception ex) { if (ChainBuilderAgent.DEBUG) System.err.println("Failed to save chain snapshot"); } }
|
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (int) (b.getHeight()*2),Constants.CANVAS_BACKGROUND_COLOR); ImageIO.write(image,"png",new File("foo.png")); if (ChainBuilderAgent.DEBUG) System.err.println("...done"); } catch (Exception ex) { if (ChainBuilderAgent.DEBUG) System.err.println("Failed to save chain snapshot"); } }
| 3,236,705
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.