bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
final private boolean jj_3R_64() { Token xsp; xsp = jj_scanpos; if (jj_3R_71()) { jj_scanpos = xsp; if (jj_3R_72()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_64() { Token xsp; xsp = jj_scanpos; if (jj_3R_71()) { jj_scanpos = xsp; if (jj_3R_72()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,231,997
|
final private boolean jj_3R_65() { if (jj_scan_token(LBRACKET)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_65() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,231,998
|
final private boolean jj_3R_66() { if (jj_scan_token(STUFF)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_66() { Token xsp; xsp = jj_scanpos; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,231,999
|
final private boolean jj_3R_67() { if (jj_scan_token(QCHAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_67() { if (jj_scan_token(LBRACKET)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,001
|
final private boolean jj_3R_68() { if (jj_scan_token(SLASH)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_68() { if (jj_scan_token(STUFF)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,002
|
final private boolean jj_3R_69() { if (jj_3R_73()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_69() { if (jj_scan_token(QCHAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,003
|
final private boolean jj_3R_70() { if (jj_3R_74()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_70() { if (jj_scan_token(SLASH)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,004
|
final private boolean jj_3R_71() { if (jj_scan_token(QUOTE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_71() { if (jj_3R_75()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,005
|
final private boolean jj_3R_72() { if (jj_scan_token(SQUOTE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_72() { if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,006
|
final private boolean jj_3R_73() { if (jj_scan_token(POUNDPOUND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_73() { if (jj_scan_token(QUOTE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,007
|
final private boolean jj_3R_74() { Token xsp; xsp = jj_scanpos; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_74() { Token xsp; xsp = jj_scanpos; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,008
|
final private boolean jj_3R_74() { Token xsp; xsp = jj_scanpos; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_74() { Token xsp; xsp = jj_scanpos; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,009
|
final private boolean jj_3R_75() { if (jj_3R_63()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_75() { if (jj_scan_token(POUNDPOUND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,010
|
final private boolean jj_3R_76() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3R_76() { Token xsp; xsp = jj_scanpos; if (jj_3R_77()) { jj_scanpos = xsp; if (jj_3R_78()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,011
|
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_19()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,013
|
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,014
|
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,015
|
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,016
|
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_23()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,017
|
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_24()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,018
|
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,019
|
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,020
|
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_27()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,021
|
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_28()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,022
|
final private boolean jj_3_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_27()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_28()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_29()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_30()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_27()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_28()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_29()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_30()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,023
|
final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_31()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_33()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,025
|
final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_31()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_31()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,026
|
final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_31()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_31()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_35()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,027
|
final private boolean jj_3_15() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_15() { Token xsp; xsp = jj_scanpos; if (jj_3R_36()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,028
|
final private boolean jj_3_15() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_15() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_37()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,029
|
final private boolean jj_3_15() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_15() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_38()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,030
|
final private boolean jj_3_17() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_37()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_38()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_17() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_39()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_38()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,031
|
final private boolean jj_3_17() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_37()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_38()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_17() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_37()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_40()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,032
|
final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_39()) { jj_scanpos = xsp; if (jj_3R_40()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_41()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_41()) { jj_scanpos = xsp; if (jj_3R_40()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_41()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,033
|
final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_39()) { jj_scanpos = xsp; if (jj_3R_40()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_41()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_39()) { jj_scanpos = xsp; if (jj_3R_42()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_41()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,034
|
final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_39()) { jj_scanpos = xsp; if (jj_3R_40()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_41()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_39()) { jj_scanpos = xsp; if (jj_3R_40()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_43()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,035
|
final private boolean jj_3_5() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(POUND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_5() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_15()) { jj_scanpos = xsp; if (jj_3R_16()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,036
|
final private boolean jj_3_6() { Token xsp; xsp = jj_scanpos; if (jj_3R_15()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_16()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_6() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_16()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,038
|
final private boolean jj_3_6() { Token xsp; xsp = jj_scanpos; if (jj_3R_15()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_16()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
final private boolean jj_3_6() { Token xsp; xsp = jj_scanpos; if (jj_3R_15()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
| 3,232,039
|
public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D size = semanticNode.getBounds().getSize(); Point2D viewPoint = e.getCamera().viewToLocal(dummyPoint); semanticNode.setOffset(viewPoint.getX()-size.getWidth()/2, viewPoint.getY()-size.getHeight()/2); double offRight = semanticNode.getOffset().getX()+ semanticNode.getBounds().getWidth()- e.getCamera().getBounds().getWidth(); double offBottom = semanticNode.getOffset().getY()+ semanticNode.getBounds().getHeight()- e.getCamera().getBounds().getHeight(); double offLeft = semanticNode.getOffset().getX(); double offTop = semanticNode.getOffset().getY(); if(offRight > 0) { offLeft = offLeft-offRight-4; semanticNode.setOffset(offLeft,offTop); } if(offBottom > 0) { offTop = offTop-offBottom-4; semanticNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; semanticNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; semanticNode.setOffset(offLeft,offTop); } layer.nodeEntered(e.getCamera(),semanticNode,500); } }
|
public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t,model); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D size = semanticNode.getBounds().getSize(); Point2D viewPoint = e.getCamera().viewToLocal(dummyPoint); semanticNode.setOffset(viewPoint.getX()-size.getWidth()/2, viewPoint.getY()-size.getHeight()/2); double offRight = semanticNode.getOffset().getX()+ semanticNode.getBounds().getWidth()- e.getCamera().getBounds().getWidth(); double offBottom = semanticNode.getOffset().getY()+ semanticNode.getBounds().getHeight()- e.getCamera().getBounds().getHeight(); double offLeft = semanticNode.getOffset().getX(); double offTop = semanticNode.getOffset().getY(); if(offRight > 0) { offLeft = offLeft-offRight-4; semanticNode.setOffset(offLeft,offTop); } if(offBottom > 0) { offTop = offTop-offBottom-4; semanticNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; semanticNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; semanticNode.setOffset(offLeft,offTop); } layer.nodeEntered(e.getCamera(),semanticNode,500); } }
| 3,232,040
|
private IRubyObject prepareBlockVariable(IRubyObject value, IRubyObject self, INode blockVariableNode, boolean checkArguments) { if (blockVariableNode == null) { return value; } if (checkArguments && value instanceof RubyArray) { RubyArray arrayValue = ((RubyArray) value); if (blockVariableNode instanceof ZeroArgNode) { if (arrayValue.getLength() != 0) { throw new ArgumentError(ruby, arrayValue.getLength(), 0); } } if (!(blockVariableNode instanceof MultipleAsgnNode)) { if (arrayValue.getLength() == 1) { value = arrayValue.entry(0); } } } new AssignmentVisitor(ruby, self.toRubyObject()).assign(blockVariableNode, value.toRubyObject(), checkArguments); return value; }
|
private IRubyObject prepareBlockVariable(IRubyObject value, IRubyObject self, INode blockVariableNode, boolean checkArguments) { if (blockVariableNode == null) { return value; } if (checkArguments && value instanceof RubyArray) { RubyArray arrayValue = ((RubyArray) value); if (blockVariableNode instanceof ZeroArgNode) { if (arrayValue.getLength() != 0) { throw new ArgumentError(ruby, arrayValue.getLength(), 0); } } if (!(blockVariableNode instanceof MultipleAsgnNode)) { if (arrayValue.getLength() == 1) { value = arrayValue.entry(0); } } } new AssignmentVisitor(ruby, self).assign(blockVariableNode, value, checkArguments); return value; }
| 3,232,041
|
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! ruby.isBlockGiven()) { throw new RaiseException(ruby, ruby.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); getFrameStack().push(currentBlock.getFrame()); Namespace oldNamespace = ruby.getNamespace(); ruby.setNamespace(getCurrentFrame().getNamespace()); Scope oldScope = (Scope) getScopeStack().getTop(); getScopeStack().setTop(currentBlock.getScope()); getBlockStack().pop(); getDynamicVarsStack().push(currentBlock.getDynamicVariables()); ruby.pushClass((klass != null) ? klass : currentBlock.getKlass()); if (klass == null) { self = currentBlock.getSelf(); } if (value == null) { value = RubyArray.newArray(ruby, 0); } ICallable method = currentBlock.getMethod(); if (method == null) { return ruby.getNil(); } getIterStack().push(currentBlock.getIter()); IRubyObject[] args = prepareArguments(value, self, currentBlock.getVar(), checkArguments); try { while (true) { try { return method.call(ruby, self.toRubyObject(), null, args, false); } catch (RedoJump rExcptn) { } } } catch (NextJump nExcptn) { return ruby.getNil(); } catch (ReturnJump rExcptn) { return rExcptn.getReturnValue(); } finally { getIterStack().pop(); ruby.popClass(); getDynamicVarsStack().pop(); getBlockStack().setCurrent(currentBlock); getFrameStack().pop(); ruby.setNamespace(oldNamespace); getScopeStack().setTop(oldScope); getDynamicVarsStack().pop(); } }
|
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! ruby.isBlockGiven()) { throw new RaiseException(ruby, ruby.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); getFrameStack().push(currentBlock.getFrame()); Namespace oldNamespace = ruby.getNamespace(); ruby.setNamespace(getCurrentFrame().getNamespace()); Scope oldScope = (Scope) getScopeStack().getTop(); getScopeStack().setTop(currentBlock.getScope()); getBlockStack().pop(); getDynamicVarsStack().push(currentBlock.getDynamicVariables()); ruby.pushClass((klass != null) ? klass : currentBlock.getKlass()); if (klass == null) { self = currentBlock.getSelf(); } if (value == null) { value = RubyArray.newArray(ruby, 0); } ICallable method = currentBlock.getMethod(); if (method == null) { return ruby.getNil(); } getIterStack().push(currentBlock.getIter()); IRubyObject[] args = prepareArguments(value, self, currentBlock.getVar(), checkArguments); try { while (true) { try { return method.call(ruby, self, null, args, false); } catch (RedoJump rExcptn) { } } } catch (NextJump nExcptn) { return ruby.getNil(); } catch (ReturnJump rExcptn) { return rExcptn.getReturnValue(); } finally { getIterStack().pop(); ruby.popClass(); getDynamicVarsStack().pop(); getBlockStack().setCurrent(currentBlock); getFrameStack().pop(); ruby.setNamespace(oldNamespace); getScopeStack().setTop(oldScope); getDynamicVarsStack().pop(); } }
| 3,232,042
|
public static RubyClass createIntegerClass(Ruby ruby) { RubyClass integerClass = ruby.defineClass("Integer", ruby.getClasses().getNumericClass()); integerClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod(RubyInteger.class, "induced_from", RubyObject.class)); integerClass.defineMethod("chr", CallbackFactory.getMethod(RubyInteger.class, "chr")); integerClass.defineMethod("integer?", CallbackFactory.getMethod(RubyInteger.class, "int_p")); integerClass.defineMethod("to_i", CallbackFactory.getSelfMethod()); integerClass.defineMethod("to_int", CallbackFactory.getSelfMethod()); integerClass.defineMethod("ceil", CallbackFactory.getSelfMethod()); integerClass.defineMethod("floor", CallbackFactory.getSelfMethod()); integerClass.defineMethod("round", CallbackFactory.getSelfMethod()); integerClass.defineMethod("truncate", CallbackFactory.getSelfMethod()); integerClass.defineMethod("next", CallbackFactory.getMethod(RubyInteger.class, "succ")); integerClass.defineMethod("succ", CallbackFactory.getMethod(RubyInteger.class, "succ")); integerClass.defineMethod("downto", CallbackFactory.getMethod(RubyInteger.class, "downto", RubyNumeric.class)); integerClass.defineMethod("step", CallbackFactory.getMethod(RubyInteger.class, "step", RubyNumeric.class, RubyNumeric.class)); integerClass.defineMethod("times", CallbackFactory.getMethod(RubyInteger.class, "times")); integerClass.defineMethod("upto", CallbackFactory.getMethod(RubyInteger.class, "upto", RubyNumeric.class)); return integerClass; }
|
public static RubyClass createIntegerClass(Ruby ruby) { RubyClass integerClass = ruby.defineClass("Integer", ruby.getClasses().getNumericClass()); integerClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod(RubyInteger.class, "induced_from", RubyObject.class)); integerClass.defineMethod("chr", CallbackFactory.getMethod(RubyInteger.class, "chr")); integerClass.defineMethod("integer?", CallbackFactory.getMethod(RubyInteger.class, "int_p")); integerClass.defineMethod("to_i", CallbackFactory.getSelfMethod()); integerClass.defineMethod("to_int", CallbackFactory.getSelfMethod()); integerClass.defineMethod("ceil", CallbackFactory.getSelfMethod()); integerClass.defineMethod("floor", CallbackFactory.getSelfMethod()); integerClass.defineMethod("round", CallbackFactory.getSelfMethod()); integerClass.defineMethod("truncate", CallbackFactory.getSelfMethod()); integerClass.defineMethod("next", CallbackFactory.getMethod(RubyInteger.class, "succ")); integerClass.defineMethod("succ", CallbackFactory.getMethod(RubyInteger.class, "succ")); integerClass.defineMethod("downto", CallbackFactory.getMethod(RubyInteger.class, "downto", RubyNumeric.class)); integerClass.defineMethod("step", CallbackFactory.getMethod(RubyInteger.class, "step", RubyNumeric.class, RubyNumeric.class)); integerClass.defineMethod("times", CallbackFactory.getMethod(RubyInteger.class, "times")); integerClass.defineMethod("upto", CallbackFactory.getMethod(RubyInteger.class, "upto", RubyNumeric.class)); return integerClass; }
| 3,232,043
|
protected abstract DataLoader createHierarchyLoader();
|
protected abstract DataLoader createHierarchyLoader();
| 3,232,045
|
void fireHierarchyLoading() { state = HiViewer.LOADING_HIERARCHY; currentLoader = createHierarchyLoader(); currentLoader.load(); }
|
void fireHierarchyLoading(boolean refresh) { state = HiViewer.LOADING_HIERARCHY; currentLoader = createHierarchyLoader(); currentLoader.load(); }
| 3,232,046
|
void fireHierarchyLoading() { state = HiViewer.LOADING_HIERARCHY; currentLoader = createHierarchyLoader(); currentLoader.load(); }
|
void fireHierarchyLoading() { state = HiViewer.LOADING_HIERARCHY; currentLoader = createHierarchyLoader(refresh); currentLoader.load(); }
| 3,232,047
|
public void write(final int bite) throws IOException { io.callMethod("write", new RubyString(io.getRuntime(), new String(new char[]{(char)(0x000000FF & bite)}))); }
|
public void write(final int bite) throws IOException { io.callMethod("write", io.getRuntime().newString(new String(new char[]{(char)(0x000000FF & bite)}))); }
| 3,232,048
|
private int here_document(int term, int indent) { int c; Node list = null; int linesave = ruby.getSourceLine(); newtok(); switch (term) { case '\'' : case '"' : case '`' : while ((c = nextc()) != term) { tokadd(c); } if (term == '\'') { term = 0; } break; default : c = term; term = '"'; if (!is_identchar(c)) { ph.rb_warn("use of bare << to mean <<\"\" is deprecated"); break; } while (is_identchar(c)) { tokadd(c); c = nextc(); } pushback(c); break; } tokfix(); RubyObject lastline_save = lex_lastline; int offset_save = lex_p - lex_pbeg; String eos = tok(); int len = eos.length(); RubyString str = RubyString.newString(ruby, ""); RubyObject line; while (true) { lex_lastline = line = lex_getline(); if (line.isNil()) { // error: ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } ruby.setSourceLine(ruby.getSourceLine()); String p = ((RubyString) line).getValue(); if (indent != 0) { while (Character.isWhitespace(p.charAt(0))) { p = p.substring(1); } // while (*p && (*p == ' ' || *p == '\t')) { // p++; // } } if (p /*.trim()*/ .startsWith(eos)) { if (p.charAt(len) == '\n' || p.charAt(len) == '\r') { break; } if (len == ((RubyString) line).getValue().length()) { break; } } lex_curline = ((RubyString) line).getValue(); lex_pbeg = lex_p = 0; lex_pend = lex_curline.length(); while (true) { switch (parse_string(term, '\n', '\n')) { case Token.tSTRING : case Token.tXSTRING : ((RubyString) yyVal).cat("\n"); if (list == null) { str.concat((RubyString) yyVal); } else { ph.list_append(list, nf.newStr((RubyObject) yyVal)); } break; case Token.tDSTRING : if (list == null) { list = nf.newDStr(str); } /* fall through */ case Token.tDXSTRING : if (list == null) { list = nf.newDXStr(str); } ph.list_append((Node) yyVal, nf.newStr(RubyString.newString(ruby, "\n"))); ((StrNodeConvertable)yyVal).convertToStrNode(); yyVal = nf.newList((Node) yyVal); ((Node) yyVal).setNextNode(((Node) yyVal).getHeadNode().getNextNode()); ph.list_concat(list, (Node) yyVal); break; case 0 : // goto error; ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } if (lex_p == lex_pend) { break; } } } lex_lastline = lastline_save; lex_curline = ((RubyString) lex_lastline).getValue(); lex_pbeg = 0; lex_pend = lex_pbeg + lex_curline.length(); lex_p = lex_pbeg + offset_save; ph.setLexState(LexState.EXPR_END); ph.setHeredocEnd(ruby.getSourceLine()); ruby.setSourceLine(linesave); if (list != null) { list.setLine(linesave + 1); yyVal = list; } switch (term) { case '\0' : case '\'' : case '"' : if (list != null) { return Token.tDSTRING; } yyVal = str; return Token.tSTRING; case '`' : if (list != null) { return Token.tDXSTRING; } yyVal = str; return Token.tXSTRING; } return 0; }
|
private int here_document(int term, int indent) { int c; Node list = null; int linesave = ruby.getSourceLine(); newtok(); switch (term) { case '\'' : case '"' : case '`' : while ((c = nextc()) != term) { tokadd(c); } if (term == '\'') { term = 0; } break; default : c = term; term = '"'; if (!is_identchar(c)) { ph.rb_warn("use of bare << to mean <<\"\" is deprecated"); break; } while (is_identchar(c)) { tokadd(c); c = nextc(); } pushback(c); break; } tokfix(); RubyObject lastline_save = lex_lastline; int offset_save = lex_p - lex_pbeg; String eos = tok(); int len = eos.length(); RubyString str = RubyString.newString(ruby, ""); RubyObject line; while (true) { lex_lastline = line = lex_getline(); if (line.isNil()) { // error: ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } ruby.setSourceLine(ruby.getSourceLine()); String p = ((RubyString) line).getValue(); if (indent != 0) { while (Character.isWhitespace(p.charAt(0))) { p = p.substring(1); } // while (*p && (*p == ' ' || *p == '\t')) { // p++; // } } if (p /*.trim()*/ .startsWith(eos)) { if (p.charAt(len) == '\n' || p.charAt(len) == '\r') { break; } if (len == ((RubyString) line).getValue().length()) { break; } } lex_curline = ((RubyString) line).getValue(); lex_pbeg = lex_p = 0; lex_pend = lex_curline.length(); while (true) { switch (parse_string(term, '\n', '\n')) { case Token.tSTRING : case Token.tXSTRING : ((RubyString) yyVal).cat("\n"); if (list == null) { str.concat((RubyString) yyVal); } else { ph.list_append(list, nf.newStr((RubyObject) yyVal)); } break; case Token.tDSTRING : if (list == null) { list = nf.newDStr(str); } /* fall through */ case Token.tDXSTRING : if (list == null) { list = nf.newDXStr(str); } ph.list_append((Node) yyVal, nf.newStr(RubyString.newString(ruby, "\n"))); ((StrNodeConvertable) yyVal).convertToStrNode(); yyVal = nf.newList((Node) yyVal); ((Node) yyVal).setNextNode(((Node) yyVal).getHeadNode().getNextNode()); ph.list_concat(list, (Node) yyVal); break; case 0 : // goto error; ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } if (lex_p == lex_pend) { break; } } } lex_lastline = lastline_save; lex_curline = ((RubyString) lex_lastline).getValue(); lex_pbeg = 0; lex_pend = lex_pbeg + lex_curline.length(); lex_p = lex_pbeg + offset_save; ph.setLexState(LexState.EXPR_END); ph.setHeredocEnd(ruby.getSourceLine()); ruby.setSourceLine(linesave); if (list != null) { list.setLine(linesave + 1); yyVal = list; } switch (term) { case '\0' : case '\'' : case '"' : if (list != null) { return Token.tDSTRING; } yyVal = str; return Token.tSTRING; case '`' : if (list != null) { return Token.tDXSTRING; } yyVal = str; return Token.tXSTRING; } return 0; }
| 3,232,050
|
private RubyObject lex_gets_str(RubyObject _s) { String s = ((RubyString) _s).getValue(); if (lex_gets_ptr != 0) { if (s.length() == lex_gets_ptr) { return ruby.getNil(); } s = s.substring(lex_gets_ptr); } int end = 0; while (end < s.length()) { if (s.charAt(end++) == '\n') { ph.incrementLine(); break; } } lex_gets_ptr += end; return RubyString.newString(ruby, s, end); }
|
private RubyObject lex_gets_str(RubyObject _s) { String s = ((RubyString) _s).getValue(); if (lex_gets_ptr != 0) { if (s.length() == lex_gets_ptr) { return ruby.getNil(); } s = s.substring(lex_gets_ptr); } int end = 0; while (end < s.length()) { if (s.charAt(end++) == '\n') { ph.incrementLine(); break; } } lex_gets_ptr += end; return RubyString.newString(ruby, s, end); }
| 3,232,051
|
private int parse_regx(int term, int paren) { int c; char kcode = 0; boolean once = false; int nest = 0; int options = 0; int re_start = ruby.getSourceLine(); Node list = null; newtok(); regx_end : while ((c = nextc()) != -1) { if (c == term && nest == 0) { break regx_end; } switch (c) { case '#' : list = str_extend(list, term); if (list == Node.MINUS_ONE) { return 0; } continue; case '\\' : if (tokadd_escape(term) < 0) { /* * FIX 1.6.5 */ return 0; } continue; case -1 : //goto unterminated; ruby.setSourceLine(re_start); ph.rb_compile_error("unterminated regexp meets end of file"); return 0; default : if (paren != 0) { if (c == paren) { nest++; } if (c == term) { nest--; } } break; } tokadd(c); } end_options : for (;;) { switch (c = nextc()) { case 'i' : options |= ReOptions.RE_OPTION_IGNORECASE; break; case 'x' : options |= ReOptions.RE_OPTION_EXTENDED; break; case 'p' : // /p is obsolete ph.rb_warn("/p option is obsolete; use /m\n\tnote: /m does not change ^, $ behavior"); options |= ReOptions.RE_OPTION_POSIXLINE; break; case 'm' : options |= ReOptions.RE_OPTION_MULTILINE; break; case 'o' : once = true; break; case 'n' : kcode = 16; break; case 'e' : kcode = 32; break; case 's' : kcode = 48; break; case 'u' : kcode = 64; break; default : pushback(c); break end_options; } } tokfix(); ph.setLexState(LexState.EXPR_END); if (list != null) { list.setLine(re_start); if (toklen() > 0) { RubyObject ss = RubyString.newString(ruby, tok(), toklen()); ph.list_append(list, nf.newStr(ss)); } new RuntimeException("Want to change " + list.getClass().getName() + "to DRegxNode").printStackTrace(); // list.nd_set_type(once ? NODE.NODE_DREGX_ONCE : NODE.NODE_DREGX); list.setCFlag(options | kcode); yyVal = list; return Token.tDREGEXP; } else { yyVal = rb_reg_new(tok(), toklen(), options | kcode); return Token.tREGEXP; } //unterminated: //ruby_sourceline = re_start; //rb_compile_error("unterminated regexp meets end of file"); //return 0; }
|
private int parse_regx(int term, int paren) { int c; char kcode = 0; boolean once = false; int nest = 0; int options = 0; int re_start = ruby.getSourceLine(); Node list = null; newtok(); regx_end : while ((c = nextc()) != -1) { if (c == term && nest == 0) { break regx_end; } switch (c) { case '#' : list = str_extend(list, term); if (list == Node.MINUS_ONE) { return 0; } continue; case '\\' : if (tokadd_escape(term) < 0) { /* * FIX 1.6.5 */ return 0; } continue; case -1 : //goto unterminated; ruby.setSourceLine(re_start); ph.rb_compile_error("unterminated regexp meets end of file"); return 0; default : if (paren != 0) { if (c == paren) { nest++; } if (c == term) { nest--; } } break; } tokadd(c); } end_options : for (;;) { switch (c = nextc()) { case 'i' : options |= ReOptions.RE_OPTION_IGNORECASE; break; case 'x' : options |= ReOptions.RE_OPTION_EXTENDED; break; case 'p' : // /p is obsolete ph.rb_warn("/p option is obsolete; use /m\n\tnote: /m does not change ^, $ behavior"); options |= ReOptions.RE_OPTION_POSIXLINE; break; case 'm' : options |= ReOptions.RE_OPTION_MULTILINE; break; case 'o' : once = true; break; case 'n' : kcode = 16; break; case 'e' : kcode = 32; break; case 's' : kcode = 48; break; case 'u' : kcode = 64; break; default : pushback(c); break end_options; } } tokfix(); ph.setLexState(LexState.EXPR_END); if (list != null) { list.setLine(re_start); if (toklen() > 0) { RubyObject ss = RubyString.newString(ruby, tok(), toklen()); ph.list_append(list, nf.newStr(ss)); } // list.nd_set_type(once ? NODE.NODE_DREGX_ONCE : NODE.NODE_DREGX); list.setCFlag(options | kcode); yyVal = list; return Token.tDREGEXP; } else { yyVal = rb_reg_new(tok(), toklen(), options | kcode); return Token.tREGEXP; } //unterminated: //ruby_sourceline = re_start; //rb_compile_error("unterminated regexp meets end of file"); //return 0; }
| 3,232,052
|
private int parse_regx(int term, int paren) { int c; char kcode = 0; boolean once = false; int nest = 0; int options = 0; int re_start = ruby.getSourceLine(); Node list = null; newtok(); regx_end : while ((c = nextc()) != -1) { if (c == term && nest == 0) { break regx_end; } switch (c) { case '#' : list = str_extend(list, term); if (list == Node.MINUS_ONE) { return 0; } continue; case '\\' : if (tokadd_escape(term) < 0) { /* * FIX 1.6.5 */ return 0; } continue; case -1 : //goto unterminated; ruby.setSourceLine(re_start); ph.rb_compile_error("unterminated regexp meets end of file"); return 0; default : if (paren != 0) { if (c == paren) { nest++; } if (c == term) { nest--; } } break; } tokadd(c); } end_options : for (;;) { switch (c = nextc()) { case 'i' : options |= ReOptions.RE_OPTION_IGNORECASE; break; case 'x' : options |= ReOptions.RE_OPTION_EXTENDED; break; case 'p' : // /p is obsolete ph.rb_warn("/p option is obsolete; use /m\n\tnote: /m does not change ^, $ behavior"); options |= ReOptions.RE_OPTION_POSIXLINE; break; case 'm' : options |= ReOptions.RE_OPTION_MULTILINE; break; case 'o' : once = true; break; case 'n' : kcode = 16; break; case 'e' : kcode = 32; break; case 's' : kcode = 48; break; case 'u' : kcode = 64; break; default : pushback(c); break end_options; } } tokfix(); ph.setLexState(LexState.EXPR_END); if (list != null) { list.setLine(re_start); if (toklen() > 0) { RubyObject ss = RubyString.newString(ruby, tok(), toklen()); ph.list_append(list, nf.newStr(ss)); } new RuntimeException("Want to change " + list.getClass().getName() + "to DRegxNode").printStackTrace(); // list.nd_set_type(once ? NODE.NODE_DREGX_ONCE : NODE.NODE_DREGX); list.setCFlag(options | kcode); yyVal = list; return Token.tDREGEXP; } else { yyVal = rb_reg_new(tok(), toklen(), options | kcode); return Token.tREGEXP; } //unterminated: //ruby_sourceline = re_start; //rb_compile_error("unterminated regexp meets end of file"); //return 0; }
|
private int parse_regx(int term, int paren) { int c; char kcode = 0; boolean once = false; int nest = 0; int options = 0; int re_start = ruby.getSourceLine(); Node list = null; newtok(); regx_end : while ((c = nextc()) != -1) { if (c == term && nest == 0) { break regx_end; } switch (c) { case '#' : list = str_extend(list, term); if (list == Node.MINUS_ONE) { return 0; } continue; case '\\' : if (tokadd_escape(term) < 0) { /* * FIX 1.6.5 */ return 0; } continue; case -1 : //goto unterminated; ruby.setSourceLine(re_start); ph.rb_compile_error("unterminated regexp meets end of file"); return 0; default : if (paren != 0) { if (c == paren) { nest++; } if (c == term) { nest--; } } break; } tokadd(c); } end_options : for (;;) { switch (c = nextc()) { case 'i' : options |= ReOptions.RE_OPTION_IGNORECASE; break; case 'x' : options |= ReOptions.RE_OPTION_EXTENDED; break; case 'p' : // /p is obsolete ph.rb_warn("/p option is obsolete; use /m\n\tnote: /m does not change ^, $ behavior"); options |= ReOptions.RE_OPTION_POSIXLINE; break; case 'm' : options |= ReOptions.RE_OPTION_MULTILINE; break; case 'o' : once = true; break; case 'n' : kcode = 16; break; case 'e' : kcode = 32; break; case 's' : kcode = 48; break; case 'u' : kcode = 64; break; default : pushback(c); break end_options; } } tokfix(); ph.setLexState(LexState.EXPR_END); if (list != null) { list.setLine(re_start); if (toklen() > 0) { RubyObject ss = RubyString.newString(ruby, tok(), toklen()); ph.list_append(list, nf.newStr(ss)); } new RuntimeException("Want to change " + list.getClass().getName() + "to DRegxNode").printStackTrace(); // list.nd_set_type(once ? NODE.NODE_DREGX_ONCE : NODE.NODE_DREGX); if (once) { list = new DRegxOnceNode(list.getLiteral(), options | kcode); } else { list = new DRegxNode(list.getLiteral(), options | kcode); } yyVal = list; return Token.tDREGEXP; } else { yyVal = rb_reg_new(tok(), toklen(), options | kcode); return Token.tREGEXP; } //unterminated: //ruby_sourceline = re_start; //rb_compile_error("unterminated regexp meets end of file"); //return 0; }
| 3,232,053
|
private int parse_string(int func, int term, int paren) { int c; Node list = null; int strstart; int nest = 0; if (func == '\'') { return parse_qstring(term, paren); } if (func == 0) { // read 1 line for heredoc // -1 for chomp yyVal = RubyString.newString(ruby, lex_curline, lex_pend - 1); lex_p = lex_pend; return Token.tSTRING; } strstart = ruby.getSourceLine(); newtok(); while ((c = nextc()) != term || nest > 0) { if (c == -1) { //unterm_str: ruby.setSourceLine(strstart); ph.rb_compile_error("unterminated string meets end of file"); return 0; } /* * if (ismbchar(c)) { * int i, len = mbclen(c)-1; * for (i = 0; i < len; i++) { * tokadd(c); * c = nextc(); * } * } * else */ if (c == '#') { list = str_extend(list, term); if (list == Node.MINUS_ONE) { //goto unterm_str; ruby.setSourceLine(strstart); ph.rb_compile_error("unterminated string meets end of file"); return 0; } continue; } else if (c == '\\') { c = nextc(); if (c == '\n') { continue; } if (c == term) { tokadd(c); } else { pushback(c); if (func != '"') { tokadd('\\'); } tokadd(read_escape()); } continue; } if (paren != 0) { if (c == paren) { nest++; } if (c == term && nest-- == 0) { break; } } tokadd(c); } tokfix(); ph.setLexState(LexState.EXPR_END); if (list != null) { list.setLine(strstart); if (toklen() > 0) { RubyObject ss = RubyString.newString(ruby, tok(), toklen()); ph.list_append(list, nf.newStr(ss)); } yyVal = list; if (func == '`') { new RuntimeException("[BUG] want to change " + list.getClass().getName() + " to DXStrNode").printStackTrace(); // list.nd_set_type(Constants.NODE_DXSTR); return Token.tDXSTRING; } else { return Token.tDSTRING; } } else { yyVal = RubyString.newString(ruby, tok(), toklen()); return (func == '`') ? Token.tXSTRING : Token.tSTRING; } }
|
private int parse_string(int func, int term, int paren) { int c; Node list = null; int strstart; int nest = 0; if (func == '\'') { return parse_qstring(term, paren); } if (func == 0) { // read 1 line for heredoc // -1 for chomp yyVal = RubyString.newString(ruby, lex_curline, lex_pend - 1); lex_p = lex_pend; return Token.tSTRING; } strstart = ruby.getSourceLine(); newtok(); while ((c = nextc()) != term || nest > 0) { if (c == -1) { //unterm_str: ruby.setSourceLine(strstart); ph.rb_compile_error("unterminated string meets end of file"); return 0; } /* * if (ismbchar(c)) { * int i, len = mbclen(c)-1; * for (i = 0; i < len; i++) { * tokadd(c); * c = nextc(); * } * } * else */ if (c == '#') { list = str_extend(list, term); if (list == Node.MINUS_ONE) { //goto unterm_str; ruby.setSourceLine(strstart); ph.rb_compile_error("unterminated string meets end of file"); return 0; } continue; } else if (c == '\\') { c = nextc(); if (c == '\n') { continue; } if (c == term) { tokadd(c); } else { pushback(c); if (func != '"') { tokadd('\\'); } tokadd(read_escape()); } continue; } if (paren != 0) { if (c == paren) { nest++; } if (c == term && nest-- == 0) { break; } } tokadd(c); } tokfix(); ph.setLexState(LexState.EXPR_END); if (list != null) { list.setLine(strstart); if (toklen() > 0) { RubyObject ss = RubyString.newString(ruby, tok(), toklen()); ph.list_append(list, nf.newStr(ss)); } yyVal = list; if (func == '`') { // list.nd_set_type(Constants.NODE_DXSTR); return Token.tDXSTRING; } else { return Token.tDSTRING; } } else { yyVal = RubyString.newString(ruby, tok(), toklen()); return (func == '`') ? Token.tXSTRING : Token.tSTRING; } }
| 3,232,054
|
public static void main(final String[] args) { /* * EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; * EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; * XMPPConnection.DEBUG_ENABLED = true; */ String current = System.getProperty("java.library.path"); String classPath = System.getProperty("java.class.path"); // Set UIManager properties for JTree System.setProperty("apple.laf.useScreenMenuBar", "true"); /** Update Library Path **/ StringBuffer buf = new StringBuffer(); buf.append(current); buf.append(";"); final String workingDirectory = System.getProperty("appdir"); if (workingDirectory == null) { RESOURCE_DIRECTORY = new File(USER_HOME, "/Spark/resources").getAbsoluteFile(); BIN_DIRECTORY = new File(USER_HOME, "/Spark/bin").getAbsoluteFile(); LOG_DIRECTORY = new File(USER_HOME, "/Spark/logs").getAbsoluteFile(); RESOURCE_DIRECTORY.mkdirs(); LOG_DIRECTORY.mkdirs(); if (!RESOURCE_DIRECTORY.exists() || !LOG_DIRECTORY.exists()) { JOptionPane.showMessageDialog(new JFrame(), "Unable to create directories necessary for runtime.", "Spark Error", JOptionPane.ERROR_MESSAGE); System.exit(1); } } // This is the Spark.exe or Spark.dmg installed executable. else { // This is the installed executable. File workingDir = new File(workingDirectory); RESOURCE_DIRECTORY = new File(workingDir, "resources").getAbsoluteFile(); BIN_DIRECTORY = new File(workingDir, "bin").getAbsoluteFile(); if (!Spark.isWindows()) { LOG_DIRECTORY = new File(USER_HOME, "/Spark/logs").getAbsoluteFile(); } else { LOG_DIRECTORY = new File(workingDir, "logs").getAbsoluteFile(); } LOG_DIRECTORY.mkdirs(); try { buf.append(RESOURCE_DIRECTORY.getCanonicalPath()).append(";"); } catch (IOException e) { e.printStackTrace(); } } buf.append(classPath); // Update System Properties System.setProperty("java.library.path", buf.toString()); System.setProperty("sun.java2d.noddraw", "true"); SwingUtilities.invokeLater(new Runnable() { public void run() { // Start Application new Spark(); } }); // Handle arguments if (args.length > 0) { argument = args[0]; } }
|
public static void main(final String[] args) { /* * EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; * EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; * XMPPConnection.DEBUG_ENABLED = true; */ String current = System.getProperty("java.library.path"); String classPath = System.getProperty("java.class.path"); // Set UIManager properties for JTree System.setProperty("apple.laf.useScreenMenuBar", "true"); /** Update Library Path **/ StringBuffer buf = new StringBuffer(); buf.append(current); buf.append(";"); final String workingDirectory = System.getProperty("appdir"); if (workingDirectory == null) { RESOURCE_DIRECTORY = new File(USER_HOME, "/Spark/resources").getAbsoluteFile(); BIN_DIRECTORY = new File(USER_HOME, "/Spark/bin").getAbsoluteFile(); LOG_DIRECTORY = new File(USER_HOME, "/Spark/logs").getAbsoluteFile(); RESOURCE_DIRECTORY.mkdirs(); LOG_DIRECTORY.mkdirs(); if (!RESOURCE_DIRECTORY.exists() || !LOG_DIRECTORY.exists()) { JOptionPane.showMessageDialog(new JFrame(), "Unable to create directories necessary for runtime.", "Spark Error", JOptionPane.ERROR_MESSAGE); System.exit(1); } } // This is the Spark.exe or Spark.dmg installed executable. else { // This is the installed executable. File workingDir = new File(workingDirectory); RESOURCE_DIRECTORY = new File(workingDir, "resources").getAbsoluteFile(); BIN_DIRECTORY = new File(workingDir, "bin").getAbsoluteFile(); if (!Spark.isWindows()) { LOG_DIRECTORY = new File(USER_HOME, "/Spark/logs").getAbsoluteFile(); } else { LOG_DIRECTORY = new File(workingDir, "logs").getAbsoluteFile(); } LOG_DIRECTORY.mkdirs(); try { buf.append(RESOURCE_DIRECTORY.getCanonicalPath()).append(";"); } catch (IOException e) { e.printStackTrace(); } } buf.append(classPath); // Update System Properties System.setProperty("java.library.path", buf.toString()); System.setProperty("sun.java2d.noddraw", "true"); SwingUtilities.invokeLater(new Runnable() { public void run() { // Start Application new Spark(); } }); // Handle arguments if (args.length > 0) { argument = args[0]; } }
| 3,232,056
|
public static RubyClass createNilClass(Ruby ruby) { RubyClass nilClass = ruby.defineClass("NilClass", ruby.getClasses().getObjectClass()); nilClass.defineMethod("type", CallbackFactory.getSingletonMethod(RubyNil.class, "type")); nilClass.defineMethod("to_i", CallbackFactory.getSingletonMethod(RubyNil.class, "to_i")); nilClass.defineMethod("to_s", CallbackFactory.getSingletonMethod(RubyNil.class, "to_s")); nilClass.defineMethod("to_a", CallbackFactory.getSingletonMethod(RubyNil.class, "to_a")); nilClass.defineMethod("inspect", CallbackFactory.getSingletonMethod(RubyNil.class, "inspect")); nilClass.defineMethod("&", CallbackFactory.getSingletonMethod(RubyNil.class, "op_and", IRubyObject.class)); nilClass.defineMethod("|", CallbackFactory.getSingletonMethod(RubyNil.class, "op_or", IRubyObject.class)); nilClass.defineMethod("^", CallbackFactory.getSingletonMethod(RubyNil.class, "op_xor", IRubyObject.class)); nilClass.defineMethod("nil?", CallbackFactory.getTrueMethod(0)); nilClass.getInternalClass().undefMethod("new"); ruby.defineGlobalConstant("NIL", ruby.getNil()); return nilClass; }
|
nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); publicnilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); staticnilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); RubyClassnilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); createNilClass(RubynilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); ruby)nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); {nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); RubyClassnilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClassnilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); =nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); ruby.defineClass("NilClass",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); ruby.getClasses().getObjectClass());nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("type",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); CallbackFactory.getSingletonMethod(RubyNil.class,nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); "type"));nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("to_i",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); CallbackFactory.getSingletonMethod(RubyNil.class,nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); "to_i"));nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("to_s",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); CallbackFactory.getSingletonMethod(RubyNil.class,nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); "to_s"));nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("to_a",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); CallbackFactory.getSingletonMethod(RubyNil.class,nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); "to_a"));nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("inspect",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); CallbackFactory.getSingletonMethod(RubyNil.class,nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); "inspect"));nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("&",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); CallbackFactory.getSingletonMethod(RubyNil.class,nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); "op_and",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); IRubyObject.class));nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("|",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); CallbackFactory.getSingletonMethod(RubyNil.class,nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); "op_or",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); IRubyObject.class));nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("^",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); CallbackFactory.getSingletonMethod(RubyNil.class,nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); "op_xor",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); IRubyObject.class));nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("nil?",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); CallbackFactory.getTrueMethod(0));nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.getInternalClass().undefMethod("new");nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); ruby.defineGlobalConstant("NIL",nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); ruby.getNil());nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); returnnilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass;nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); }
| 3,232,057
|
public String toString(){ return "ModuleExecution"+(moduleExecutionId==null ? ":Hash"+this.hashCode() : ":"+moduleExecutionId); }
|
public String toString(){ return "ModuleExecution"+(moduleExecutionId==null ? ":Hash_"+this.hashCode() : ":Id_"+moduleExecutionId); }
| 3,232,058
|
public Dimension getPreferredSize() { Dimension d; if (getOrientation() == VERTICAL) { d = new Dimension(getPreferredVerticalSize()); } else { d = new Dimension(getPreferredHorizontalSize()); d.height = insetCache.top + insetCache.bottom; d.height += preferredSize_.height; } return d; }
|
public Dimension getPreferredSize() { Dimension d; if (getOrientation() == VERTICAL) { d = new Dimension(getPreferredVerticalSize()); } else { d = new Dimension(getPreferredHorizontalSize()); d.height = insetCache.top + insetCache.bottom; d.height += preferredSize_.height; } return d; }
| 3,232,059
|
private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } }
|
private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } }
| 3,232,060
|
private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } }
|
private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } }
| 3,232,061
|
private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } }
|
private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } }
| 3,232,062
|
private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } }
|
private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } }
| 3,232,063
|
private void setDefault() { FontMetrics metrics = getFontMetrics(getFont()); insetCache = getInsets(); fontHeight = metrics.getHeight(); knobControl = INITIAL; pushKnobControl = INITIAL; knobWidth = KNOB_WIDTH; knobHeight = KNOB_HEIGHT; calculatePreferredSize(); }
|
private void setDefault() { insetCache = getInsets(); fontHeight = metrics.getHeight(); knobControl = INITIAL; pushKnobControl = INITIAL; knobWidth = KNOB_WIDTH; knobHeight = KNOB_HEIGHT; calculatePreferredSize(); }
| 3,232,064
|
private void setDefault() { FontMetrics metrics = getFontMetrics(getFont()); insetCache = getInsets(); fontHeight = metrics.getHeight(); knobControl = INITIAL; pushKnobControl = INITIAL; knobWidth = KNOB_WIDTH; knobHeight = KNOB_HEIGHT; calculatePreferredSize(); }
|
private void setDefault() { FontMetrics metrics = getFontMetrics(getFont()); insetCache = getInsets(); fontHeight = getFontMetrics(getFont()).getHeight(); knobControl = INITIAL; pushKnobControl = INITIAL; knobWidth = KNOB_WIDTH; knobHeight = KNOB_HEIGHT; calculatePreferredSize(); }
| 3,232,065
|
private void initializeRuntime(final IRuby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.getScriptArguments())); runtime.setVerbose(runtime.newBoolean(commandline.isVerbose())); runtime.setDebug(runtime.newBoolean(commandline.isDebug())); defineGlobalVERBOSE(runtime); defineGlobalDEBUG(runtime); runtime.getObject().setConstant("$VERBOSE", commandline.isVerbose() ? runtime.getTrue() : runtime.getNil()); runtime.defineGlobalConstant("ARGV", argumentArray); defineGlobal(runtime, "$-p", commandline.isAssumePrinting()); defineGlobal(runtime, "$-n", commandline.isAssumeLoop()); defineGlobal(runtime, "$-a", commandline.isSplit()); defineGlobal(runtime, "$-l", commandline.isProcessLineEnds()); runtime.getGlobalVariables().defineReadonly("$*", new ValueAccessor(argumentArray)); // TODO this is a fake cause we have no real process number in Java runtime.getGlobalVariables().defineReadonly("$$", new ValueAccessor(runtime.newFixnum(runtime.hashCode()))); runtime.defineVariable(new RubyGlobal.StringGlobalVariable(runtime, "$0", runtime.newString(filename))); runtime.getLoadService().init(commandline.loadPaths()); Iterator iter = commandline.requiredLibraries().iterator(); while (iter.hasNext()) { String scriptName = (String) iter.next(); RubyKernel.require(runtime.getTopSelf(), runtime.newString(scriptName)); } }
|
private void initializeRuntime(final IRuby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.getScriptArguments())); runtime.setVerbose(runtime.newBoolean(commandline.isVerbose())); runtime.setDebug(runtime.newBoolean(commandline.isDebug())); defineGlobalVERBOSE(runtime); defineGlobalDEBUG(runtime); runtime.getObject().setConstant("$VERBOSE", commandline.isVerbose() ? runtime.getTrue() : runtime.getNil()); runtime.defineGlobalConstant("ARGV", argumentArray); defineGlobal(runtime, "$-p", commandline.isAssumePrinting()); defineGlobal(runtime, "$-n", commandline.isAssumeLoop()); defineGlobal(runtime, "$-a", commandline.isSplit()); defineGlobal(runtime, "$-l", commandline.isProcessLineEnds()); runtime.getGlobalVariables().defineReadonly("$*", new ValueAccessor(argumentArray)); // TODO this is a fake cause we have no real process number in Java runtime.getGlobalVariables().defineReadonly("$$", new ValueAccessor(runtime.newFixnum(System.identityHashCode(runtime)))); runtime.defineVariable(new RubyGlobal.StringGlobalVariable(runtime, "$0", runtime.newString(filename))); runtime.getLoadService().init(commandline.loadPaths()); Iterator iter = commandline.requiredLibraries().iterator(); while (iter.hasNext()) { String scriptName = (String) iter.next(); RubyKernel.require(runtime.getTopSelf(), runtime.newString(scriptName)); } }
| 3,232,066
|
public int run(String[] args) { commandline = new CommandlineParser(this, args); if (commandline.isShowVersion()) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return 0; } long now = -1; if (commandline.isBenchmarking()) { now = System.currentTimeMillis(); } int status = runInterpreter(commandline); if (commandline.isBenchmarking()) { out.println("Runtime: " + (System.currentTimeMillis() - now) + " ms"); } return status; }
|
public int run(String[] args) { commandline = new CommandlineParser(args); commandline.processArguments(true); if (commandline.isShowVersion()) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return 0; } long now = -1; if (commandline.isBenchmarking()) { now = System.currentTimeMillis(); } int status = runInterpreter(commandline); if (commandline.isBenchmarking()) { out.println("Runtime: " + (System.currentTimeMillis() - now) + " ms"); } return status; }
| 3,232,067
|
public void execute() throws BuildException { Copyright.print(System.out); getJava().createArg().setValue("-i"); getJava().createArg().setValue(coverageDataFileName); getJava().createArg().setValue("-s"); getJava().createArg().setValue(src.toString()); getJava().createArg().setValue("-o"); getJava().createArg().setValue(destDir.toString()); getJava().createArg().setValue("-f"); getJava().createArg().setValue(format); if (getJava().executeJava() != 0) { throw new BuildException(); } }
|
public void execute() throws BuildException { Copyright.print(System.out); getJava().createArg().setValue("-i"); getJava().createArg().setValue(coverageDataFileName); getJava().createArg().setValue("-s"); getJava().createArg().setValue(src.toString()); getJava().createArg().setValue("-o"); getJava().createArg().setValue(destDir.toString()); getJava().createArg().setValue("-f"); getJava().createArg().setValue(format); if (getJava().executeJava() != 0) { throw new BuildException(); } }
| 3,232,069
|
public RubyClass defineClassUnder(String name, RubyClass superClass, RubyModule parentModule);
|
public RubyClass defineClassUnder(String name, RubyClass superClass, RubyModule parentModule);
| 3,232,070
|
public RubyModule defineModuleUnder(String name, RubyModule parentModule);
|
public RubyModule defineModuleUnder(String name, RubyModule parentModule);
| 3,232,071
|
static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (null == result) { return null; } if (null == rootNodeType) { throw new IllegalArgumentException( "Class parameter may not be null."); } if (rootNodeType.equals(Project.class)) { return PojoAdapterUtils.go((Project) result, newCache()); } else if (rootNodeType.equals(Dataset.class)) { return PojoAdapterUtils.go((Dataset) result, newCache()); } else { throw new IllegalArgumentException( "Method only takes Project and Dataset as argument."); } }
|
static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (null == result) { return null; } if (null == rootNodeType) { throw new IllegalArgumentException( "Class parameter may not be null."); } if (rootNodeType.equals(Project.class)) { return PojoAdapterUtils.go((Project) result, newCache()); } else if (rootNodeType.equals(Dataset.class)) { return PojoAdapterUtils.go((Dataset) result, newCache()); } else { throw new IllegalArgumentException( "Method only takes Project and Dataset as argument."); } }
| 3,232,072
|
public DiffHelper (Diff.change changes) { _changes = new ArrayList(); while (changes != null) { _changes.add (changes); changes = changes.link; } }
|
public DiffHelper (Diff.change changes) { _changes = new ArrayList(); while (changes != null) { _changes.add (changes); changes = changes.link; } }
| 3,232,074
|
public DiffHelper (Diff.change changes) { _changes = new ArrayList(); while (changes != null) { _changes.add (changes); changes = changes.link; } }
|
public DiffHelper (Diff.change changes) { _changes = new ArrayList(); while (changes != null) { _changeList.add (changes); changes = changes.link; } }
| 3,232,075
|
public int getDeleteCount(int line_no) { if (isModified(line_no)) return 0; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line1) return ch.deleted; } return 0; }
|
public int getDeleteCount(int line_no) { if (isModifiedRight(line_no)) return 0; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line1) return ch.deleted; } return 0; }
| 3,232,076
|
public int getDeleteCount(int line_no) { if (isModified(line_no)) return 0; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line1) return ch.deleted; } return 0; }
|
public int getDeleteCount(int line_no) { if (isModified(line_no)) return 0; for (Iterator itr = _changeList.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line1) return ch.deleted; } return 0; }
| 3,232,077
|
public int getInsertCount(int line_no) { if (isModified(line_no)) return 0; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line0) return ch.inserted; } return 0; }
|
public int getInsertCount(int line_no) { if (isModifiedRight(line_no)) return 0; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line0) return ch.inserted; } return 0; }
| 3,232,078
|
public int getInsertCount(int line_no) { if (isModified(line_no)) return 0; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line0) return ch.inserted; } return 0; }
|
public int getInsertCount(int line_no) { if (isModified(line_no)) return 0; for (Iterator itr = _changeList.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line0) return ch.inserted; } return 0; }
| 3,232,079
|
public boolean isDeleted(int line_no) { if (isModified(line_no)) return false; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (ch.line0 + ch.deleted > line_no && ch.line0 <= line_no) return true; } return false; }
|
public boolean isDeleted(int line_no) { if (isModifiedLeft(line_no)) return false; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (ch.line0 + ch.deleted > line_no && ch.line0 <= line_no) return true; } return false; }
| 3,232,080
|
public boolean isDeleted(int line_no) { if (isModified(line_no)) return false; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (ch.line0 + ch.deleted > line_no && ch.line0 <= line_no) return true; } return false; }
|
public boolean isDeleted(int line_no) { if (isModified(line_no)) return false; for (Iterator itr = _changeList.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (ch.line0 + ch.deleted > line_no && ch.line0 <= line_no) return true; } return false; }
| 3,232,081
|
public boolean isInserted(int line_no) { if (isModified(line_no)) return false; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no >= ch.line1 && line_no < ch.line1 + ch.inserted) return true; } return false; }
|
public boolean isInserted(int line_no) { if (isModifiedLeft(line_no)) return false; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no >= ch.line1 && line_no < ch.line1 + ch.inserted) return true; } return false; }
| 3,232,082
|
public boolean isInserted(int line_no) { if (isModified(line_no)) return false; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no >= ch.line1 && line_no < ch.line1 + ch.inserted) return true; } return false; }
|
public boolean isInserted(int line_no) { if (isModified(line_no)) return false; for (Iterator itr = _changeList.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no >= ch.line1 && line_no < ch.line1 + ch.inserted) return true; } return false; }
| 3,232,083
|
public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageAction.PageActionException { try { String current_version = wc.getForm("V1"); String old_version = wc.getForm("V2"); String page_name = wc.getForm("PAGE"); if (page_name == null) return; WikiPage tmp = wiki.getPage(page_name); WikiPage currentPage = wiki.getPage(current_version == null ? page_name : page_name + "." + current_version); if (currentPage == null) return; WikiPage oldPage = wiki.getPage(old_version == null ? page_name + "." + (currentPage.getVersion()-1) : page_name + "." + old_version); if (oldPage == null) oldPage = currentPage; boolean is_current = tmp.getVersion() == currentPage.getVersion(); String[] currentPageLines = WikiUtil.delimitedToArray(currentPage.getUnparsedData(), "\n"); String[] oldPageLines = WikiUtil.delimitedToArray(oldPage.getUnparsedData(), "\n"); Diff diff = new Diff(oldPageLines, currentPageLines); Diff.change changes = diff.diff(Diff.forwardScript); wc.put ("IsCurrent", is_current); wc.put ("CurrentPage", currentPage); wc.put ("OldPage", oldPage); wc.put ("CurrentPageLines", currentPageLines); wc.put ("OldPageLines", oldPageLines); wc.put ("DiffHelper", new DiffHelper (changes)); } catch (Exception e) { e.printStackTrace(); throw new PageAction.PageActionException(e.toString()); } }
|
public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageAction.PageActionException { try { String current_version = wc.getForm("V1"); String old_version = wc.getForm("V2"); String page_name = wc.getForm("PAGE"); if (page_name == null) return; WikiPage tmp = wiki.getPage(page_name); WikiPage currentPage = wiki.getPage(current_version == null ? page_name : page_name + "." + current_version); if (currentPage == null) return; WikiPage oldPage = wiki.getPage(old_version == null ? page_name + "." + (currentPage.getVersion()-1) : page_name + "." + old_version); if (oldPage == null) oldPage = currentPage; boolean is_current = tmp.getVersion() == currentPage.getVersion(); String[] currentPageLines = WikiUtil.delimitedToArray(currentPage.getUnparsedData(), "\n"); String[] oldPageLines = WikiUtil.delimitedToArray(oldPage.getUnparsedData(), "\n"); Diff diff = new Diff(oldPageLines, currentPageLines); Diff.change changes = diff.diff(Diff.forwardScript); wc.put ("IsCurrent", is_current); wc.put ("CurrentPage", currentPage); wc.put ("OldPage", oldPage); wc.put ("CurrentPageLines", currentPageLines); wc.put ("OldPageLines", oldPageLines); wc.put ("DiffHelper", new DiffHelper (changes)); } catch (Exception e) { e.printStackTrace(); throw new PageAction.PageActionException(e.toString()); } }
| 3,232,084
|
public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageAction.PageActionException { try { String current_version = wc.getForm("V1"); String old_version = wc.getForm("V2"); String page_name = wc.getForm("PAGE"); if (page_name == null) return; WikiPage tmp = wiki.getPage(page_name); WikiPage currentPage = wiki.getPage(current_version == null ? page_name : page_name + "." + current_version); if (currentPage == null) return; WikiPage oldPage = wiki.getPage(old_version == null ? page_name + "." + (currentPage.getVersion()-1) : page_name + "." + old_version); if (oldPage == null) oldPage = currentPage; boolean is_current = tmp.getVersion() == currentPage.getVersion(); String[] currentPageLines = WikiUtil.delimitedToArray(currentPage.getUnparsedData(), "\n"); String[] oldPageLines = WikiUtil.delimitedToArray(oldPage.getUnparsedData(), "\n"); Diff diff = new Diff(oldPageLines, currentPageLines); Diff.change changes = diff.diff(Diff.forwardScript); wc.put ("IsCurrent", is_current); wc.put ("CurrentPage", currentPage); wc.put ("OldPage", oldPage); wc.put ("CurrentPageLines", currentPageLines); wc.put ("OldPageLines", oldPageLines); wc.put ("DiffHelper", new DiffHelper (changes)); } catch (Exception e) { e.printStackTrace(); throw new PageAction.PageActionException(e.toString()); } }
|
public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageAction.PageActionException { try { String current_version = wc.getForm("V1"); String old_version = wc.getForm("V2"); String page_name = wc.getForm("PAGE"); if (page_name == null) return; WikiPage tmp = wiki.getPage(page_name); WikiPage currentPage = wiki.getPage(current_version == null ? page_name : page_name + "." + current_version); if (currentPage == null) return; WikiPage oldPage = wiki.getPage(old_version == null ? page_name + "." + (currentPage.getVersion()-1) : page_name + "." + old_version); if (oldPage == null) oldPage = currentPage; boolean is_current = tmp.getVersion() == currentPage.getVersion(); String[] currentPageLines = WikiUtil.delimitedToArray(currentPage.getUnparsedData(), "\n"); String[] oldPageLines = WikiUtil.delimitedToArray(oldPage.getUnparsedData(), "\n"); Diff diff = new Diff(oldPageLines, currentPageLines); Diff.change changes = diff.diff(Diff.forwardScript); wc.put ("IsCurrent", is_current); wc.put ("CurrentPage", currentPage); wc.put ("OldPage", oldPage); wc.put ("CurrentPageLines", currentPageLines); wc.put ("OldPageLines", oldPageLines); wc.put ("DiffHelper", new DiffHelper (changes)); } catch (Exception e) { e.printStackTrace(); throw new PageAction.PageActionException(e.toString()); } }
| 3,232,085
|
public IRubyObject close() { // Make sure any read()s after close fail. isOpen = false; return getRuntime().getNil(); }
|
public IRubyObject close() { // Make sure any read()s after close fail. isOpen = false; return getRuntime().getNil(); }
| 3,232,086
|
public static RubyClass createDirClass(Ruby runtime) { RubyClass dirClass = runtime.defineClass("Dir", runtime.getObject()); dirClass.includeModule(runtime.getModule("Enumerable")); CallbackFactory callbackFactory = runtime.callbackFactory(RubyDir.class); dirClass.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod("newInstance")); dirClass.defineSingletonMethod("glob", callbackFactory.getSingletonMethod("glob", RubyString.class)); dirClass.defineSingletonMethod("entries", callbackFactory.getSingletonMethod("entries", RubyString.class)); dirClass.defineSingletonMethod("[]", callbackFactory.getSingletonMethod("glob", RubyString.class)); // dirClass.defineAlias("[]", "glob"); dirClass.defineSingletonMethod("chdir", callbackFactory.getOptSingletonMethod("chdir")); dirClass.defineSingletonMethod("chroot", callbackFactory.getSingletonMethod("chroot", RubyString.class)); //dirClass.defineSingletonMethod("delete", callbackFactory.getSingletonMethod(RubyDir.class, "delete", RubyString.class)); dirClass.defineSingletonMethod("foreach", callbackFactory.getSingletonMethod("foreach", RubyString.class)); dirClass.defineSingletonMethod("getwd", callbackFactory.getSingletonMethod("getwd")); dirClass.defineSingletonMethod("pwd", callbackFactory.getSingletonMethod("getwd")); // dirClass.defineAlias("pwd", "getwd"); dirClass.defineSingletonMethod("mkdir", callbackFactory.getOptSingletonMethod("mkdir")); dirClass.defineSingletonMethod("open", callbackFactory.getSingletonMethod("open", RubyString.class)); dirClass.defineSingletonMethod("rmdir", callbackFactory.getSingletonMethod("rmdir", RubyString.class)); dirClass.defineSingletonMethod("unlink", callbackFactory.getSingletonMethod("rmdir", RubyString.class)); dirClass.defineSingletonMethod("delete", callbackFactory.getSingletonMethod("rmdir", RubyString.class)); // dirClass.defineAlias("unlink", "rmdir"); // dirClass.defineAlias("delete", "rmdir"); dirClass.defineMethod("close", callbackFactory.getMethod("close")); dirClass.defineMethod("each", callbackFactory.getMethod("each")); dirClass.defineMethod("entries", callbackFactory.getMethod("entries")); dirClass.defineMethod("tell", callbackFactory.getMethod("tell")); dirClass.defineAlias("pos", "tell"); dirClass.defineMethod("seek", callbackFactory.getMethod("seek", RubyFixnum.class)); dirClass.defineAlias("pos=", "seek"); dirClass.defineMethod("read", callbackFactory.getMethod("read")); dirClass.defineMethod("rewind", callbackFactory.getMethod("rewind")); dirClass.defineMethod("initialize", callbackFactory.getMethod("initialize", RubyString.class)); return dirClass; }
|
public static RubyClass createDirClass(Ruby runtime) { RubyClass dirClass = runtime.defineClass("Dir", runtime.getObject()); dirClass.includeModule(runtime.getModule("Enumerable")); CallbackFactory callbackFactory = runtime.callbackFactory(RubyDir.class); dirClass.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod("newInstance")); dirClass.defineSingletonMethod("glob", callbackFactory.getSingletonMethod("glob", RubyString.class)); dirClass.defineSingletonMethod("entries", callbackFactory.getSingletonMethod("entries", RubyString.class)); dirClass.defineSingletonMethod("[]", callbackFactory.getSingletonMethod("glob", RubyString.class)); // dirClass.defineAlias("[]", "glob"); dirClass.defineSingletonMethod("chdir", callbackFactory.getOptSingletonMethod("chdir")); dirClass.defineSingletonMethod("chroot", callbackFactory.getSingletonMethod("chroot", RubyString.class)); //dirClass.defineSingletonMethod("delete", callbackFactory.getSingletonMethod(RubyDir.class, "delete", RubyString.class)); dirClass.defineSingletonMethod("foreach", callbackFactory.getSingletonMethod("foreach", RubyString.class)); dirClass.defineSingletonMethod("getwd", callbackFactory.getSingletonMethod("getwd")); dirClass.defineSingletonMethod("pwd", callbackFactory.getSingletonMethod("getwd")); // dirClass.defineAlias("pwd", "getwd"); dirClass.defineSingletonMethod("mkdir", callbackFactory.getOptSingletonMethod("mkdir")); dirClass.defineSingletonMethod("open", callbackFactory.getSingletonMethod("open", RubyString.class)); dirClass.defineSingletonMethod("rmdir", callbackFactory.getSingletonMethod("rmdir", RubyString.class)); dirClass.defineSingletonMethod("unlink", callbackFactory.getSingletonMethod("rmdir", RubyString.class)); dirClass.defineSingletonMethod("delete", callbackFactory.getSingletonMethod("rmdir", RubyString.class)); // dirClass.defineAlias("unlink", "rmdir"); // dirClass.defineAlias("delete", "rmdir"); dirClass.defineMethod("close", callbackFactory.getMethod("close")); dirClass.defineMethod("each", callbackFactory.getMethod("each")); dirClass.defineMethod("entries", callbackFactory.getMethod("entries")); dirClass.defineMethod("tell", callbackFactory.getMethod("tell")); dirClass.defineAlias("pos", "tell"); dirClass.defineMethod("seek", callbackFactory.getMethod("seek", RubyFixnum.class)); dirClass.defineMethod("pos=", callbackFactory.getMethod("setPos", RubyFixnum.class)); dirClass.defineMethod("read", callbackFactory.getMethod("read")); dirClass.defineMethod("rewind", callbackFactory.getMethod("rewind")); dirClass.defineMethod("initialize", callbackFactory.getMethod("initialize", RubyString.class)); return dirClass; }
| 3,232,087
|
public IRubyObject seek(RubyFixnum newPos) { this.pos = (int) newPos.getLongValue(); return this; }
|
public IRubyObject seek(RubyFixnum newPos) { setPos(newPos); return this; }
| 3,232,089
|
FindRegExTitleVisitor(HiViewer viewer, String regEx) { super(viewer, regEx); colors = Colors.getInstance(); }
|
FindRegExTitleVisitor(HiViewer viewer, Pattern pattern) { super(viewer, regEx); colors = Colors.getInstance(); }
| 3,232,093
|
FindRegExTitleVisitor(HiViewer viewer, String regEx) { super(viewer, regEx); colors = Colors.getInstance(); }
|
FindRegExTitleVisitor(HiViewer viewer, String regEx) { super(viewer, pattern); colors = Colors.getInstance(); }
| 3,232,094
|
IObject findLink(IObject parent, IObject child) throws DSOutOfServiceException, DSAccessException { try { String table = getTableForLink(parent.getClass()); if (table == null) return null; String sql = "select link from "+table+" as link where " + "link.parent.id = :parentID and link.child.id = :childID"; IQuery service = getIQueryService(); Parameters param = new Parameters(); param.addLong("parentID", parent.getId()); param.addLong("childID", child.getId()); return service.findByQuery(sql, param); } catch (Exception e) { handleException(e, "Cannot retrieve the requested link for "+ "parent ID: "+parent.getId()+" and child ID: "+child.getId()); } return null; }
|
IObject findLink(IObject parent, IObject child) throws DSOutOfServiceException, DSAccessException { try { String table = getTableForLink(parent.getClass()); if (table == null) return null; String sql = "select link from "+table+" as link where " + "link.parent.id = :parentID and link.child.id = :childID"; IQuery service = getIQueryService(); Parameters param = new Parameters(); param.addLong("parentID", parent.getId()); param.addLong("childID", child.getId()); return service.findByQuery(sql, param); } catch (Exception e) { handleException(e, "Cannot retrieve the requested link for "+ "parent ID: "+parent.getId()+" and child ID: "+child.getId()); } return null; }
| 3,232,095
|
public long getLongValue() { long result = value.longValue(); if (! (BigInteger.valueOf(result).equals(value))) { throw new RangeError(ruby, "bignum too big to convert into 'int'"); } return result; }
|
public long getLongValue() { long result = value.longValue(); if (! (BigInteger.valueOf(result).equals(value))) { throw new RangeError(ruby, "bignum too big to convert into 'int'"); } return result; }
| 3,232,097
|
public List childNodes() { return Collections.EMPTY_LIST; }
|
public List childNodes() { return EMPTY_LIST; }
| 3,232,098
|
protected void makeBoundedCameraMotion(PCamera c, double deltaX, double deltaY) { PBounds pBounds = c.getViewBounds(); Rectangle2D rBounds = pBounds.getBounds2D(); double wOffset = activeRegion.getX(); double nOffset = activeRegion.getY(); double eOffset = activeRegion.getX()+activeRegion.getWidth(); double sOffset = activeRegion.getY()+activeRegion.getHeight(); double cWest = rBounds.getX(); double cNorth = rBounds.getY(); double cEast = rBounds.getX()+rBounds.getWidth(); double cSouth = rBounds.getY()+rBounds.getHeight(); double fdX = 0; double fdY = 0; // check horizontal panning bounds if(((-deltaX+cWest < wOffset) || (-deltaX+cEast > eOffset)) && deltaX != 0) { if(-deltaX+cWest < wOffset) { fdX = -wOffset; } else if(-deltaX+cEast > eOffset) { fdX = -(eOffset-cEast); } } else { fdX = deltaX; } // check vertical panning bounds if(((-deltaY+cNorth < nOffset) || (-deltaY+cSouth > sOffset)) && deltaY != 0) { if(-deltaY+cNorth < nOffset) { fdY = nOffset; } else if(-deltaY+cSouth > sOffset) { if(nOffset > 0) { fdY = -(sOffset-cSouth); } } } else { fdY = deltaY; } if(fdX != 0 || fdY != 0) { c.translateView(fdX,fdY); c.repaint(); } }
|
protected void makeBoundedCameraMotion(PCamera c, double deltaX, double deltaY) { PBounds pBounds = c.getViewBounds(); Rectangle2D rBounds = pBounds.getBounds2D(); double wOffset = activeRegion.getX(); double nOffset = activeRegion.getY(); double eOffset = activeRegion.getX()+activeRegion.getWidth(); double sOffset = activeRegion.getY()+activeRegion.getHeight(); double cWest = rBounds.getX(); double cNorth = rBounds.getY(); double cEast = rBounds.getX()+rBounds.getWidth(); double cSouth = rBounds.getY()+rBounds.getHeight(); double fdX = 0; double fdY = 0; // check horizontal panning bounds if(((-deltaX+cWest < wOffset) || (-deltaX+cEast > eOffset)) && deltaX != 0) { if(-deltaX+cWest < wOffset) { fdX = -wOffset; } else if(-deltaX+cEast > eOffset) { if(wOffset > 0) { fdX = -(eOffset-cEast); } } } else { fdX = deltaX; } // check vertical panning bounds if(((-deltaY+cNorth < nOffset) || (-deltaY+cSouth > sOffset)) && deltaY != 0) { if(-deltaY+cNorth < nOffset) { fdY = nOffset; } else if(-deltaY+cSouth > sOffset) { if(nOffset > 0) { fdY = -(sOffset-cSouth); } } } else { fdY = deltaY; } if(fdX != 0 || fdY != 0) { c.translateView(fdX,fdY); c.repaint(); } }
| 3,232,099
|
void setAnnotationSelected(boolean b) { if (b == model.isAnnotationSelected()) return; Boolean oldValue = model.isAnnotationSelected() ? Boolean.TRUE : Boolean.FALSE, newValue = b ? Boolean.TRUE : Boolean.FALSE; model.setAnnotationSelected(b); firePropertyChange(LEVEL_PROPERTY, oldValue, newValue); }
|
found = false; found = false; found = false; found = false; voidfound = false; setAnnotationSelected(booleanfound = false; b)found = false; found = false; found = false; found = false; {found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; iffound = false; (bfound = false; ==found = false; model.isAnnotationSelected())found = false; return;found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; Booleanfound = false; oldValuefound = false; =found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; model.isAnnotationSelected()found = false; ?found = false; Boolean.TRUEfound = false; :found = false; Boolean.FALSE,found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; newValuefound = false; =found = false; bfound = false; ?found = false; Boolean.TRUEfound = false; :found = false; Boolean.FALSE;found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; model.setAnnotationSelected(b);found = false; found = false; found = false; found = false; found = false; found = false; found = false; found = false; firePropertyChange(LEVEL_PROPERTY,found = false; oldValue,found = false; newValue);found = false; found = false; found = false; found = false; }
| 3,232,100
|
OmeroServiceImpl(OMEROGateway gateway, Registry registry) { if (registry == null) throw new IllegalArgumentException("No registry."); if (gateway == null) throw new IllegalArgumentException("No gateway."); context = registry; this.gateway = gateway; rmapper = new ReverseModelMapper(); }
|
OmeroServiceImpl(OMEROGateway gateway, Registry registry) { if (registry == null) throw new IllegalArgumentException("No registry."); if (gateway == null) throw new IllegalArgumentException("No gateway."); context = registry; this.gateway = gateway; }
| 3,232,103
|
public DataObject removeAnnotationFrom(DataObject annotatedObject, AnnotationData data) throws DSOutOfServiceException, DSAccessException { if (data == null) throw new IllegalArgumentException("No annotation to delete."); if (annotatedObject == null) throw new IllegalArgumentException("No annotated DataObject."); if (!(annotatedObject instanceof ImageData) && !(annotatedObject instanceof DatasetData)) throw new IllegalArgumentException("This method only supports " + "ImageData and DatasetData objects."); Map options = (new PojoOptions()).map(); gateway.deleteObject(data.asIObject(), options); return annotatedObject; }
|
public DataObject removeAnnotationFrom(DataObject annotatedObject, AnnotationData data) throws DSOutOfServiceException, DSAccessException { if (data == null) throw new IllegalArgumentException("No annotation to delete."); if (annotatedObject == null) throw new IllegalArgumentException("No annotated DataObject."); if (!(annotatedObject instanceof ImageData) && !(annotatedObject instanceof DatasetData)) throw new IllegalArgumentException("This method only supports " + "ImageData and DatasetData objects."); Map options = (new PojoOptions()).map(); gateway.deleteObject(data.asIObject(), options); return updateDataObject(annotatedObject); }
| 3,232,104
|
public DataObject updateDataObject(DataObject object) throws DSOutOfServiceException, DSAccessException { if (object == null) throw new DSAccessException("No object to update."); IObject ob = object.asIObject(); //ModelMapper.unloadCollections(ob);; IObject updated = gateway.updateObject(ob, (new PojoOptions()).map()); return PojoMapper.asDataObject(updated); }
|
ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; publicModelMapper.unloadCollections(ob);; DataObjectModelMapper.unloadCollections(ob);; updateDataObject(DataObjectModelMapper.unloadCollections(ob);; object)ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; throwsModelMapper.unloadCollections(ob);; DSOutOfServiceException,ModelMapper.unloadCollections(ob);; DSAccessExceptionModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; {ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ifModelMapper.unloadCollections(ob);; (objectModelMapper.unloadCollections(ob);; ==ModelMapper.unloadCollections(ob);; null)ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; throwModelMapper.unloadCollections(ob);; newModelMapper.unloadCollections(ob);; DSAccessException("NoModelMapper.unloadCollections(ob);; objectModelMapper.unloadCollections(ob);; toModelMapper.unloadCollections(ob);; update.");ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; IObjectModelMapper.unloadCollections(ob);; obModelMapper.unloadCollections(ob);; =ModelMapper.unloadCollections(ob);; object.asIObject();ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; //ModelMapper.unloadCollections(ob);;ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; IObjectModelMapper.unloadCollections(ob);; updatedModelMapper.unloadCollections(ob);; =ModelMapper.unloadCollections(ob);; gateway.updateObject(ob,ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; (newModelMapper.unloadCollections(ob);; PojoOptions()).map());ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; returnModelMapper.unloadCollections(ob);; PojoMapper.asDataObject(updated);ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; ModelMapper.unloadCollections(ob);; }
| 3,232,105
|
public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else if (!selected && boldWhenActive) { textLabel.setFont(defaultFont); } else if(selected){ textLabel.setFont(defaultFont); } invalidate(); repaint(); }
|
public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else if (!selected && boldWhenActive) { textLabel.setFont(defaultFont); } else if(selected){ textLabel.setFont(defaultFont); } invalidate(); repaint(); }
| 3,232,106
|
private static TinyDialog getWindowFor(ImageNode node) { ImageData ho = (ImageData) node.getHierarchyObject(); final Integer id = new Integer(ho.getId()); TinyDialog w = (TinyDialog) windows.get(id); if (w == null) { Thumbnail prv = node.getThumbnail(); BufferedImage full = prv.getFullScaleThumb(); if (full != null) { //NOTE: Right now we pre-fetch all images so full != null //unless they click on node at init time, when the thumbs //are being loaded. w = new ThumbWin((JFrame) node.getTopLevelAncestor(), full, ho); //TODO: We assume getFullScaleThumb returns a *pre-fetched* image. //If this is not the case and we load async, then we need a //callback handler. w.addPropertyChangeListener(TinyDialog.CLOSED_PROPERTY, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent pce) { windows.remove(id); } }); windows.put(id, w); w.setTitle(node.getTitle()); } } return w; }
|
private static TinyDialog getWindowFor(ImageNode node, HiViewer model) { ImageData ho = (ImageData) node.getHierarchyObject(); final Integer id = new Integer(ho.getId()); TinyDialog w = (TinyDialog) windows.get(id); if (w == null) { Thumbnail prv = node.getThumbnail(); BufferedImage full = prv.getFullScaleThumb(); if (full != null) { //NOTE: Right now we pre-fetch all images so full != null //unless they click on node at init time, when the thumbs //are being loaded. w = new ThumbWin((JFrame) node.getTopLevelAncestor(), full, ho); //TODO: We assume getFullScaleThumb returns a *pre-fetched* image. //If this is not the case and we load async, then we need a //callback handler. w.addPropertyChangeListener(TinyDialog.CLOSED_PROPERTY, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent pce) { windows.remove(id); } }); windows.put(id, w); w.setTitle(node.getTitle()); } } return w; }
| 3,232,108
|
private static TinyDialog getWindowFor(ImageNode node) { ImageData ho = (ImageData) node.getHierarchyObject(); final Integer id = new Integer(ho.getId()); TinyDialog w = (TinyDialog) windows.get(id); if (w == null) { Thumbnail prv = node.getThumbnail(); BufferedImage full = prv.getFullScaleThumb(); if (full != null) { //NOTE: Right now we pre-fetch all images so full != null //unless they click on node at init time, when the thumbs //are being loaded. w = new ThumbWin((JFrame) node.getTopLevelAncestor(), full, ho); //TODO: We assume getFullScaleThumb returns a *pre-fetched* image. //If this is not the case and we load async, then we need a //callback handler. w.addPropertyChangeListener(TinyDialog.CLOSED_PROPERTY, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent pce) { windows.remove(id); } }); windows.put(id, w); w.setTitle(node.getTitle()); } } return w; }
|
private static TinyDialog getWindowFor(ImageNode node) { ImageData ho = (ImageData) node.getHierarchyObject(); final Integer id = new Integer(ho.getId()); TinyDialog w = (TinyDialog) windows.get(id); if (w == null) { Thumbnail prv = node.getThumbnail(); BufferedImage full = prv.getFullScaleThumb(); if (full != null) { //NOTE: Right now we pre-fetch all images so full != null //unless they click on node at init time, when the thumbs //are being loaded. w = new ThumbWin((JFrame) node.getTopLevelAncestor(), full, ho, model, node); //TODO: We assume getFullScaleThumb returns a *pre-fetched* image. //If this is not the case and we load async, then we need a //callback handler. w.addPropertyChangeListener(TinyDialog.CLOSED_PROPERTY, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent pce) { windows.remove(id); } }); windows.put(id, w); w.setTitle(node.getTitle()); } } return w; }
| 3,232,109
|
public static Image getClipboard() { Transferable t = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null); try { if (t != null && t.isDataFlavorSupported(DataFlavor.imageFlavor)) { Image text = (Image)t.getTransferData(DataFlavor.imageFlavor); return text; } } catch (UnsupportedFlavorException e) { } catch (IOException e) { } return null; }
|
public static Image getClipboard() { Transferable t = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null); try { if (t != null && t.isDataFlavorSupported(DataFlavor.imageFlavor)) { Image text = (Image)t.getTransferData(DataFlavor.imageFlavor); return text; } } catch (UnsupportedFlavorException e) { } catch (IOException e) { } return null; }
| 3,232,111
|
public void sendImage(final Image image, final ChatRoom room) { File tmpDirectory = new File(Spark.getUserHome(), "Spark/tmp"); tmpDirectory.mkdirs(); String imageName = "image_" + StringUtils.randomString(2) + ".png"; final File imageFile = new File(tmpDirectory, imageName); // Write image to system. SwingWorker worker = new SwingWorker() { public Object construct() { try { // Write out file in separate thread. BufferedImage bi = GraphicUtils.convert(image); ImageIO.write(bi, "png", imageFile); } catch (InterruptedException e) { Log.error(e); } catch (IOException e) { Log.error(e); } return "ok"; } public void finished() { ChatRoomImpl roomImpl = (ChatRoomImpl)room; sendFile(imageFile, roomImpl.getParticipantJID()); SparkManager.getChatManager().getChatContainer().activateChatRoom(room); } }; worker.start(); }
|
public void sendImage(final Image image, final ChatRoom room) { File tmpDirectory = new File(Spark.getUserHome(), "Spark/tempImages"); tmpDirectory.mkdirs(); String imageName = "image_" + StringUtils.randomString(2) + ".png"; final File imageFile = new File(tmpDirectory, imageName); // Write image to system. SwingWorker worker = new SwingWorker() { public Object construct() { try { // Write out file in separate thread. BufferedImage bi = GraphicUtils.convert(image); ImageIO.write(bi, "png", imageFile); } catch (InterruptedException e) { Log.error(e); } catch (IOException e) { Log.error(e); } return "ok"; } public void finished() { ChatRoomImpl roomImpl = (ChatRoomImpl)room; sendFile(imageFile, roomImpl.getParticipantJID()); SparkManager.getChatManager().getChatContainer().activateChatRoom(room); } }; worker.start(); }
| 3,232,112
|
public void sendImage(final Image image, final ChatRoom room) { File tmpDirectory = new File(Spark.getUserHome(), "Spark/tmp"); tmpDirectory.mkdirs(); String imageName = "image_" + StringUtils.randomString(2) + ".png"; final File imageFile = new File(tmpDirectory, imageName); // Write image to system. SwingWorker worker = new SwingWorker() { public Object construct() { try { // Write out file in separate thread. BufferedImage bi = GraphicUtils.convert(image); ImageIO.write(bi, "png", imageFile); } catch (InterruptedException e) { Log.error(e); } catch (IOException e) { Log.error(e); } return "ok"; } public void finished() { ChatRoomImpl roomImpl = (ChatRoomImpl)room; sendFile(imageFile, roomImpl.getParticipantJID()); SparkManager.getChatManager().getChatContainer().activateChatRoom(room); } }; worker.start(); }
|
public void sendImage(final Image image, final ChatRoom room) { File tmpDirectory = new File(Spark.getUserHome(), "Spark/tmp"); tmpDirectory.mkdirs(); String imageName = "image_" + StringUtils.randomString(2) + ".png"; final File imageFile = new File(tmpDirectory, imageName); // Write image to system. SwingWorker worker = new SwingWorker() { public Object construct() { try { // Write out file in separate thread. BufferedImage bi = GraphicUtils.convert(image); ImageIO.write(bi, "png", imageFile); } catch (InterruptedException e) { Log.error(e); } catch (IOException e) { Log.error(e); } return true; } public void finished() { ChatRoomImpl roomImpl = (ChatRoomImpl)room; sendFile(imageFile, roomImpl.getParticipantJID()); SparkManager.getChatManager().getChatContainer().activateChatRoom(room); } }; worker.start(); }
| 3,232,113
|
public Object construct() { try { // Write out file in separate thread. BufferedImage bi = GraphicUtils.convert(image); ImageIO.write(bi, "png", imageFile); } catch (InterruptedException e) { Log.error(e); } catch (IOException e) { Log.error(e); } return "ok"; }
|
public Object construct() { try { // Write out file in separate thread. BufferedImage bi = GraphicUtils.convert(image); ImageIO.write(bi, "png", imageFile); } catch (InterruptedException e) { Log.error(e); } catch (IOException e) { Log.error(e); } return true; }
| 3,232,115
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.