bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected void defineParameters(){ defs = new QueryParameterDef[]{ new QueryParameterDef(QP.CLASS,Class.class,false), new QueryParameterDef(QP.IDS,Collection.class,false), new QueryParameterDef(OWNER_ID,Long.class,true), new QueryParameterDef(QP.OPT...
protected void defineParameters(){ defs = new QueryParameterDef[]{ new QueryParameterDef(QP.CLASS,Class.class,false), new QueryParameterDef(QP.IDS,Collection.class,false), new QueryParameterDef(QP.OPTIONS,Map.class,true) }; }
3,239,297
protected void enableFilters(Session session) { if (session.getEnabledFilter(Project.OWNER_FILTER) != null) projectOwnerFilterAlreadyEnabled = true; if (check(OWNER_ID)) { session.enableFilter(Project.OWNER_FILTER) .setParameter(OWNER_ID,value(OWNER_ID)...
protected void enableFilters(Session session) { if (session.getEnabledFilter(Project.OWNER_FILTER) != null) projectOwnerFilterAlreadyEnabled = true; if (check(OWNER_ID)) { session.enableFilter(Project.OWNER_FILTER) .setParameter(OWNER_ID,value(OWNER_ID)...
3,239,298
protected Object runQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(QP.OPTIONS)); Criteria c = session.createCriteria((Class)value(QP.CLASS)); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restriction...
protected Object runQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(QP.OPTIONS)); Criteria c = session.createCriteria((Class)value(QP.CLASS)); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restriction...
3,239,299
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); Stats...
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); Stats...
3,239,300
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); Stats...
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); Stats...
3,239,301
private void updateTreeModel() { if(source == null) { treeModel = new SemanticTypeTree("(empty)"); return; } List typesList = source.getRelevantTypes(); SemanticType[] types = new SemanticType[typesList.size()]; typesList.toArray(types); tree...
private void updateTreeModel() { if(source == null) { treeModel = new SemanticTypeTree("(empty)"); return; } List typesList = source.getRelevantTypes(); SemanticType[] types = new SemanticType[typesList.size()]; typesList.toArray(types); tree...
3,239,302
private void init(BrowserTopModel topModel) { env = BrowserEnvironment.getInstance(); setBackground(new Color(192,192,192)); backgroundNode = new BackgroundNode(); getLayer().addChild(backgroundNode); layoutMap = new HashMap(); footprint = new Rectangle2D...
private void init(BrowserTopModel topModel) { env = BrowserEnvironment.getInstance(); setBackground(new Color(192,192,192)); backgroundNode = new BackgroundNode(); getLayer().addChild(backgroundNode); layoutMap = new HashMap(); footprint = new Rectangle2D...
3,239,303
public org.jruby.runtime.RubyRuntime getRuntime() { return this.runtime; }
public RubyRuntime getRuntime() { Asserts.assertTrue(this.runtime != null, "runtime shouldn't be null"); return this.runtime; }
3,239,304
public void testHessian(){ OMEData data = new OMEPerformanceData(); OMEData old = getData(); Set imgs = new HashSet(); imgs.add(new Integer(101)); imgs.add(new Integer(12)); imgs.add(new Integer(5393)); imgs.add(new Integer(4954)); imgs.add(new Integer(3919));...
public void testHessian(){ OMEData data = new OMEPerformanceData(); OMEData old = getData(); Set imgs = new HashSet(); imgs.add(new Integer(101)); imgs.add(new Integer(12)); imgs.add(new Integer(5393)); imgs.add(new Integer(4954)); imgs.add(new Integer(3919));...
3,239,305
protected void onContext(OmeroContext ctx) { IQuery q = (IQuery) ctx.getBean("queryService"); Advised aop = (Advised) q; System.out.println(Arrays.asList(aop.getAdvisors())); }
protected void onContext(OmeroContext ctx) { IQuery q = (IQuery) ctx.getBean("queryService"); Advised aop = (Advised) q; System.out.println(Arrays.asList(aop.getAdvisors())); }
3,239,307
public void testConfigureBean() throws Exception { OmeroContext ctx = OmeroContext.getInternalServerContext(); ctx.applyBeanPropertyValues(re,"omeis.providers.re.RenderingEngine"); assertTrue(re.pdCalled); assertTrue(re.pmCalled); }
public void testConfigureBean() throws Exception { OmeroContext ctx = OmeroContext.getInternalServerContext(); ctx.applyBeanPropertyValues(re,RenderingEngine.class); assertTrue(re.pdCalled); assertTrue(re.pmCalled); }
3,239,308
public void testListBeans() throws Exception { System.out.println(Arrays.asList( BeanFactoryUtils.beanNamesForTypeIncludingAncestors( OmeroContext.getManagedServerContext().getBeanFactory(), Object.class, true, true))); }
public void testListBeans() throws Exception { assertTrue(0 < Arrays.asList( BeanFactoryUtils.beanNamesForTypeIncludingAncestors( OmeroContext.getManagedServerContext().getBeanFactory(), Object.class, true, true))); }
3,239,309
public void testListBeans() throws Exception { System.out.println(Arrays.asList( BeanFactoryUtils.beanNamesForTypeIncludingAncestors( OmeroContext.getManagedServerContext().getBeanFactory(), Object.class, true, true))); }
public void testListBeans() throws Exception { System.out.println(Arrays.asList( BeanFactoryUtils.beanNamesForTypeIncludingAncestors( OmeroContext.getManagedServerContext().getBeanFactory(), Object.class, true, true)).size()); }
3,239,310
public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the N...
public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the N...
3,239,311
public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the N...
public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the N...
3,239,312
public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the N...
public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the N...
3,239,313
public void visitForNode(ForNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ISourcePosition pos...
public void visitForNode(ForNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ISourcePosition pos...
3,239,314
public void visitIterNode(IterNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVi...
public void visitIterNode(IterNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVi...
3,239,315
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...
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...
3,239,316
public void propertyChange(PropertyChangeEvent pce) { String name = pce.getPropertyName(); if (name == null) return; if (name.equals(TreeViewer.CANCEL_LOADING_PROPERTY)) { Browser browser = model.getSelectedBrowser(); if (browser != null) browser.cancel(); } else...
if (!(oldValue.getClass().equals(newValue.getClass()))) { if (oldValue instanceof TreeImageDisplay) { TreeImageDisplay d = (TreeImageDisplay) oldValue; if (d != null && (d.getUserObject() instanceof ImageData)) { int index = EditorFactory.getEditorSelectedPane(); if (index == Editor.INFO_INDEX) EditorFactory.setEditorS...
3,239,319
private String generateHtmlizedJavaSource(SourceFileData sourceFileData) { File sourceFile = null; try { sourceFile = finder.getFileForSource(sourceFileData.getName()); } catch (IOException e) { return "<p>Unable to locate " + sourceFileData.getName() + ". Have you specified the source directory?</p>"; ...
private String generateHtmlizedJavaSource(SourceFileData sourceFileData) { File sourceFile = null; try { sourceFile = finder.getFileForSource(sourceFileData.getName()); } catch (IOException e) { return "<p>Unable to locate " + sourceFileData.getName() + ". Have you specified the source directory?</p>"; ...
3,239,320
protected DataLoader createHierarchyLoader() { return new ProjectLoader(component, projectsID); }
protected DataLoader createHierarchyLoader(boolean refresh) { return new ProjectLoader(component, projectsID); }
3,239,321
protected DataLoader createHierarchyLoader() { return new ProjectLoader(component, projectsID); }
protected DataLoader createHierarchyLoader() { return new ProjectLoader(component, projectsID, refresh); }
3,239,322
public IconBar(int maxWidth) { this.maxWidth = maxWidth; backgroundColor = new Color(153,153,153,128); setBounds(getX(),getY(),maxWidth,currentHeight); }
public IconBar(int maxWidth) { this.maxWidth = maxWidth; backgroundColor = new Color(153,153,153,192); setBounds(getX(),getY(),maxWidth,currentHeight); }
3,239,323
TitleBar(String name) { setBounds(bounds); titleName = name; backgroundColor = new Color(0,51,153,128); titleNode = new PText(name); titleNode.setPaint(Color.white); titleNode.setFont(titleFont); actionSe...
TitleBar(String name) { setBounds(bounds); titleName = name; backgroundColor = new Color(0,51,153); titleNode = new PText(name); titleNode.setPaint(Color.white); titleNode.setFont(titleFont); actionSet = ...
3,239,324
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
3,239,325
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
3,239,326
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
3,239,327
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
3,239,328
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
3,239,329
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
3,239,330
public static Test suite() { TestSuite suite= new TestSuite(); suite.addTest(new TestSyntheticTemplate("load") { protected WebMacro createWebMacro() throws Exception { return new WM("org/webmacro/template/TST.properties"); } protected void runTest() throws Exception { ...
public static Test suite() { TestSuite suite= new TestSuite(); suite.addTest(new TestSyntheticTemplate("load") { protected WebMacro createWebMacro() throws Exception { return new WM("org/webmacro/template/TST.properties"); } protected void runTest() throws Exception { ...
3,239,331
protected void runTest() throws Exception { this.threadCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.ThreadCount", this.threadCount); this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.threadCount); this.testLoadAndT...
protected void runTest() throws Exception { this.threadCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.ThreadCount", this.threadCount); this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.IterationCount); this.testLoadA...
3,239,332
public IRubyObject callSuper(IRubyObject[] args) { if (ruby.getCurrentFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getCurrentFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIterStack().push(ruby.getCurrentIter().isNot() ? Iter.ITER_NOT : Iter.I...
public IRubyObject callSuper(IRubyObject[] args) { if (ruby.getCurrentFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getCurrentFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIterStack().push(ruby.getCurrentIter().isNot() ? Iter.ITER_NOT : Iter.I...
3,239,333
public synchronized void callTraceFunction(String event, String file, int line, IRubyObject self, String name, ...
public synchronized void callTraceFunction(String event, String file, int line, IRubyObject self, String name, ...
3,239,334
public synchronized void callTraceFunction(String event, String file, int line, IRubyObject self, String name, ...
public synchronized void callTraceFunction(String event, String file, int line, IRubyObject self, String name, ...
3,239,335
public String toString(){ return "ChannelComponent"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); }
public String toString(){ return "ChannelComponent"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); }
3,239,336
public RubyClass newSubClass(String name, RubyModule parent) { return new SymbolMetaClass(name, this, parent); }
public RubyClass newSubClass(String name, RubyModule parent) { return new SymbolMetaClass(name, this, parent); }
3,239,337
public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b...
public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b...
3,239,339
public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b...
public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b...
3,239,340
private void initComponents() { IconManager icons = IconManager.getInstance(); //movie controls play = new JButton(icons.getIcon(IconManager.PLAY)); play.setToolTipText(UIUtilities.formatToolTipText("Play movie.")); pause = new JButton(icons.getIcon(IconManager.PAUSE)); ...
private void initComponents() { IconManager icons = IconManager.getInstance(); //movie controls play = new JButton(icons.getIcon(IconManager.PLAY)); play.setToolTipText(UIUtilities.formatToolTipText("Play movie.")); pause = new JButton(icons.getIcon(IconManager.PAUSE)); ...
3,239,342
private void buildPresentation(PixelsDimensions pxsDims) { presentation = new ViewerUIF(control, registry, pxsDims, getDefaultT(), getDefaultZ()); control.setPresentation(presentation); control.attachListener(); }
private void buildPresentation(PixelsDimensions pxsDims) { presentation = new ViewerUIF(control, registry, pxsDims, getDefaultT(), getDefaultZ()); control.setPresentation(presentation); control.attachListener(); }
3,239,343
public void eventFired(AgentEvent e) { if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof ImageRendered) handleImageRendered((ImageRendered) e); else if (e instanceof LoadImage) handleLoadImage((LoadImage) e); }
public void eventFired(AgentEvent e) { if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof ImageRendered) handleImageRendered((ImageRendered) e); else if (e instanceof LoadImage) handleLoadImage((LoadImage) e); }
3,239,344
PixelsDimensions getPixelsDims() { return renderingControl.getPixelsDims(); }
PixelsDimensions getPixelsDims() { return renderingControl.getPixelsDims(); }
3,239,345
private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); //TODO: REMOVE COMMENTS //control.removeProgressNotifier(); if (curImageID != request.getImageID()) { if...
private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); //TODO: REMOVE COMMENTS //control.removeProgressNotifier(); if (curImageID != request.getImageID()) { if...
3,239,346
private void handleImageRendered(ImageRendered response) { curImage = null; curImage = response.getRenderedImage(); presentation.setImage(curImage); }
private void handleImageRendered(ImageRendered response) { curImage = null; curImage = response.getRenderedImage(); presentation.setImage(curImage); }
3,239,347
private void handleLoadImage(LoadImage request) { //TODO: REMOVE COMMENTS //control.showProgressNotifier(request.getImageName()); }
private void handleLoadImage(LoadImage request) { //TODO: REMOVE COMMENTS //control.showProgressNotifier(request.getImageName()); }
3,239,348
private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active); presentation.rese...
private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active); presentation.rese...
3,239,349
private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active); presentation.rese...
private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active); presentation.rese...
3,239,350
void onPlaneSelected(int z, int t) { PlaneDef def = new PlaneDef(PlaneDef.XY, t); def.setZ(z); RenderImage renderImage = new RenderImage(curPixelsID, def); registry.getEventBus().post(renderImage); }
void onPlaneSelected(int z, int t) { PlaneDef def = new PlaneDef(PlaneDef.XY, t); def.setZ(z); RenderImage renderImage = new RenderImage(curPixelsID, def); registry.getEventBus().post(renderImage); }
3,239,351
public void setContext(Registry ctx) { registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, LoadImage.class); bus.register(this, ImageLoaded.class); bus.register(this, ImageRendered.class); control = new ViewerCtrl(this); }
public void setContext(Registry ctx) { registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, LoadImage.class); bus.register(this, ImageLoaded.class); bus.register(this, ImageRendered.class); control = new ViewerCtrl(this); }
3,239,352
private void showPresentation() { if (presentation.getExtendedState() == Frame.ICONIFIED) presentation.setExtendedState(Frame.NORMAL); presentation.setVisible(true); }
private void showPresentation() { if (presentation.getExtendedState() == Frame.ICONIFIED) presentation.setExtendedState(Frame.NORMAL); presentation.setVisible(true); }
3,239,353
void showRendering() { registry.getEventBus().post(new DisplayRendering()); }
void showRendering() { registry.getEventBus().post(new DisplayRendering()); }
3,239,354
public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else { // textLabel.setFont(defaultFont); } inval...
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); }...
3,239,355
public void testFindAnnotations() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findAnnotations((Class) arg[0], (Set) arg[1], (Set) arg[2], (Map) arg[3]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(),new HashSet()...
public void testFindAnnotations() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findAnnotations((Class) arg[0], (Set) arg[1], (Set) arg[2], (Map) arg[3]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(),new HashSet()...
3,239,356
public void testFindContainerHierarchies() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findContainerHierarchies((Class)arg[0],(Set)arg[1],(Map)arg[2]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(), new HashMap()...
public void testFindContainerHierarchies() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findContainerHierarchies((Class)arg[0],(Set)arg[1],(Map)arg[2]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(), new HashMap()...
3,239,357
public void testFindContainerHierarchies() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findContainerHierarchies((Class)arg[0],(Set)arg[1],(Map)arg[2]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(), new HashMap()...
public void testFindContainerHierarchies() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findContainerHierarchies((Class)arg[0],(Set)arg[1],(Map)arg[2]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(), new HashMap()...
3,239,358
public RaiseException(RubyException actException) { super(JumpType.RaiseJump); setException(actException, false); }
public RaiseException(RubyException actException) { super(JumpType.RaiseJump); setException(actException, false); }
3,239,359
protected NamespaceHandlerResolver createDefaultNamespaceHandlerResolver() { return new XBeanNamespaceHandlerResolver(getBeanClassLoader()); }
protected NamespaceHandlerResolver createDefaultNamespaceHandlerResolver() { ClassLoader classLoader = getBeanClassLoader(); if (classLoader == null) { classLoader = Thread.currentThread().getContextClassLoader(); } return new XBeanNamespaceHandlerResolver(classLoader); }
3,239,360
private final boolean exists(URL url) { InputStream _is = null; try { _is = url.openStream(); System.out.println(url +" exists"); return true; } catch (IOException e) { System.out.println(url +" does not exist"); retur...
private final boolean exists(URL url) { InputStream _is = null; try { _is = url.openStream(); System.out.println(url +" exists"); return true; } catch (IOException e) { System.out.println(url +" does not exist"); retur...
3,239,362
private final boolean exists(URL url) { InputStream _is = null; try { _is = url.openStream(); System.out.println(url +" exists"); return true; } catch (IOException e) { System.out.println(url +" does not exist"); retur...
private final boolean exists(URL url) { InputStream _is = null; try { _is = url.openStream(); System.out.println(url +" exists"); return true; } catch (IOException e) { System.out.println(url +" does not exist"); retur...
3,239,363
private final URL searchClasspath(String resource) { _log.debug("Searching classpath for "+resource); URL url = _broker.getResource(resource); if (url != null) { return url; } /* * look for locale specific resources AAAA{_xxxx_yyyyy_....}BBBBB ...
private final URL searchClasspath(String resource) { _log.debug("Searching classpath for "+resource); URL url = null; ClassLoader cl = this.getClass().getClassLoader(); if (cl != null) { url = cl.getResource(resource); } else { url = ClassLoader.getSystemResource(resource); } if (url != null...
3,239,364
private List getDatasetAnnotations(List ids, int uID) throws DSOutOfServiceException, DSAccessException { if (ids.size() == 0) return null; Criteria c = AnnotationMapper.buildDatasetAnnotationCriteria(ids, uID); return (List) gateway.retrieveListSTSData("DatasetAnnotation", c); }
private List getDatasetAnnotations(List ids, int uID) throws DSOutOfServiceException, DSAccessException { if (ids!= null && ids.size() == 0) return null; Criteria c = AnnotationMapper.buildDatasetAnnotationCriteria(ids, uID); return (List) gateway.retrieveListSTSData("DatasetAnnotatio...
3,239,365
public void testfindCGCIHiearchies(){ /* * CGCI Hierachies */ // Arguments Integer id = new Integer(1); Set ids = new HashSet(); ids.add(id); // Result Image img = new Image(); img.setImageId(id); img.setClassifications(...
daoUtils.verify(); daoUtils.reset(); daoUtils.verify(); daoUtils.reset(); public void testfindCGCIHiearchies(){daoUtils.verify(); daoUtils.reset(); daoUtils.verify(); daoUtils.reset(); daoUtils.verify(); daoUtils.reset(); daoUtils.verify(); daoUtils.reset(); /*daoUtils.verify(); daoUtils.reset(); daoUtils.verify(); dao...
3,239,369
protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = c...
protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = c...
3,239,371
protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = c...
protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = c...
3,239,372
public ROIShape(Shape shape, int index, Color lineColor, int shapeType, int channelIndex, ImageAffineTransform affineTransform) { this.shape = shape; this.index = index; this.lineColor = lineColor; this.channelIndex = channelIndex; this.shapeType = shapeType;...
public ROIShape(Shape shape, int index, Color lineColor, int shapeType, int channelIndex, ImageAffineTransform affineTransform) { this.shape = shape; this.index = index; this.lineColor = lineColor; this.channelIndex = channelIndex; this.shapeType = shapeType;...
3,239,373
public static RubyObject m_p(Ruby ruby, RubyObject recv, RubyObject args[]) { for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.println(((RubyString)args[i].funcall(ruby.intern("inspect"))).getValue()); } } return ruby.getNil(); }
public static RubyObject m_p(Ruby ruby, RubyObject recv, RubyObject args[]) { for (int i = 0; i < args.length; i++) { if (args[i] != null) { ruby.getRuntime().getOutputStream().println(((RubyString)args[i].funcall(ruby.intern("inspect"))).getValue()); } } re...
3,239,374
public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++)...
public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++)...
3,239,375
public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++)...
public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++)...
3,239,376
public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++)...
public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++)...
3,239,377
public static RubyObject m_printf(Ruby ruby, RubyObject recv, RubyObject args[]) { System.out.print(((RubyString)m_sprintf(ruby, recv, args)).getValue()); return ruby.getNil(); }
public static RubyObject m_printf(Ruby ruby, RubyObject recv, RubyObject args[]) { ruby.getRuntime().getOutputStream().print(((RubyString)m_sprintf(ruby, recv, args)).getValue()); return ruby.getNil(); }
3,239,378
public static RubyObject m_puts(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { System.out.println(); return ruby.getNil(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (args[i] instanceof RubyArray)...
public static RubyObject m_puts(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { ruby.getRuntime().getOutputStream().println(); return ruby.getNil(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (args...
3,239,379
public static RubyObject m_puts(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { System.out.println(); return ruby.getNil(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (args[i] instanceof RubyArray)...
public static RubyObject m_puts(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { System.out.println(); return ruby.getNil(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (args[i] instanceof RubyArray)...
3,239,380
public static RubyObject m_require(Ruby ruby, RubyObject recv, RubyString arg1) { if (arg1.getValue().endsWith(".jar")) { File jarFile = new File(arg1.getValue()); if (!jarFile.exists()) { jarFile = new File(new File(ruby.getSourceFile()).getParentFile(), arg1.getValue())...
public static RubyObject m_require(Ruby ruby, RubyObject recv, RubyString arg1) { if (arg1.getValue().endsWith(".jar")) { File jarFile = new File(arg1.getValue()); if (!jarFile.exists()) { jarFile = new File(new File(ruby.getSourceFile()).getParentFile(), arg1.getValue())...
3,239,381
public static IRubyObject loadAndCall(IRubyObject self, String name, byte[] javaClass, String methodName) throws Throwable { Loader loader = new Loader(); Class c = loader.loadClass(name, javaClass); Method method = c.getMethod(methodName, new Class[] { Ruby.class, IRubyObject.cla...
public static IRubyObject loadAndCall(IRubyObject self, String name, byte[] javaClass, String methodName) throws Throwable { Loader loader = new Loader(); Class c = loader.loadClass(name, javaClass); Method method = c.getMethod(methodName, new Class[] { Ruby.class, IRubyObject.cla...
3,239,382
public static JavaMethod createDeclared(IRuby runtime, Class javaClass, String methodName, Class[] argumentTypes) { try { Method method = javaClass.getDeclaredMethod(methodName, argumentTypes); return create(runtime, method); } catch (NoSuchMethodException e) { throw r...
public static JavaMethod createDeclared(IRuby runtime, Class javaClass, String methodName, Class[] argumentTypes) { try { Method method = javaClass.getDeclaredMethod(methodName, argumentTypes); return create(runtime, method); } catch (NoSuchMethodException e) { throw r...
3,239,384
public static Map fillImageAnnotations(List l, TreeMap map) { Iterator i = l.iterator(); ImageAnnotation imgA; AnnotationData data; int ownerID; List list; Timestamp time = null; Experimenter experimenter; ModuleExecution mex; while (i.hasNext()) { ...
public static Map fillImageAnnotations(List l, TreeMap map) { Iterator i = l.iterator(); ImageAnnotation imgA; AnnotationData data; int ownerID; List list; Timestamp time = null; Experimenter experimenter; ModuleExecution mex; while (i.hasNext()) { ...
3,239,385
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
3,239,386
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
3,239,387
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
3,239,388
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
3,239,389
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
3,239,390
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
3,239,391
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ...
3,239,392
public RubyObject eval(Ruby ruby, RubyObject self) { return StringEvaluate.eval(ruby, self, this); }
public RubyObject eval(Ruby ruby, RubyObject self) { if (simple) { return getLiteral().to_s(); } else { return StringEvaluate.eval(ruby, self, this); } }
3,239,393
public void activate() { switch (model.getState()) { case NEW: if (model.getEditorType() == PROPERTIES_EDITOR) { int index = model.getSelectedTabbedIndex(); if (index == EditorUI.PROPERTIES_INDEX) { int subIndex = model.getSelected...
public void activate() { switch (model.getState()) { case NEW: if (model.getEditorType() == PROPERTIES_EDITOR) { int index = model.getSelectedTabbedIndex(); if (index == EditorUI.PROPERTIES_INDEX) { int subIndex = model.getSelected...
3,239,395
void initialize() { controller.initialize(view); view.initialize(controller, model); model.getParentModel().addPropertyChangeListener( TreeViewer.THUMBNAIL_LOADED_PROPERTY, controller); }
void initialize() { controller.initialize(view); view.initialize(controller, model); model.getParentModel().addPropertyChangeListener( TreeViewer.THUMBNAIL_LOADED_PROPERTY, controller); }
3,239,396
public void setAnnotations(Map map) { if (model.getState() == LOADING_ANNOTATION) { if (map != null) { model.setAnnotations(map); view.showAnnotations(); if (model.hasThumbnail()) firePropertyChange(TreeViewer.THUMBNAIL_LOADING_PRO...
public void setAnnotations(Map map) { if (model.getState() == LOADING_ANNOTATION) { if (map != null) { model.setAnnotations(map); view.showAnnotations(); if (model.hasThumbnail()) firePropertyChange(TreeViewer.THUMBNAIL_LOADING_PRO...
3,239,398
public void setThumbnail(BufferedImage thumbnail) { if (model.getState() != DISCARDED) { if (thumbnail == null) throw new IllegalArgumentException("No thumbnail."); view.setThumbnail(thumbnail); model.setState(READY); fireStateChange(); } ...
public void setThumbnail(BufferedImage thumbnail) { if (model.getState() != DISCARDED) { if (thumbnail == null) return; model.setThumbnailLoaded(true); view.setThumbnail(thumbnail); model.setState(READY); fireStateChange(); } }
3,239,401
ClassifiedButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false);...
ClassifiedButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false);...
3,239,403
ClassifiedButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false);...
ClassifiedButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false);...
3,239,404
public Group(Integer attributeId, String name, org.openmicroscopy.omero.model.Experimenter leader, org.openmicroscopy.omero.model.Experimenter contact, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set datasets, Set images, Set projects, Set experimenters, Set moduleExecutions, Set imageInfos) { ...
public Group(Integer attributeId, String name, org.openmicroscopy.omero.model.Experimenter leader, org.openmicroscopy.omero.model.Experimenter contact, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set datasets, Set images, Set projects, Set experimenters, Set moduleExecutions, Set imageInfos) { ...
3,239,405
public org.openmicroscopy.omero.model.Experimenter getContact() { return this.contact; }
public Experimenter getContact() { return this.contact; }
3,239,406
public org.openmicroscopy.omero.model.Experimenter getLeader() { return this.leader; }
public Experimenter getLeader() { return this.leader; }
3,239,407
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
public ModuleExecution getModuleExecution() { return this.moduleExecution; }
3,239,408
public void setContact(org.openmicroscopy.omero.model.Experimenter contact) { this.contact = contact; }
public void setContact(Experimenter contact) { this.contact = contact; }
3,239,409
public void setLeader(org.openmicroscopy.omero.model.Experimenter leader) { this.leader = leader; }
public void setLeader(Experimenter leader) { this.leader = leader; }
3,239,410
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
3,239,411
public RubyClass defineClassUnder(String name, RubyClass superClass, RubyModule parentModule) { throw new MockException(); }
public RubyClass defineClassUnder(String name, RubyClass superClass, RubyModule parentModule) { throw new MockException(); }
3,239,413