bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public Node parse(String content, String file) { return parser.parse(file, content); } | public Node parse(Reader content, String file) { return parser.parse(file, content); } | 3,227,555 |
public static synchronized JavaObject wrap(Ruby runtime, Object value) { if (value == null) { return new NullJavaObject(runtime); } JavaObject wrapper = runtime.getJavaSupport().getJavaObjectFromCache(value); if (wrapper == null) { if (value.getClass().isArray()) { ... | public static synchronized JavaObject wrap(Ruby runtime, Object value) { if (value == null) { return new NullJavaObject(runtime); } JavaObject wrapper = runtime.getJavaSupport().getJavaObjectFromCache(value); if (wrapper == null) { if (value.getClass().isArray()) { ... | 3,227,556 |
public static synchronized JavaObject wrap(Ruby runtime, Object value) { if (value == null) { return new NullJavaObject(runtime); } JavaObject wrapper = runtime.getJavaSupport().getJavaObjectFromCache(value); if (wrapper == null) { if (value.getClass().isArray()) { ... | public static synchronized JavaObject wrap(Ruby runtime, Object value) { if (value == null) { return new NullJavaObject(runtime); } JavaObject wrapper = runtime.getJavaSupport().getJavaObjectFromCache(value); if (wrapper == null) { if (value != null && value.getClas... | 3,227,557 |
void showImages(List images) { removeAll(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(Box.createRigidArea(DataManagerUIF.VBOX)); add(componentsPanel); add(Box.createRigidArea(DataManagerUIF.VBOX)); if (images != null && images.size() != 0) { add(bu... | void showImages(List images) { removeAll(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(Box.createRigidArea(DataManagerUIF.VBOX)); add(componentsPanel); add(Box.createRigidArea(DataManagerUIF.VBOX)); if (images != null && images.size() != 0) { add(bu... | 3,227,558 |
public static Code create(String lang) { if (lang == null) { return NIL; } else if (lang.charAt(0) == 'n' || lang.charAt(0) == 'N') { return NONE; } else if (lang.charAt(0) == 'u' || lang.charAt(0) == 'U') { return UTF8; } else if (lang.charAt(0) == 's' || lang.charAt(0) == 'S') { return SJIS; }... | public static Code create(String lang) { if (lang == null) { return NIL; } else if (lang.charAt(0) == 'n' || lang.charAt(0) == 'N') { return NONE; } else if (lang.charAt(0) == 'u' || lang.charAt(0) == 'U') { return UTF8; } else if (lang.charAt(0) == 's' || lang.charAt(0) == 'S') { return SJIS; }... | 3,227,559 |
public RubyString inspect() { final String regex = pattern.pattern(); final int length = regex.length(); StringBuffer sb = new StringBuffer(length + 2); sb.append('/'); for (int i = 0; i < length; i++) { char c = regex.charAt(i); if (RubyString.isAlnum(c)) { ... | public RubyString inspect() { final String regex = pattern.pattern(); final int length = regex.length(); StringBuffer sb = new StringBuffer(length + 2); sb.append('/'); for (int i = 0; i < length; i++) { char c = regex.charAt(i); if (RubyString.isAlnum(c)) { ... | 3,227,562 |
public String sprintf(int x) throws IllegalArgumentException { Enumeration e = vFmt.elements(); ConversionSpecification cs = null; char c = 0; StringBuffer sb = new StringBuffer(); while (e.hasMoreElements()) { cs = (ConversionSpecification) e.nextElement(); ... | public String sprintf(Object[] o) { Enumeration e = vFmt.elements(); ConversionSpecification cs = null; char c = 0; StringBuffer sb = new StringBuffer(); while (e.hasMoreElements()) { cs = (ConversionSpecification) e.nextElement(); c = cs.getConversionCharact... | 3,227,564 |
public String sprintf(int x) throws IllegalArgumentException { Enumeration e = vFmt.elements(); ConversionSpecification cs = null; char c = 0; StringBuffer sb = new StringBuffer(); while (e.hasMoreElements()) { cs = (ConversionSpecification) e.nextElement(); ... | public String sprintf(int x) throws IllegalArgumentException { Enumeration e = vFmt.elements(); ConversionSpecification cs = null; char c = 0; StringBuffer sb = new StringBuffer(); while (e.hasMoreElements()) { cs = (ConversionSpecification) e.nextElement(); ... | 3,227,565 |
public static RubyClass createIntegerClass(Ruby ruby) { RubyClass integerClass = ruby.defineClass("Integer", ruby.getClasses().getNumericClass()); integerClass.defineMethod("chr", CallbackFactory.getMethod(RubyInteger.class, "chr")); integerClass.defineMethod("integer?", CallbackFactory.getMeth... | public static RubyClass createIntegerClass(Ruby ruby) { RubyClass integerClass = ruby.defineClass("Integer", ruby.getClasses().getNumericClass()); integerClass.defineMethod("chr", CallbackFactory.getMethod(RubyInteger.class, "chr")); integerClass.defineMethod("integer?", CallbackFactory.getMeth... | 3,227,566 |
public RubyRegexp(Ruby ruby) { super(ruby, ruby.getRubyClass("Regexp")); try { matcher = (IRegexpAdapter) ruby.getRegexpAdapterClass().newInstance(); } catch (Exception ex) { // can't happen if JRuby is invoked via Main class throw new RubyBugException("Couldn't... | public RubyRegexp(Ruby ruby) { super(ruby, ruby.getRubyClass("Regexp")); try { matcher = (IRegexpAdapter) ruby.getRegexpAdapterClass().newInstance(); } catch (Exception ex) { // can't happen if JRuby is invoked via Main class Asserts.assertNotReached("Couldn't c... | 3,227,567 |
public IRubyObject upto(IRubyObject str, boolean excl) { RubyString current = this; RubyString end = stringValue(str); while (current.cmp(end) <= 0) { getRuntime().yield(current); if (current.cmp(end) == 0) { break; } current = current.succ(false); if (excl && current.cmp(end) == 0) { break; } i... | public IRubyObject upto(IRubyObject str, boolean excl) { RubyString current = this; RubyString end = stringValue(str); while (current.cmp(end) <= 0) { getRuntime().yield(current); if (current.cmp(end) == 0) { break; } current = current.succ(false); if (excl && current.cmp(end) == 0) { break; } i... | 3,227,569 |
public RangeError(Ruby ruby, String msg) { super(ruby, ruby.getExceptions().getNameError(), msg); } | public RangeError(Ruby ruby, String msg) { super(ruby, ruby.getExceptions().getRangeError(), msg); } | 3,227,570 |
public void write(FastWriter out, Context context) throws ContextException, IOException { Object l, limit, from; long loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; while (li... | public void write(FastWriter out, Context context) throws ContextException, IOException { Object l, limit, from; long loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; while (li... | 3,227,572 |
public void write(FastWriter out, Context context) throws ContextException, IOException { Object l, limit, from; long loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; while (li... | public void write(FastWriter out, Context context) throws ContextException, IOException { Object l, limit, from; long loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; while (li... | 3,227,573 |
public void write(FastWriter out, Context context) throws ContextException, IOException { Object l, limit, from; long loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; while (li... | public void write(FastWriter out, Context context) throws ContextException, IOException { Object l, limit, from; long loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; while (li... | 3,227,574 |
public Object getArg(int argId, BuildContext bc) throws BuildException { if (buildArgs == null) return null; else return buildArgs.getArg(argId, bc); } | public Object getArg(int argId) throws BuildException { if (buildArgs == null) return null; else return buildArgs.getArg(argId, bc); } | 3,227,575 |
public Object getArg(int argId, BuildContext bc) throws BuildException { if (buildArgs == null) return null; else return buildArgs.getArg(argId, bc); } | public Object getArg(int argId, BuildContext bc) throws BuildException { if (buildArgs == null) return null; else return buildArgs.getArg(argId, bc); } | 3,227,576 |
public static void createObjectClass(RubyModule kernelModule) { // TODO: convert to CallbackFactory invokes. Callback clone = new ReflectionCallbackMethod(RubyObject.class, "rbClone"); Callback dup = new ReflectionCallbackMethod(RubyObject.class, "dup"); Callback equal = new ReflectionCa... | public static void createObjectClass(RubyModule kernelModule) { // TODO: convert to CallbackFactory invokes. Callback clone = new ReflectionCallbackMethod(RubyObject.class, "rbClone"); Callback dup = new ReflectionCallbackMethod(RubyObject.class, "dup"); Callback equal = new ReflectionCa... | 3,227,577 |
public RubyBoolean kind_of(RubyModule type) { RubyClass currType = getRubyClass(); while (currType != null) { if (currType == type || currType.getMethods().keySet().retainAll(type.getMethods().keySet())) { return getRuby().getTrue(); } currType = currTyp... | public RubyBoolean kind_of(RubyModule type) { RubyClass currType = getRubyClass(); while (currType != null) { if (currType == type || currType.getMethods().keySet().containsAll(type.getMethods().keySet())) { return getRuby().getTrue(); } currType = currT... | 3,227,578 |
public RubyObject method_missing(RubyObject symbol, RubyObject[] args) { // +++ // IMPLEMENT THIS METHOD // --- Ruby ruby = getRuby(); throw new NameError( ruby, ruby.getSourceFile() + ":" + ruby.getSourceLine() + " undefined method '" + symbol.toId() + "' fo... | public RubyObject method_missing(RubyObject symbol, RubyObject[] args) { // +++ // IMPLEMENT THIS METHOD // --- Ruby ruby = getRuby(); throw new NameError( ruby, ruby.getSourceFile() + ":" + ruby.getSourceLine() + " undefined method '" + symbol.toId() + "' fo... | 3,227,579 |
public RubyObject send(RubyString method, RubyObject[] args) { try { getRuby().getIter().push(getRuby().isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); return getRubyClass().call(this, method.getValue(), new RubyPointer(args), 1); } finally { getRuby().getIter... | public RubyObject send(RubyObject method, RubyObject[] args) { try { getRuby().getIter().push(getRuby().isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); return getRubyClass().call(this, method.getValue(), new RubyPointer(args), 1); } finally { getRuby().getIter... | 3,227,580 |
public RubyObject send(RubyString method, RubyObject[] args) { try { getRuby().getIter().push(getRuby().isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); return getRubyClass().call(this, method.getValue(), new RubyPointer(args), 1); } finally { getRuby().getIter... | public RubyObject send(RubyString method, RubyObject[] args) { try { getRuby().getIter().push(getRuby().isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); return getRubyClass().call(this, method.toId(), new RubyPointer(args), 1); } finally { getRuby().getIter().p... | 3,227,581 |
public static Callback getFalseMethod() { return new Callback() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return ruby.getFalse(); } }; } | public static Callback getFalseMethod(final int arity) { return new Callback() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return ruby.getFalse(); } }; } | 3,227,582 |
public IRubyObject eval(IRubyObject src, IRubyObject scope, String file, int line) { ThreadContext threadContext = runtime.getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); Iter iter = threadContext.getCurrentFrame().getIter(); if (file == null) { ... | public IRubyObject eval(IRubyObject src, IRubyObject scope, String file, int line) { ThreadContext threadContext = runtime.getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); Iter iter = threadContext.getCurrentFrame().getIter(); if (file == null) { ... | 3,227,584 |
public NODE searchMethod(RubyId id) { RubyModule rubyModule = getMethodOrigin(id); if (rubyModule != null) { return (NODE)rubyModule.getMethods().get(id); } return null; } | public NODE searchMethod(RubyId id) { RubyModule rubyModule = getMethodOrigin(id); if (rubyModule != null) { return (NODE)rubyModule.getMethods().get(id); } return null; } | 3,227,585 |
public NODE searchMethod(RubyId id) { RubyModule rubyModule = getMethodOrigin(id); if (rubyModule != null) { return (NODE)rubyModule.getMethods().get(id); } return null; } | public NODE searchMethod(RubyId id) { RubyModule rubyModule = getMethodOrigin(id); if (rubyModule != null) { return (NODE)rubyModule.getMethods().get(id); } } | 3,227,586 |
public RubyModule getSingletonClassClone() { if (!isSingleton()) { return this; } RubyModule clone = new RubyClass(getRuby(), null, getSuperClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); //clon... | public RubyModule getSingletonClassClone() { if (!isSingleton()) { return this; } RubyModule clone = new RubyClass(getRuby(), getSuperClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); //clone.setM... | 3,227,587 |
public RubyFixnum hash() { return getRuntime().newFixnum(hashCode()); } | public RubyFixnum hash() { return getRuntime().newFixnum(value.hashCode()); } | 3,227,588 |
public abstract RubyNumeric multiplyWith(RubyInteger value); | public abstract RubyNumeric multiplyWith(RubyInteger value); | 3,227,589 |
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object o = builder.getArg(PARSE_TEMPLATE, bc); if (o instanceof Macro) { template = (Macro) o; return this; } else try { return bc.getBroker().get("template", o.toString()... | public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object o = builder.getArg(PARSE_TEMPLATE, bc); if (o instanceof Macro) { template = (Macro) o; return this; } else try { return bc.getBroker().get("template", o.toString()... | 3,227,591 |
public void write(FastWriter out, Context context) throws ContextException, IOException { String fname = template.evaluate(context).toString(); try { Template tmpl = (Template) context.getBroker().get("template", fname); tmpl.write(out,context); } catch (IOException e) { String warning = "... | public void write(FastWriter out, Context context) throws ContextException, IOException { String fname = template.evaluate(context).toString(); try { Template tmpl = (Template) context.getBroker().get("template", fname); tmpl.write(out,context); } catch (IOException e) { String warning = "... | 3,227,592 |
public void write(FastWriter out, Context context) throws ContextException, IOException { String fname = template.evaluate(context).toString(); try { Template tmpl = (Template) context.getBroker().get("template", fname); tmpl.write(out,context); } catch (IOException e) { String warning = "... | public void write(FastWriter out, Context context) throws ContextException, IOException { String fname = template.evaluate(context).toString(); try { Template tmpl = (Template) context.getBroker().get("template", fname); tmpl.write(out,context); } catch (IOException e) { String warning = "... | 3,227,593 |
protected String getFile(Broker b, String name) throws PropertyException { try { return b.get("url", name).toString(); } catch (ResourceException re) { try { try { // The UrlProvider knows, how to do this, // so let him do the work for us ... | protected String getFile(Broker b, String name) throws PropertyException { try { return b.get("url", name).toString(); } catch (ResourceException re) { try { try { // The UrlProvider knows, how to do this, // so let him do the work for us ... | 3,227,594 |
protected String getFile(Broker b, String name) throws PropertyException { try { return b.get("url", name).toString(); } catch (ResourceException re) { try { try { // The UrlProvider knows, how to do this, // so let him do the work for us ... | protected String getFile(Broker b, String name) throws PropertyException { try { url = b.getResource(name); if (url == null) throw makePropertyException("Resource not found by URL provider or Broker"); URLConnection conn = url.openConnection(); StringBuffer sb = new StringBuffer (); InputStream in = con... | 3,227,595 |
protected String getFile(Broker b, String name) throws PropertyException { try { return b.get("url", name).toString(); } catch (ResourceException re) { try { try { // The UrlProvider knows, how to do this, // so let him do the work for us ... | protected String getFile(Broker b, String name) throws PropertyException { try { return b.get("url", name).toString(); } catch (ResourceException re) { try { try { // The UrlProvider knows, how to do this, // so let him do the work for us ... | 3,227,596 |
protected String getFile(Broker b, String name) throws PropertyException { try { return b.get("url", name).toString(); } catch (ResourceException re) { try { try { // The UrlProvider knows, how to do this, // so let him do the work for us ... | protected String getFile(Broker b, String name) throws PropertyException { try { return b.get("url", name).toString(); } catch (ResourceException re) { try { try { // The UrlProvider knows, how to do this, // so let him do the work for us ... | 3,227,597 |
public void setSelected(boolean v) { if (ChainBuilderAgent.DEBUG) System.err.println(" setting a link to be selected.."); LinkTarget startTarget = getStartLinkTarget(); LinkTarget endTarget = getEndLinkTarget(); startTarget.setSelected(v); endTarget.setSelected(v); targets.removeAllChildren(); if (v == true) ... | public void setSelected(boolean v) { if (ChainBuilderAgent.DEBUG) System.err.println(" setting a link to be selected.."); LinkTarget startTarget = getStartLinkTarget(); LinkTarget endTarget = getEndLinkTarget(); startTarget.setSelected(v); endTarget.setSelected(v); targets.removeAllChildren(); if (v == true) ... | 3,227,598 |
public void execute() throws BuildException { Map fileMap = new HashMap(); FileNameMapper mapper = null; if (mapperElement != null) { mapper = mapperElement.getImplementation(); } else { mapper = new GlobPatternMapper(); mapper.setFrom("*.rb"); ... | public void execute() throws BuildException { Map fileMap = new HashMap(); FileNameMapper mapper = null; if (mapperElement != null) { mapper = mapperElement.getImplementation(); } else { mapper = new GlobPatternMapper(); mapper.setFrom("*.rb"); ... | 3,227,599 |
public void addClassData(ClassData classData) { // this method aggregates data if classData is an inner class // with the data from the top level class that it is contained in LOGGER.debug("addClassData: " + classData.getName()); String parentClassName = getClassNameIgnoreInner(classData.getName()); ... | public void addClassData(ClassData classData) { // this method aggregates data if classData is an inner class // with the data from the top level class that it is contained in LOGGER.debug("addClassData: " + classData.getName()); String parentClassName = getClassNameIgnoreInner(classData.getName()); ... | 3,227,600 |
public void create() { super.create(); delegate = (IPojos) applicationContext.getBean( IPojos.class.getName()); } | public void create() { super.create(); delegate = (IPojos) applicationContext.getBean( IPojos.class.getName()); } | 3,227,601 |
public Object invoke( InvocationContext context ) throws Exception { return wrap( context, "&pojosService" ); } | public Object invoke( InvocationContext context ) throws Exception { return wrap( context, IPojos.class ); } | 3,227,602 |
public static IRubyObject each_object(IRubyObject recv, IRubyObject[] args) { RubyModule rubyClass; if (args.length == 0) { rubyClass = recv.getRuntime().getObject(); } else { rubyClass = (RubyModule) args[0]; } int count = 0; Iterator iter = recv.getR... | public static IRubyObject each_object(IRubyObject recv, IRubyObject[] args) { RubyModule rubyClass; if (args.length == 0) { rubyClass = recv.getRuntime().getObject(); } else { rubyClass = (RubyModule) args[0]; } int count = 0; Iterator iter = recv.getR... | 3,227,603 |
public static IRubyObject each_object(IRubyObject recv, IRubyObject[] args) { RubyModule rubyClass; if (args.length == 0) { rubyClass = recv.getRuntime().getObject(); } else { rubyClass = (RubyModule) args[0]; } int count = 0; Iterator iter = recv.getR... | public static IRubyObject each_object(IRubyObject recv, IRubyObject[] args) { RubyModule rubyClass; if (args.length == 0) { rubyClass = recv.getRuntime().getObject(); } else { rubyClass = (RubyModule) args[0]; } int count = 0; Iterator iter = recv.getR... | 3,227,604 |
public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG_TI... | 3,227,605 |
public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | 3,227,606 |
public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG_TI... | 3,227,607 |
public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | 3,227,608 |
public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | 3,227,609 |
private void scaleAreas(ArrayList views) { PaletteChainView view; Collections.sort(views); /* // get smallest area PaletteChainView smallest= (PaletteChainView) views.get(0); double logSmallestArea = Math.log(smallest.getArea()); double logArea; double ratio; double newArea; double scale; Iterator iter = ... | private void scaleAreas(ArrayList views) { PaletteChainView view; Collections.sort(views); /* // get smallest area PaletteChainView smallest= (PaletteChainView) views.get(0); double logSmallestArea = Math.log(smallest.getArea()); double logArea; double ratio; double newArea; double scale; Iterator iter = ... | 3,227,610 |
private void scaleAreas(ArrayList views) { PaletteChainView view; Collections.sort(views); /* // get smallest area PaletteChainView smallest= (PaletteChainView) views.get(0); double logSmallestArea = Math.log(smallest.getArea()); double logArea; double ratio; double newArea; double scale; Iterator iter = ... | private void scaleAreas(ArrayList views) { PaletteChainView view; Collections.sort(views); /* // get smallest area PaletteChainView smallest= (PaletteChainView) views.get(0); double logSmallestArea = Math.log(smallest.getArea()); double logArea; double ratio; double newArea; double scale; Iterator iter = ... | 3,227,611 |
private void scaleAreas(ArrayList views) { PaletteChainView view; Collections.sort(views); /* // get smallest area PaletteChainView smallest= (PaletteChainView) views.get(0); double logSmallestArea = Math.log(smallest.getArea()); double logArea; double ratio; double newArea; double scale; Iterator iter = ... | private void scaleAreas(ArrayList views) { PaletteChainView view; Collections.sort(views); /* // get smallest area PaletteChainView smallest= (PaletteChainView) views.get(0); double logSmallestArea = Math.log(smallest.getArea()); double logArea; double ratio; double newArea; double scale; Iterator iter = ... | 3,227,612 |
public PaletteChainView(LayoutChainData chain,ChainDataManager dataManager) { super(chain); this.registry = dataManager.getRegistry(); this.executions = dataManager.getChainExecutionsByChainID(chain.getID()); if (executions != null) { System.err.println("palette chain.."+chain.getName()+"...executions.." +e... | public PaletteChainView(LayoutChainData chain,ChainDataManager dataManager) { super(chain); this.registry = dataManager.getRegistry(); this.executions = dataManager.getChainExecutionsByChainID(chain.getID()); if (executions != null) { System.err.println("palette chain.."+chain.getName()+"...executions.." +e... | 3,227,613 |
private void rest() { serviceNotificationErrorCalled = false; } | private void rest() { notificationCalled = false; } | 3,227,614 |
public void serviceNotificationError(ServiceMonitor serviceMonitor, ServiceEvent serviceEvent, Throwable throwable) { assertFalse(serviceNotificationErrorCalled); serviceNotificationErrorCalled = true; assertSame(SERVICE_MONITOR, serviceMonitor); assertSame(SERVICE_EV... | public void serviceNotificationError(ServiceMonitor serviceMonitor, ServiceEvent serviceEvent, Throwable throwable) { assertFalse(serviceNotificationErrorCalled); serviceNotificationErrorCalled = true; assertSame(SERVICE_MONITOR, serviceMonitor); assertSame(SERVICE_EV... | 3,227,615 |
public void testDoubleAdd() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.serviceNotificationError(SERVICE_MONITOR, SERVICE_EVENT,... | public void testDoubleAdd() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.serviceNotificationError(SERVICE_MONITOR, SERVICE_EVENT,... | 3,227,616 |
public void testDoubleAdd() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.serviceNotificationError(SERVICE_MONITOR, SERVICE_EVENT,... | public void testDoubleAdd() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.serviceNotificationError(SERVICE_MONITOR, SERVICE_EVENT,... | 3,227,617 |
public void testFireEvent() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBr... | public void testFireEvent() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBr... | 3,227,618 |
public void testFireEvent() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBr... | public void testFireEvent() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBr... | 3,227,619 |
public void testRemove() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBroad... | public void testRemove() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBroad... | 3,227,620 |
public void testRemove() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBroad... | public void testRemove() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBroad... | 3,227,621 |
public void testRemoveUnassociated() { kernelMonitorBroadcaster.removeKernelMonitor(kernelMonitor1); } | public void testRemoveUnassociated() { kernelMonitorBroadcaster.removeKernelMonitor(new MockKernelMonitor("unassociated monitor")); } | 3,227,622 |
public void addKernelMonitor(KernelMonitor kernelMonitor) { kernelMonitors.add(kernelMonitor); } | public void addKernelMonitor(KernelMonitor kernelMonitor) { kernelMonitors.addIfAbsent(kernelMonitor); } | 3,227,623 |
private void evaluatePopup(PInputEvent e) { postPopup=true; PNode n = e.getPickedNode(); PNode p = n.getParent(); if (ChainBuilderAgent.DEBUG) System.err.println("popup. zooming out of "+n); if (n instanceof BufferedObject && (p == canvas.getLayer() || p instanceof ChainView)) { // if I'm on a module that... | private void evaluatePopup(PInputEvent e) { postPopup=true; PNode n = e.getPickedNode(); PNode p = n.getParent(); if (ChainBuilderAgent.DEBUG) System.err.println("popup. zooming out of "+n); if (n instanceof BufferedObject && (p == canvas.getLayer() || p instanceof ChainView)) { // if I'm on a module that... | 3,227,625 |
public void mouseDragged(PInputEvent e) { if (ChainBuilderAgent.DEBUG) { System.err.println("CHAIN HANDLER:got a drag event in chain canvas"); System.err.println("mouse dragged..."+e.getPickedNode()); } mouseMoved(e); super.mouseDragged(e); } | public void mouseDragged(PInputEvent e) { if (ChainBuilderAgent.DEBUG) { System.err.println("CHAIN HANDLER:got a drag event in chain canvas"); System.err.println("mouse dragged..."+e.getPickedNode()); } mouseMoved(e); super.mouseDragged(e); } | 3,227,627 |
public void mouseDragged(PInputEvent e) { if (ChainBuilderAgent.DEBUG) { System.err.println("CHAIN HANDLER:got a drag event in chain canvas"); System.err.println("mouse dragged..."+e.getPickedNode()); } mouseMoved(e); super.mouseDragged(e); } | public void mouseDragged(PInputEvent e) { if (ChainBuilderAgent.DEBUG) { System.err.println("CHAIN HANDLER:got a drag event in chain canvas"); System.err.println("mouse dragged..."+e.getPickedNode()); } mouseMoved(e); super.mouseDragged(e); } | 3,227,628 |
private void startModuleTargetLink(ModuleLinkTarget modLink) { moduleLinkOriginTarget = modLink; if (ChainBuilderAgent.DEBUG) System.err.println("starting mmodule target link..."+modLink); moduleLink = new ModuleLink(linkLayer,moduleLinkOriginTarget); moduleLink.setPickable(false); linkState = LINKING_MODULE_... | private void startModuleTargetLink(ModuleLinkTarget modLink) { moduleLinkOriginTarget = modLink; if (ChainBuilderAgent.DEBUG) System.err.println("starting mmodule target link..."+modLink); moduleLink = new ModuleLink(linkLayer,moduleLinkOriginTarget); moduleLink.setPickable(false); linkState = LINKING_MODULE_... | 3,227,632 |
public boolean isLinkable() { return labelNodes.getVisible(); } | public boolean isLinkable() { return labelNodes.getVisible(); } | 3,227,633 |
private ModuleLink findModuleLink(ModuleView start,ModuleView end) { ModuleLink lnk = null; Iterator iter = modules.getChildrenIterator(); while (iter.hasNext()) { Object obj = iter.next(); if (obj instanceof ModuleLink) { lnk = (ModuleLink) obj; ModuleView s = lnk.getStart(); ModuleView e = lnk.getE... | private ModuleLink findModuleLink(ModuleView start,ModuleView end) { ModuleLink lnk = null; Iterator iter = modules.getChildrenIterator(); while (iter.hasNext()) { Object obj = iter.next(); if (obj instanceof ModuleLink) { lnk = (ModuleLink) obj; ModuleView s = lnk.getStart(); ModuleView e = lnk.getE... | 3,227,634 |
private ModuleLink findModuleLink(ModuleView start,ModuleView end) { ModuleLink lnk = null; Iterator iter = modules.getChildrenIterator(); while (iter.hasNext()) { Object obj = iter.next(); if (obj instanceof ModuleLink) { lnk = (ModuleLink) obj; ModuleView s = lnk.getStart(); ModuleView e = lnk.getE... | private ModuleLink findModuleLink(ModuleView start,ModuleView end) { ModuleLink lnk = null; Iterator iter = modules.getChildrenIterator(); while (iter.hasNext()) { Object obj = iter.next(); if (obj instanceof ModuleLink) { lnk = (ModuleLink) obj; ModuleView s = lnk.getStart(); ModuleView e = lnk.getE... | 3,227,635 |
public FormalOutput getOutput() { if (start instanceof FormalOutput) return (FormalOutput) start; else if (end != null) return (FormalOutput) end; return null; } | public FormalOutput getOutput() { if (start instanceof FormalOutput) return (FormalOutput) start; else if (end != null) return (FormalOutput) end; return null; } | 3,227,636 |
public void showOverview() { if (!overview.getVisible()) { overview.setVisible(true); overview.setChildrenPickable(true); setBounds(overview.getBounds()); } overview.setVisible(true); if (detail.getParent() == this && detail.getVisible() == true) detail.setVisible(false); } | public void showOverview() { if (!overview.getVisible()) { overview.setVisible(true); overview.setChildrenPickable(true); setBounds(overview.getBounds()); } overview.setVisible(true); if (detail.getParent() == this && detail.getVisible() == true) detail.setVisible(false); } | 3,227,638 |
public void showOverview() { if (!overview.getVisible()) { overview.setVisible(true); overview.setChildrenPickable(true); setBounds(overview.getBounds()); } overview.setVisible(true); if (detail.getParent() == this && detail.getVisible() == true) detail.setVisible(false); } | public void showOverview() { if (!overview.getVisible()) { overview.setVisible(true); overview.setChildrenPickable(true); setBounds(overview.getBounds()); } overview.setVisible(true); if (detail.getParent() == this && detail.getVisible() == true) detail.setVisible(false); } | 3,227,639 |
private void onClick(MouseEvent me, boolean released) { Point p = me.getPoint(); int row = treeDisplay.getRowForLocation(p.x, p.y); if (row != -1) { //treeDisplay.setSelectionRow(row); model.setClickPoint(p); if (me.getClickCount() == 1) { if (... | private void onClick(MouseEvent me, boolean released) { Point p = me.getPoint(); JTree tree = getSelectedTree(); int row = tree.getRowForLocation(p.x, p.y); if (row != -1) { //treeDisplay.setSelectionRow(row); model.setClickPoint(p); if (me.getClickCount() ==... | 3,227,640 |
private void onClick(MouseEvent me, boolean released) { Point p = me.getPoint(); int row = treeDisplay.getRowForLocation(p.x, p.y); if (row != -1) { //treeDisplay.setSelectionRow(row); model.setClickPoint(p); if (me.getClickCount() == 1) { if (... | private void onClick(MouseEvent me, boolean released) { Point p = me.getPoint(); int row = treeDisplay.getRowForLocation(p.x, p.y); if (row != -1) { //treeDisplay.setSelectionRow(row); if (me.getClickCount() == 1) { if (me.isPopupTrigger()) cont... | 3,227,641 |
public TreeCellRenderer() { this(true); } | public TreeCellRenderer() { this(true); } | 3,227,643 |
public ThreadService(IRuby runtime) { this.runtime = runtime; this.mainContext = new ThreadContext(runtime); this.localContext = new ThreadContextLocal(mainContext); this.rubyThreadGroup = new ThreadGroup("Ruby Threads#" + runtime.hashCode()); this.rubyThreadList = Collections.syn... | public ThreadService(IRuby runtime) { this.runtime = runtime; this.mainContext = new ThreadContext(runtime); this.localContext = new ThreadContextLocal(mainContext); this.rubyThreadGroup = new ThreadGroup("Ruby Threads#" + runtime.hashCode()); this.rubyThreadList = Collections.syn... | 3,227,645 |
public ThreadContext getCurrentContext() { return (ThreadContext) localContext.get(); } | public ThreadContext getCurrentContext() { ThreadContext tc = (ThreadContext) localContext.get(); if (tc == mainContext && Thread.currentThread() != mainThread) { tc = adoptCurrentThread(); } return tc; } | 3,227,646 |
private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ... | button = new JButton( controller.getAction(BrowserControl.FORWARD_NAV)); menuBar.add(button); private void createMenuBar()button = new JButton( controller.getAction(BrowserControl.FORWARD_NAV)); menuBar.add(button); {button = new JButton( controller.getAction(BrowserControl.FORWARD_NAV)); menuBar.add(button); button ... | 3,227,647 |
private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ... | private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ... | 3,227,648 |
public void execute() throws BuildException { CommandLineBuilder builder = null; try { builder = new CommandLineBuilder(); if (dataFile != null) builder.addArg("--datafile", dataFile); if (toDir != null) builder.addArg("--destination", toDir.getAbsolutePath()); // ignoreRegex.setRegex() is never called... | public void execute() throws BuildException { CommandLineBuilder builder = null; try { builder = new CommandLineBuilder(); if (dataFile != null) builder.addArg("--datafile", dataFile); if (toDir != null) builder.addArg("--destination", toDir.getAbsolutePath()); // ignoreRegex.setRegex() is never called... | 3,227,649 |
public void execute() throws BuildException { CommandLineBuilder builder = null; try { builder = new CommandLineBuilder(); if (dataFile != null) builder.addArg("--datafile", dataFile); if (toDir != null) builder.addArg("--destination", toDir.getAbsolutePath()); // ignoreRegex.setRegex() is never called... | public void execute() throws BuildException { CommandLineBuilder builder = null; try { builder = new CommandLineBuilder(); if (dataFile != null) builder.addArg("--datafile", dataFile); if (toDir != null) builder.addArg("--destination", toDir.getAbsolutePath()); // ignoreRegex.setRegex() is never called... | 3,227,650 |
public CategoryGroup(Integer attributeId, String name, String description, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set categories) { this.attributeId = attributeId; this.name = name; this.description = description; this.moduleExecution = moduleExecution; th... | public CategoryGroup(Integer attributeId, String name, String description, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set categories) { this.attributeId = attributeId; this.name = name; this.description = description; this.moduleExecution = moduleExecution; th... | 3,227,652 |
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; } | public ModuleExecution getModuleExecution() { return this.moduleExecution; } | 3,227,653 |
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | 3,227,654 |
public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoo... | public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoo... | 3,227,655 |
public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoo... | public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoo... | 3,227,656 |
public static PiccoloAction getSemanticEnterAction(final SemanticLayer layer) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth... | public static PiccoloAction getSemanticEnterAction(final HoverManager layer) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth(... | 3,227,658 |
public static PiccoloAction getSemanticEnterAction(final SemanticLayer layer) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth... | public static PiccoloAction getSemanticEnterAction(final SemanticLayer layer) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth... | 3,227,659 |
public void execute(PInputEvent e) { layer.nodeExited(); } | public void execute(PInputEvent 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.getSta... | 3,227,660 |
public void nodeEntered(final PCamera target, final PNode node, int delayInMillis) { if(awaitingDisplay) { pendingTask.cancel(); } if(displayingNode) { hideSemanticNode(target); } ... | public void nodeEntered(final PCamera target, final PNode node, int delayInMillis) { if(awaitingDisplay) { pendingTask.cancel(); } if(displayingNode) { hideSemanticNode(target); } ... | 3,227,661 |
public SemanticZoomNode(Thumbnail parent) { super(); if(!loadedCompositeInfo) { loadSizeInfo(); } if(parent == null) { throw new IllegalArgumentException("null parent to" + "SemanticZoomNode"); } multiple... | public SemanticZoomNode(Thumbnail parent, BrowserModel parentInfo) { super(); if(!loadedCompositeInfo) { loadSizeInfo(); } if(parent == null) { throw new IllegalArgumentException("null parent to" + "SemanticZoomNode"); ... | 3,227,662 |
private JPanel buildButtonPanel() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(viewButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(saveButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(addButton); p.add(Box.createRigidArea(DataManag... | private JPanel buildButtonPanel() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(viewButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(saveButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(addButton); p.add(Box.createRigidArea(DataManag... | 3,227,664 |
private void initButtons() { saveButton = new JButton("Save"); saveButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save data in the DB.")); saveButton.setEnabled(false); addButton = new JButton("Add images"); addButton.setCursor(Curso... | private void initButtons() { saveButton = new JButton("Save"); saveButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save data in the DB.")); saveButton.setEnabled(false); addButton = new JButton("Add images"); addButton.setCursor(Curso... | 3,227,666 |
public static RubyProc newProc(Ruby ruby, RubyClass rubyClass) { if (!ruby.isBlockGiven() && !ruby.isFBlockGiven()) { throw new RubyArgumentException(ruby, "tried to create Proc object without a block"); } RubyProc newProc = new RubyProc(ruby, rubyClass); newProc.block = ruby.... | public static RubyProc newProc(Ruby ruby, RubyClass rubyClass) { if (!ruby.isBlockGiven() && !ruby.isFBlockGiven()) { throw new RubyArgumentException(ruby, "tried to create Proc object without a block"); } RubyProc newProc = new RubyProc(ruby, rubyClass); newProc.block = ruby.... | 3,227,667 |
protected void onDisplayChange(ImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } if (selectedDisplay.getParentDisplay() == null) { setEnabled(false); return; } if (!(selectedDisplay.getHierarchyObje... | protected void onDisplayChange(ImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } if (selectedDisplay.getParentDisplay() == null) { setEnabled(false); return; } if (!(selectedDisplay.getHierarchyObje... | 3,227,668 |
protected void onDisplayChange(ImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } if (selectedDisplay.getParentDisplay() == null) { setEnabled(false); return; } if (!(selectedDisplay.getHierarchyObje... | protected void onDisplayChange(ImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } if (selectedDisplay.getParentDisplay() == null) { setEnabled(false); return; } if (!(selectedDisplay.getHierarchyObje... | 3,227,669 |
private void fillCollection(Collection source, Collection target){ for (Iterator it = source.iterator(); it.hasNext();) { Object o = it.next(); target.add(this.findTarget(o)); } } | private void fillCollection(Collection source, Collection target){ for (Iterator it = source.iterator(); it.hasNext();) { Object o = it.next(); target.add(this.findTarget(o)); } } | 3,227,670 |
private void fillMap(Map source, Map target){ for (Iterator it = source.keySet().iterator(); it.hasNext();) { Object o = it.next(); target.put(findTarget(o),findTarget(source.get(o))); } } | private void fillMap(Map source, Map target){ for (Iterator it = source.keySet().iterator(); it.hasNext();) { Object o = it.next(); target.put(findTarget(o),findTarget(source.get(o))); } } | 3,227,671 |
private void fillTarget(Filterable source, ModelBased target){ target.copy(((OMEModel)source),this); } | private void fillTarget(Filterable source, ModelBased target){ target.copy(((OMEModel)source),this); } | 3,227,672 |
public ModelBased map (Filterable source){ // TODO take any object. just like filter() Filterable o = super.filter("MAPPING...",source); ModelBased target = (ModelBased) findTarget(source); fillTarget(source,target); return (ModelBased) model2target.get(o); } | public ModelBased map (Filterable source){ // TODO take any object. just like filter() Filterable o = super.filter("MAPPING...",source); ModelBased target = (ModelBased) findTarget(source); fillTarget(source,target); return (ModelBased) model2target.get(o); } | 3,227,673 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.