bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public Renderer(Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; if (metadata == null) throw new NullPointerException("Expecting not null metadata"); else if (rndDef == null) throw new NullPointerException("Expecting not null rndDef"); else if (buffer == null) throw new NullPointerException("Expecting not null buffer"); //Create and configure the quantum strategies. QuantumDef qd = rndDef.getQuantization(); quantumManager = new QuantumManager(metadata); ChannelBinding[] cBindings= getChannelBindings(); quantumManager.initStrategies(qd, metadata.getPixelsType(), cBindings); //Compute the location stats. computeLocationStats(getDefaultPlaneDef()); //Create and configure the codomain chain. codomainChain = new CodomainChain(qd.getCdStart().intValue(), qd.getCdEnd().intValue(), rndDef.getSpatialDomainEnhancement()); //Create an appropriate rendering strategy. int m = RenderingDefConstants.convertType(rndDef.getModel()); renderingStrategy = RenderingStrategy.makeNew(m); }
public Renderer(Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; if (metadata == null) throw new NullPointerException("Expecting not null metadata"); else if (rndDef == null) throw new NullPointerException("Expecting not null rndDef"); else if (buffer == null) throw new NullPointerException("Expecting not null buffer"); //Create and configure the quantum strategies. QuantumDef qd = rndDef.getQuantization(); quantumManager = new QuantumManager(metadata); ChannelBinding[] cBindings= getChannelBindings(); quantumManager.initStrategies(qd, metadata.getPixelsType(), cBindings); //Compute the location stats. computeLocationStats(getDefaultPlaneDef()); //Create and configure the codomain chain. codomainChain = new CodomainChain(qd.getCdStart().intValue(), qd.getCdEnd().intValue(), rndDef.getSpatialDomainEnhancement()); //Create an appropriate rendering strategy. int m = RenderingDefConstants.convertType(rndDef.getModel()); renderingStrategy = RenderingStrategy.makeNew(m); }
3,229,657
public Renderer(Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; if (metadata == null) throw new NullPointerException("Expecting not null metadata"); else if (rndDef == null) throw new NullPointerException("Expecting not null rndDef"); else if (buffer == null) throw new NullPointerException("Expecting not null buffer"); //Create and configure the quantum strategies. QuantumDef qd = rndDef.getQuantization(); quantumManager = new QuantumManager(metadata); ChannelBinding[] cBindings= getChannelBindings(); quantumManager.initStrategies(qd, metadata.getPixelsType(), cBindings); //Compute the location stats. computeLocationStats(getDefaultPlaneDef()); //Create and configure the codomain chain. codomainChain = new CodomainChain(qd.getCdStart().intValue(), qd.getCdEnd().intValue(), rndDef.getSpatialDomainEnhancement()); //Create an appropriate rendering strategy. int m = RenderingDefConstants.convertType(rndDef.getModel()); renderingStrategy = RenderingStrategy.makeNew(m); }
public Renderer(Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; if (metadata == null) throw new NullPointerException("Expecting not null metadata"); else if (rndDef == null) throw new NullPointerException("Expecting not null rndDef"); else if (buffer == null) throw new NullPointerException("Expecting not null buffer"); //Create and configure the quantum strategies. QuantumDef qd = rndDef.getQuantization(); quantumManager = new QuantumManager(metadata); ChannelBinding[] cBindings= getChannelBindings(); quantumManager.initStrategies(qd, metadata.getPixelsType(), cBindings); //Compute the location stats. computeLocationStats(getDefaultPlaneDef()); //Create and configure the codomain chain. codomainChain = new CodomainChain(qd.getCdStart().intValue(), qd.getCdEnd().intValue(), rndDef.getSpatialDomainEnhancement()); //Create an appropriate rendering strategy. int m = RenderingDefConstants.convertType(rndDef.getModel()); renderingStrategy = RenderingStrategy.makeNew(m); }
3,229,658
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator(); i.hasNext(); ) { // FIXME: This is where we need to have the ChannelBinding --> // Channel linkage. Channel channel = (Channel) i.next(); double gMin = channel.getStatsInfo().getGlobalMin().doubleValue(); double gMax = channel.getStatsInfo().getGlobalMax().doubleValue(); //TEst sf.computeLocationStats(metadata, buffer, pd, w); //cb[w].setNoiseReduction(new Boolean(sf.isNoiseReduction())); cb[w].setNoiseReduction(Boolean.TRUE); float start = cb[w].getInputStart().floatValue(); float end = cb[w].getInputEnd().floatValue(); //TODO: find a better way. if (gMax == end && gMin == start) cb[w].setInputStart(new Float(sf.getInputStart())); cb[w].setInputEnd(new Float(sf.getInputEnd())); // TODO double / Float? } }
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator(); i.hasNext(); ) { // FIXME: This is where we need to have the ChannelBinding --> // Channel linkage. Channel channel = (Channel) i.next(); double gMin = channel.getStatsInfo().getGlobalMin().doubleValue(); double gMax = channel.getStatsInfo().getGlobalMax().doubleValue(); //TEst sf.computeLocationStats(metadata, buffer, pd, w); //cb[w].setNoiseReduction(new Boolean(sf.isNoiseReduction())); cb[w].setNoiseReduction(Boolean.TRUE); float start = cb[w].getInputStart().floatValue(); float end = cb[w].getInputEnd().floatValue(); //TODO: find a better way. if (gMax == end && gMin == start) cb[w].setInputStart(new Float(sf.getInputStart())); cb[w].setInputEnd(new Float(sf.getInputEnd())); // TODO double / Float? } }
3,229,659
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator(); i.hasNext(); ) { // FIXME: This is where we need to have the ChannelBinding --> // Channel linkage. Channel channel = (Channel) i.next(); double gMin = channel.getStatsInfo().getGlobalMin().doubleValue(); double gMax = channel.getStatsInfo().getGlobalMax().doubleValue(); //TEst sf.computeLocationStats(metadata, buffer, pd, w); //cb[w].setNoiseReduction(new Boolean(sf.isNoiseReduction())); cb[w].setNoiseReduction(Boolean.TRUE); float start = cb[w].getInputStart().floatValue(); float end = cb[w].getInputEnd().floatValue(); //TODO: find a better way. if (gMax == end && gMin == start) cb[w].setInputStart(new Float(sf.getInputStart())); cb[w].setInputEnd(new Float(sf.getInputEnd())); // TODO double / Float? } }
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator(); i.hasNext(); ) { // FIXME: This is where we need to have the ChannelBinding --> // Channel linkage. Channel channel = (Channel) i.next(); double gMin = channel.getStatsInfo().getGlobalMin().doubleValue(); double gMax = channel.getStatsInfo().getGlobalMax().doubleValue(); //TEst sf.computeLocationStats(metadata, buffer, pd, w); //cb[w].setNoiseReduction(new Boolean(sf.isNoiseReduction())); cb[w].setNoiseReduction(Boolean.TRUE); float start = cb[w].getInputStart().floatValue(); float end = cb[w].getInputEnd().floatValue(); //TODO: find a better way. if (gMax == end && gMin == start) cb[w].setInputStart(new Float(sf.getInputStart())); cb[w].setInputEnd(new Float(sf.getInputEnd())); // TODO double / Float? } }
3,229,660
public String getPixelsType() { return metadata.getPixelsType().getValue(); }
public PixelsType getPixelsType() { return metadata.getPixelsType().getValue(); }
3,229,661
public String getPixelsType() { return metadata.getPixelsType().getValue(); }
public String getPixelsType() { return metadata.getPixelsType(); }
3,229,662
public RGBBuffer render(PlaneDef pd) throws IOException, QuantizationException { if (pd == null) throw new NullPointerException("No plane definition."); stats = new RenderingStats(this, pd); log.info("Using: '" + renderingStrategy.getClass().getName() + "' rendering strategy."); RGBBuffer img = renderingStrategy.render(this, pd); stats.stop(); //j.m Logger log = Env.getSvcRegistry().getLogger(); log.info(stats.getStats()); //TODO: is this the right place to log??? We want to have as little //impact on performance as possible. return img; }
publicRGBBufferrender(PlaneDefpd) throwsIOException,QuantizationException { if(pd==null) thrownewNullPointerException("Noplanedefinition.");stats=newRenderingStats(this,pd);log.info("Using:'"+renderingStrategy.getClass().getName()+"'renderingstrategy.");RGBBufferimg=renderingStrategy.render(this,pd);stats.stop();//j.mLoggerlog=Env.getSvcRegistry().getLogger();log.info(stats.getStats());//TODO:isthistherightplacetolog???Wewanttohaveaslittle//impactonperformanceaspossible.returnimg; }
3,229,663
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; int model = RenderingDefConstants.GS; List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext().getPhotometricInterpretation().getValue() == "RGB") // FIXME { active = true; model = RenderingDefConstants.RGB; } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); int c[] = ColorsFactory.getColor(w, channel); setRGBA(w, c[ColorsFactory.RED], c[ColorsFactory.GREEN], c[ColorsFactory.BLUE], c[ColorsFactory.ALPHA]); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; RenderingModel model = PlaneFactory.getRenderingModel(MODEL_GREYSCALE); List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext().getPhotometricInterpretation().getValue() == "RGB") // FIXME { active = true; model = RenderingDefConstants.RGB; } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); int c[] = ColorsFactory.getColor(w, channel); setRGBA(w, c[ColorsFactory.RED], c[ColorsFactory.GREEN], c[ColorsFactory.BLUE], c[ColorsFactory.ALPHA]); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
3,229,664
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; int model = RenderingDefConstants.GS; List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext().getPhotometricInterpretation().getValue() == "RGB") // FIXME { active = true; model = RenderingDefConstants.RGB; } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); int c[] = ColorsFactory.getColor(w, channel); setRGBA(w, c[ColorsFactory.RED], c[ColorsFactory.GREEN], c[ColorsFactory.BLUE], c[ColorsFactory.ALPHA]); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; int model = RenderingDefConstants.GS; List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext(). getPhotometricInterpretation().getValue() == PHOTOMETRIC_RGB) // FIXME { active = true; model = RenderingDefConstants.RGB; } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); int c[] = ColorsFactory.getColor(w, channel); setRGBA(w, c[ColorsFactory.RED], c[ColorsFactory.GREEN], c[ColorsFactory.BLUE], c[ColorsFactory.ALPHA]); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
3,229,665
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; int model = RenderingDefConstants.GS; List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext().getPhotometricInterpretation().getValue() == "RGB") // FIXME { active = true; model = RenderingDefConstants.RGB; } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); int c[] = ColorsFactory.getColor(w, channel); setRGBA(w, c[ColorsFactory.RED], c[ColorsFactory.GREEN], c[ColorsFactory.BLUE], c[ColorsFactory.ALPHA]); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; int model = RenderingDefConstants.GS; List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext().getPhotometricInterpretation().getValue() == "RGB") // FIXME { active = true; model = PlaneFactory.getRenderingModel(MODEL_RGB); } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); int c[] = ColorsFactory.getColor(w, channel); setRGBA(w, c[ColorsFactory.RED], c[ColorsFactory.GREEN], c[ColorsFactory.BLUE], c[ColorsFactory.ALPHA]); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
3,229,666
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; int model = RenderingDefConstants.GS; List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext().getPhotometricInterpretation().getValue() == "RGB") // FIXME { active = true; model = RenderingDefConstants.RGB; } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); int c[] = ColorsFactory.getColor(w, channel); setRGBA(w, c[ColorsFactory.RED], c[ColorsFactory.GREEN], c[ColorsFactory.BLUE], c[ColorsFactory.ALPHA]); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; int model = RenderingDefConstants.GS; List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext().getPhotometricInterpretation().getValue() == "RGB") // FIXME { active = true; model = RenderingDefConstants.RGB; } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); int c[] = ColorsFactory.getColor(w, channel); setRGBA(w, c[ColorsFactory.RED], c[ColorsFactory.GREEN], c[ColorsFactory.BLUE], c[ColorsFactory.ALPHA]); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
3,229,667
public void setModel(int model) { rndDef.setModel(RenderingDefConstants.convertToType(model)); renderingStrategy = RenderingStrategy.makeNew(model); }
public void setModel(int model) { rndDef.setModel(RenderingDefConstants.convertToType(model)); renderingStrategy = RenderingStrategy.makeNew(model); }
3,229,668
public void setModel(int model) { rndDef.setModel(RenderingDefConstants.convertToType(model)); renderingStrategy = RenderingStrategy.makeNew(model); }
public void setModel(int model) { rndDef.setModel(RenderingDefConstants.convertToType(model)); renderingStrategy = RenderingStrategy.makeNew(model); }
3,229,669
public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction) { QuantumStrategy qs = getQuantumManager().getStrategyFor(w); qs.setQuantizationMap(family, coefficient, noiseReduction); ChannelBinding[] cb = getChannelBindings(); // FIXME cb[w].setQuantizationMap(family, coefficient, noiseReduction); }
public void setQuantizationMap(int w, Family family, double coefficient, boolean noiseReduction) { QuantumStrategy qs = getQuantumManager().getStrategyFor(w); qs.setQuantizationMap(family, coefficient, noiseReduction); ChannelBinding[] cb = getChannelBindings(); // FIXME cb[w].setQuantizationMap(family, coefficient, noiseReduction); }
3,229,670
public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction) { QuantumStrategy qs = getQuantumManager().getStrategyFor(w); qs.setQuantizationMap(family, coefficient, noiseReduction); ChannelBinding[] cb = getChannelBindings(); // FIXME cb[w].setQuantizationMap(family, coefficient, noiseReduction); }
cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); publiccb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); voidcb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); setQuantizationMap(intcb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); w,cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); intcb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); family,cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); doublecb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); coefficient,cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); booleancb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); noiseReduction)cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); {cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); QuantumStrategycb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); qscb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); =cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); getQuantumManager().getStrategyFor(w);cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); qs.setQuantizationMap(family,cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); coefficient,cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); noiseReduction);cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); ChannelBinding[]cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cbcb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); =cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); getChannelBindings();cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); //cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); FIXMEcb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setQuantizationMap(family,cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); coefficient,cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); noiseReduction);cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); }
3,229,671
public void setRGBA(int w, int red, int green, int blue, int alpha) { ChannelBinding[] cb = getChannelBindings(); // TODO cb[w].setRGBA(red, green, blue, alpha); Color c = cb[w].getColor(); c.setRed(Integer.valueOf(red)); c.setGreen(Integer.valueOf(green)); c.setBlue(Integer.valueOf(blue)); c.setAlpha(Integer.valueOf(alpha)); }
publicvoidsetRGBA(intw,intred,intgreen,intblue,intalpha){ChannelBinding[]cb=getChannelBindings();//TODOcb[w].setRGBA(red,green,blue,alpha);Colorc=cb[w].getColor();c.setRed(Integer.valueOf(red));c.setGreen(Integer.valueOf(green));c.setBlue(Integer.valueOf(blue));c.setAlpha(Integer.valueOf(alpha));}
3,229,672
QuantumManager(Pixels metadata) { this.metadata = metadata; wavesStg = new QuantumStrategy[metadata.getSizeC().intValue()]; }
QuantumManager(Pixels metadata) { this.metadata = metadata; wavesStg = new QuantumStrategy[metadata.getSizeC().intValue()]; }
3,229,673
void initStrategies(QuantumDef qd, PixelsType type, ChannelBinding[] waves) { QuantumStrategy stg; double gMin, gMax; List channels = this.metadata.getChannels(); int w = 0; Channel channel; for (Iterator i = channels.iterator(); i.hasNext();) { channel = (Channel) i.next(); stg = QuantumFactory.getStrategy(qd,type); gMin = channel.getStatsInfo().getGlobalMin().doubleValue(); gMax = channel.getStatsInfo().getGlobalMax().doubleValue(); stg.setExtent(gMin, gMax); stg.setMapping( waves[w].getFamily(), waves[w].getCoefficient().doubleValue(), waves[w].getNoiseReduction().booleanValue()); if (wavesStg[w] == null) stg.setWindow(waves[w].getInputStart().intValue(), waves[w].getInputEnd().intValue()); else stg.setWindow(wavesStg[w].getWindowStart(), wavesStg[w].getWindowEnd()); wavesStg[w] = stg; w++; } }
void initStrategies(QuantumDef qd, PixelsType type, ChannelBinding[] waves) { QuantumStrategy stg; double gMin, gMax; List channels = this.metadata.getChannels(); int w = 0; Channel channel; for (Iterator i = channels.iterator(); i.hasNext();) { channel = (Channel) i.next(); stg = QuantumFactory.getStrategy(qd,type); gMin = channel.getStatsInfo().getGlobalMin().doubleValue(); gMax = channel.getStatsInfo().getGlobalMax().doubleValue(); stg.setExtent(gMin, gMax); stg.setMapping( waves[w].getFamily(), waves[w].getCoefficient().doubleValue(), waves[w].getNoiseReduction().booleanValue()); if (wavesStg[w] == null) stg.setWindow(waves[w].getInputStart().intValue(), waves[w].getInputEnd().intValue()); else stg.setWindow(wavesStg[w].getWindowStart(), wavesStg[w].getWindowEnd()); wavesStg[w] = stg; w++; } }
3,229,675
public void computeLocationStats(Pixels metadata, PixelBuffer pixelsData, PlaneDef pd, int index) { int sizeX = metadata.getSizeX().intValue(); int sizeY = metadata.getSizeY().intValue(); Channel channel = (Channel) metadata.getChannels().get(index); StatsInfo stats = channel.getStatsInfo(); double gMin = stats.getGlobalMin().doubleValue(); double gMax = stats.getGlobalMax().doubleValue(); Plane2D plane2D = Helper.createPlane(pd, index, metadata, pixelsData); if (gMax - gMin >= NB_BIN) computeBins(plane2D, stats, sizeY, sizeX); }
public void computeLocationStats(Pixels metadata, PixelBuffer pixelsData, PlaneDef pd, int index) { int sizeX = metadata.getSizeX().intValue(); int sizeY = metadata.getSizeY().intValue(); Channel channel = (Channel) metadata.getChannels().get(index); StatsInfo stats = channel.getStatsInfo(); double gMin = stats.getGlobalMin().doubleValue(); double gMax = stats.getGlobalMax().doubleValue(); Plane2D plane2D = PlaneFactory.createPlane(pd, index, metadata, pixelsData); if (gMax - gMin >= NB_BIN) computeBins(plane2D, stats, sizeY, sizeX); }
3,229,676
public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.append(CONTEXT_UNDERLINE); sb.append(OMEIS_PIXELS_ID); sb.append(context.getMetadata().getId()); sb.append(PLANE); sb.append(plane); sb.append(PLANE_DATA); sb.append(context.getPlaneDimsAsString(plane)); sb.append(SPACE); sb.append(context.getPixelsType()); sb.append(CHANNELS); sb.append(ioTime.keySet().size()); sb.append(RENDERED_IMAGE); sb.append(context.getImageSize(plane)); sb.append(BYTES); sb.append(COLOR_MODEL); sb.append(context.getRenderingDef().getModel()); // FIXME is this ok? sb.append(CODOMAIN_MAPS); sb.append(context.getCodomainChain()); sb.append(n); sb.append(TIMES); sb.append(TIMES_UNDERLINE); sb.append(MEMORY_ALLOCATION); sb.append(mallocTime); sb.append(IO); sb.append(getIoTimeString()); sb.append(RENDERING); sb.append(renderingTime); sb.append(TOTAL); sb.append(totalTime); sb.append(n); sb.append(BOTTOM_LINE); return sb.toString(); //j.m }
public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.append(CONTEXT_UNDERLINE); sb.append(OMEIS_PIXELS_ID); sb.append(context.getMetadata().getId()); sb.append(PLANE); sb.append(plane); sb.append(PLANE_DATA); sb.append(context.getPlaneDimsAsString(plane)); sb.append(SPACE); sb.append(context.getPixelsType()); sb.append(CHANNELS); sb.append(ioTime.keySet().size()); sb.append(RENDERED_IMAGE); sb.append(context.getImageSize(plane)); sb.append(BYTES); sb.append(COLOR_MODEL); sb.append(context.getRenderingDef().getModel()); // FIXME is this ok? sb.append(CODOMAIN_MAPS); sb.append(context.getCodomainChain()); sb.append(n); sb.append(TIMES); sb.append(TIMES_UNDERLINE); sb.append(MEMORY_ALLOCATION); sb.append(mallocTime); sb.append(IO); sb.append(getIoTimeString()); sb.append(RENDERING); sb.append(renderingTime); sb.append(TOTAL); sb.append(totalTime); sb.append(n); sb.append(BOTTOM_LINE); return sb.toString(); //j.m }
3,229,677
public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.append(CONTEXT_UNDERLINE); sb.append(OMEIS_PIXELS_ID); sb.append(context.getMetadata().getId()); sb.append(PLANE); sb.append(plane); sb.append(PLANE_DATA); sb.append(context.getPlaneDimsAsString(plane)); sb.append(SPACE); sb.append(context.getPixelsType()); sb.append(CHANNELS); sb.append(ioTime.keySet().size()); sb.append(RENDERED_IMAGE); sb.append(context.getImageSize(plane)); sb.append(BYTES); sb.append(COLOR_MODEL); sb.append(context.getRenderingDef().getModel()); // FIXME is this ok? sb.append(CODOMAIN_MAPS); sb.append(context.getCodomainChain()); sb.append(n); sb.append(TIMES); sb.append(TIMES_UNDERLINE); sb.append(MEMORY_ALLOCATION); sb.append(mallocTime); sb.append(IO); sb.append(getIoTimeString()); sb.append(RENDERING); sb.append(renderingTime); sb.append(TOTAL); sb.append(totalTime); sb.append(n); sb.append(BOTTOM_LINE); return sb.toString(); //j.m }
public String getStats() // j.m{//j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048);String n = "\n"; sb.append(n);//TODOsb.append(RENDERING_STATS);sb.append(n);sb.append(CONTEXT);sb.append(CONTEXT_UNDERLINE);sb.append(OMEIS_PIXELS_ID);sb.append(context.getMetadata().getId());sb.append(PLANE);sb.append(plane);sb.append(PLANE_DATA);sb.append(context.getPlaneDimsAsString(plane));sb.append(SPACE);sb.append(context.getPixelsType());sb.append(CHANNELS);sb.append(ioTime.keySet().size());sb.append(RENDERED_IMAGE);sb.append(context.getImageSize(plane));sb.append(BYTES);sb.append(COLOR_MODEL);sb.append(context.getRenderingDef().getModel()); // FIXME is this ok?sb.append(CODOMAIN_MAPS);sb.append(context.getCodomainChain());sb.append(n);sb.append(TIMES);sb.append(TIMES_UNDERLINE);sb.append(MEMORY_ALLOCATION);sb.append(mallocTime);sb.append(IO);sb.append(getIoTimeString());sb.append(RENDERING);sb.append(renderingTime);sb.append(TOTAL);sb.append(totalTime);sb.append(n);sb.append(BOTTOM_LINE);return sb.toString(); //j.m}
3,229,678
public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.append(CONTEXT_UNDERLINE); sb.append(OMEIS_PIXELS_ID); sb.append(context.getMetadata().getId()); sb.append(PLANE); sb.append(plane); sb.append(PLANE_DATA); sb.append(context.getPlaneDimsAsString(plane)); sb.append(SPACE); sb.append(context.getPixelsType()); sb.append(CHANNELS); sb.append(ioTime.keySet().size()); sb.append(RENDERED_IMAGE); sb.append(context.getImageSize(plane)); sb.append(BYTES); sb.append(COLOR_MODEL); sb.append(context.getRenderingDef().getModel()); // FIXME is this ok? sb.append(CODOMAIN_MAPS); sb.append(context.getCodomainChain()); sb.append(n); sb.append(TIMES); sb.append(TIMES_UNDERLINE); sb.append(MEMORY_ALLOCATION); sb.append(mallocTime); sb.append(IO); sb.append(getIoTimeString()); sb.append(RENDERING); sb.append(renderingTime); sb.append(TOTAL); sb.append(totalTime); sb.append(n); sb.append(BOTTOM_LINE); return sb.toString(); //j.m }
public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.append(CONTEXT_UNDERLINE); sb.append(OMEIS_PIXELS_ID); sb.append(context.getMetadata().getId()); sb.append(PLANE); sb.append(plane); sb.append(PLANE_DATA); sb.append(context.getPlaneDimsAsString(plane)); sb.append(SPACE); sb.append(context.getPixelsType()); sb.append(CHANNELS); sb.append(ioTime.keySet().size()); sb.append(RENDERED_IMAGE); sb.append(context.getImageSize(plane)); sb.append(BYTES); sb.append(COLOR_MODEL); sb.append(context.getRenderingDef().getModel()); // FIXME is this ok? sb.append(CODOMAIN_MAPS); sb.append(context.getCodomainChain()); sb.append(n); sb.append(TIMES); sb.append(TIMES_UNDERLINE); sb.append(MEMORY_ALLOCATION); sb.append(mallocTime); sb.append(IO); sb.append(getIoTimeString()); sb.append(RENDERING); sb.append(renderingTime); sb.append(TOTAL); sb.append(totalTime); sb.append(n); sb.append(BOTTOM_LINE); return sb.toString(); //j.m }
3,229,679
public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.append(CONTEXT_UNDERLINE); sb.append(OMEIS_PIXELS_ID); sb.append(context.getMetadata().getId()); sb.append(PLANE); sb.append(plane); sb.append(PLANE_DATA); sb.append(context.getPlaneDimsAsString(plane)); sb.append(SPACE); sb.append(context.getPixelsType()); sb.append(CHANNELS); sb.append(ioTime.keySet().size()); sb.append(RENDERED_IMAGE); sb.append(context.getImageSize(plane)); sb.append(BYTES); sb.append(COLOR_MODEL); sb.append(context.getRenderingDef().getModel()); // FIXME is this ok? sb.append(CODOMAIN_MAPS); sb.append(context.getCodomainChain()); sb.append(n); sb.append(TIMES); sb.append(TIMES_UNDERLINE); sb.append(MEMORY_ALLOCATION); sb.append(mallocTime); sb.append(IO); sb.append(getIoTimeString()); sb.append(RENDERING); sb.append(renderingTime); sb.append(TOTAL); sb.append(totalTime); sb.append(n); sb.append(BOTTOM_LINE); return sb.toString(); //j.m }
public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.append(CONTEXT_UNDERLINE); sb.append(OMEIS_PIXELS_ID); sb.append(context.getMetadata().getId()); sb.append(PLANE); sb.append(plane); sb.append(PLANE_DATA); sb.append(context.getPlaneDimsAsString(plane)); sb.append(SPACE); sb.append(context.getPixelsType()); sb.append(CHANNELS); sb.append(ioTime.keySet().size()); sb.append(RENDERED_IMAGE); sb.append(context.getImageSize(plane)); sb.append(BYTES); sb.append(COLOR_MODEL); sb.append(context.getRenderingDef().getModel().getValue()); // FIXME is this ok? sb.append(CODOMAIN_MAPS); sb.append(context.getCodomainChain()); sb.append(n); sb.append(TIMES); sb.append(TIMES_UNDERLINE); sb.append(MEMORY_ALLOCATION); sb.append(mallocTime); sb.append(IO); sb.append(getIoTimeString()); sb.append(RENDERING); sb.append(renderingTime); sb.append(TOTAL); sb.append(totalTime); sb.append(n); sb.append(BOTTOM_LINE); return sb.toString(); //j.m }
3,229,680
public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.append(CONTEXT_UNDERLINE); sb.append(OMEIS_PIXELS_ID); sb.append(context.getMetadata().getId()); sb.append(PLANE); sb.append(plane); sb.append(PLANE_DATA); sb.append(context.getPlaneDimsAsString(plane)); sb.append(SPACE); sb.append(context.getPixelsType()); sb.append(CHANNELS); sb.append(ioTime.keySet().size()); sb.append(RENDERED_IMAGE); sb.append(context.getImageSize(plane)); sb.append(BYTES); sb.append(COLOR_MODEL); sb.append(context.getRenderingDef().getModel()); // FIXME is this ok? sb.append(CODOMAIN_MAPS); sb.append(context.getCodomainChain()); sb.append(n); sb.append(TIMES); sb.append(TIMES_UNDERLINE); sb.append(MEMORY_ALLOCATION); sb.append(mallocTime); sb.append(IO); sb.append(getIoTimeString()); sb.append(RENDERING); sb.append(renderingTime); sb.append(TOTAL); sb.append(totalTime); sb.append(n); sb.append(BOTTOM_LINE); return sb.toString(); //j.m }
public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.append(CONTEXT_UNDERLINE); sb.append(OMEIS_PIXELS_ID); sb.append(context.getMetadata().getId()); sb.append(PLANE); sb.append(plane); sb.append(PLANE_DATA); sb.append(context.getPlaneDimsAsString(plane)); sb.append(SPACE); sb.append(context.getPixelsType()); sb.append(CHANNELS); sb.append(ioTime.keySet().size()); sb.append(RENDERED_IMAGE); sb.append(context.getImageSize(plane)); sb.append(BYTES); sb.append(COLOR_MODEL); sb.append(context.getRenderingDef().getModel()); // FIXME is this ok? sb.append(CODOMAIN_MAPS); sb.append(context.getCodomainChain()); sb.append(n); sb.append(TIMES); sb.append(TIMES_UNDERLINE); sb.append(MEMORY_ALLOCATION); sb.append(mallocTime); sb.append(IO); sb.append(getIoTimeString()); sb.append(RENDERING); sb.append(renderingTime); sb.append(TOTAL); sb.append(totalTime); sb.append(n); sb.append(BOTTOM_LINE); return sb.toString(); //j.m }
3,229,681
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper);
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper);
3,229,682
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
3,229,683
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception("Invalid stack state"); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
3,229,684
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int mdepth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int mdepth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
3,229,685
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,mdepth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
3,229,686
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); mdepth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
3,229,687
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { mdepth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
3,229,688
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (mdepth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
3,229,689
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (mdepth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
3,229,690
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int mdepth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int mdepth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); mdepth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
3,229,691
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); throw new IllegalStateException(sb.toString()); } }
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; for (int i = 0; i < last; i++) { String name = _qName[i]; long time = _qTime[i]; if (name != null) { // start a new event ProfileEvent wme = buf[++next]; if (wme == null) { wme = new ProfileEvent(); buf[next] = wme; } wme.name = name; wme.start = time; wme.duration = lastOpen; // tmp parent pointer wme.depth = depth++; lastOpen = next; } else { ProfileEvent wme = buf[lastOpen]; lastOpen = wme.duration; // a tmp parent pointer wme.duration = (int) (time - wme.start); depth--; } } if ((depth != 0) || (next+1 != numEvents)) { throw new Exception(); // not as many starts as stops } return new Iterator() { int pos = 0; public boolean hasNext() { return (pos < numEvents); } public Object next() { return (_eventBuffer[pos++]); } public void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException("Cannot remove"); } }; } catch (Exception e) { StringBuffer sb = new StringBuffer(); sb.append("Profile: start/stop timing call graph invalid:\n"); char[] indent = new char[_qPtr * 4]; Arrays.fill(indent, ' '); int depth = 0; for (int i = 0; i < _qPtr; i++) { if (_qName[i] != null) { sb.append(indent,0,depth); sb.append(_qName[i]); sb.append("\n"); depth += 2; } else { depth -= 2; } if (depth > _qPtr/2) { sb.append("AT THIS POINT MORE START TIMINGS THAN STOPS\n"); } if (depth < 0) { sb.append("AT THIS POINT MORE STOP TIMINGS THAN STARTS\n"); depth = 0; } } sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS:" + "depth=" + depth + " " + "lastOpen=" + lastOpen + " " + "next=" + next + " " + "last=" + last + " " + "buf.length=" + buf.length); e.printStackTrace(); throw new IllegalStateException(sb.toString()); } }
3,229,692
public static RubyArray create(Ruby ruby, RubyObject recv, RubyObject[] args) { return newArray(ruby, Arrays.asList(args)); }
public static RubyArray create(Ruby ruby, RubyObject recv, RubyObject[] args) { RubyArray array = newArray(ruby, Arrays.asList(args)); array.setRubyClass((RubyClass) recv); return array; }
3,229,693
public static RubyClass createArrayClass(Ruby ruby) { RubyClass arrayClass = ruby.defineClass("Array", ruby.getClasses().getObjectClass()); arrayClass.includeModule(ruby.getRubyModule("Enumerable")); arrayClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyArray.class, "create")); arrayClass.defineSingletonMethod("[]", CallbackFactory.getOptSingletonMethod(RubyArray.class, "create")); arrayClass.defineMethod("initialize", CallbackFactory.getOptMethod(RubyArray.class, "initialize")); arrayClass.defineMethod("inspect", CallbackFactory.getMethod(RubyArray.class, "inspect")); arrayClass.defineMethod("to_s", CallbackFactory.getMethod(RubyArray.class, "to_s")); arrayClass.defineMethod("to_a", CallbackFactory.getMethod(RubyArray.class, "to_a")); arrayClass.defineMethod("to_ary", CallbackFactory.getMethod(RubyArray.class, "to_a")); arrayClass.defineMethod("frozen?", CallbackFactory.getMethod(RubyArray.class, "frozen")); arrayClass.defineMethod("==", CallbackFactory.getMethod(RubyArray.class, "equal", RubyObject.class)); arrayClass.defineMethod("eql?", CallbackFactory.getMethod(RubyArray.class, "eql", RubyObject.class)); arrayClass.defineMethod("hash", CallbackFactory.getMethod(RubyArray.class, "hash")); arrayClass.defineMethod("===", CallbackFactory.getMethod(RubyArray.class, "equal", RubyObject.class)); arrayClass.defineMethod("[]", CallbackFactory.getOptMethod(RubyArray.class, "aref")); arrayClass.defineMethod("[]=", CallbackFactory.getOptMethod(RubyArray.class, "aset")); arrayClass.defineMethod("at", CallbackFactory.getMethod(RubyArray.class, "at", RubyFixnum.class)); arrayClass.defineMethod("first", CallbackFactory.getMethod(RubyArray.class, "first")); arrayClass.defineMethod("last", CallbackFactory.getMethod(RubyArray.class, "last")); arrayClass.defineMethod("concat", CallbackFactory.getMethod(RubyArray.class, "concat", RubyObject.class)); arrayClass.defineMethod("<<", CallbackFactory.getMethod(RubyArray.class, "push", RubyObject.class)); arrayClass.defineMethod("push", CallbackFactory.getOptMethod(RubyArray.class, "push")); arrayClass.defineMethod("pop", CallbackFactory.getMethod(RubyArray.class, "pop")); arrayClass.defineMethod("shift", CallbackFactory.getMethod(RubyArray.class, "shift")); arrayClass.defineMethod("unshift", CallbackFactory.getOptMethod(RubyArray.class, "unshift")); arrayClass.defineMethod("each", CallbackFactory.getMethod(RubyArray.class, "each")); arrayClass.defineMethod("each_index", CallbackFactory.getMethod(RubyArray.class, "each_index")); arrayClass.defineMethod("reverse_each", CallbackFactory.getMethod(RubyArray.class, "reverse_each")); arrayClass.defineMethod("length", CallbackFactory.getMethod(RubyArray.class, "length")); arrayClass.defineMethod("size", CallbackFactory.getMethod(RubyArray.class, "length")); arrayClass.defineMethod("empty?", CallbackFactory.getMethod(RubyArray.class, "empty_p")); arrayClass.defineMethod("index", CallbackFactory.getMethod(RubyArray.class, "index", RubyObject.class)); arrayClass.defineMethod("rindex", CallbackFactory.getMethod(RubyArray.class, "rindex", RubyObject.class)); arrayClass.defineMethod("indexes", CallbackFactory.getOptMethod(RubyArray.class, "indexes")); arrayClass.defineMethod("indices", CallbackFactory.getOptMethod(RubyArray.class, "indexes")); arrayClass.defineMethod("clone", CallbackFactory.getMethod(RubyArray.class, "rbClone")); arrayClass.defineMethod("join", CallbackFactory.getOptMethod(RubyArray.class, "join")); arrayClass.defineMethod("reverse", CallbackFactory.getMethod(RubyArray.class, "reverse")); arrayClass.defineMethod("reverse!", CallbackFactory.getMethod(RubyArray.class, "reverse_bang")); arrayClass.defineMethod("sort", CallbackFactory.getMethod(RubyArray.class, "sort")); arrayClass.defineMethod("sort!", CallbackFactory.getMethod(RubyArray.class, "sort_bang")); arrayClass.defineMethod("collect", CallbackFactory.getMethod(RubyArray.class, "collect")); arrayClass.defineMethod("collect!", CallbackFactory.getMethod(RubyArray.class, "collect_bang")); arrayClass.defineMethod("map!", CallbackFactory.getMethod(RubyArray.class, "collect_bang")); arrayClass.defineMethod("filter", CallbackFactory.getMethod(RubyArray.class, "collect_bang")); arrayClass.defineMethod("delete", CallbackFactory.getMethod(RubyArray.class, "delete", RubyObject.class)); arrayClass.defineMethod("delete_at", CallbackFactory.getMethod(RubyArray.class, "delete_at", RubyObject.class)); arrayClass.defineMethod("delete_if", CallbackFactory.getMethod(RubyArray.class, "delete_if")); arrayClass.defineMethod("reject!", CallbackFactory.getMethod(RubyArray.class, "reject_bang")); arrayClass.defineMethod("replace", CallbackFactory.getMethod(RubyArray.class, "replace", RubyObject.class)); arrayClass.defineMethod("clear", CallbackFactory.getMethod(RubyArray.class, "clear")); arrayClass.defineMethod("fill", CallbackFactory.getOptMethod(RubyArray.class, "fill")); arrayClass.defineMethod("include?", CallbackFactory.getMethod(RubyArray.class, "includes", RubyObject.class)); arrayClass.defineMethod("<=>", CallbackFactory.getMethod(RubyArray.class, "op_cmp", RubyObject.class)); arrayClass.defineMethod("slice", CallbackFactory.getOptMethod(RubyArray.class, "aref")); arrayClass.defineMethod("slice!", CallbackFactory.getOptMethod(RubyArray.class, "slice_bang")); arrayClass.defineMethod("assoc", CallbackFactory.getMethod(RubyArray.class, "assoc", RubyObject.class)); arrayClass.defineMethod("rassoc", CallbackFactory.getMethod(RubyArray.class, "rassoc", RubyObject.class)); arrayClass.defineMethod("+", CallbackFactory.getMethod(RubyArray.class, "op_plus", RubyObject.class)); arrayClass.defineMethod("*", CallbackFactory.getMethod(RubyArray.class, "op_times", RubyObject.class)); arrayClass.defineMethod("-", CallbackFactory.getMethod(RubyArray.class, "op_diff", RubyObject.class)); arrayClass.defineMethod("&", CallbackFactory.getMethod(RubyArray.class, "op_and", RubyObject.class)); arrayClass.defineMethod("|", CallbackFactory.getMethod(RubyArray.class, "op_or", RubyObject.class)); arrayClass.defineMethod("uniq", CallbackFactory.getMethod(RubyArray.class, "uniq")); arrayClass.defineMethod("uniq!", CallbackFactory.getMethod(RubyArray.class, "uniq_bang")); arrayClass.defineMethod("compact", CallbackFactory.getMethod(RubyArray.class, "compact")); arrayClass.defineMethod("compact!", CallbackFactory.getMethod(RubyArray.class, "compact_bang")); arrayClass.defineMethod("flatten", CallbackFactory.getMethod(RubyArray.class, "flatten")); arrayClass.defineMethod("flatten!", CallbackFactory.getMethod(RubyArray.class, "flatten_bang")); arrayClass.defineMethod("nitems", CallbackFactory.getMethod(RubyArray.class, "nitems")); return arrayClass; }
public static RubyClass createArrayClass(Ruby ruby) { RubyClass arrayClass = ruby.defineClass("Array", ruby.getClasses().getObjectClass()); arrayClass.includeModule(ruby.getRubyModule("Enumerable")); arrayClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyArray.class, "newInstance")); arrayClass.defineSingletonMethod("[]", CallbackFactory.getOptSingletonMethod(RubyArray.class, "create")); arrayClass.defineMethod("initialize", CallbackFactory.getOptMethod(RubyArray.class, "initialize")); arrayClass.defineMethod("inspect", CallbackFactory.getMethod(RubyArray.class, "inspect")); arrayClass.defineMethod("to_s", CallbackFactory.getMethod(RubyArray.class, "to_s")); arrayClass.defineMethod("to_a", CallbackFactory.getMethod(RubyArray.class, "to_a")); arrayClass.defineMethod("to_ary", CallbackFactory.getMethod(RubyArray.class, "to_a")); arrayClass.defineMethod("frozen?", CallbackFactory.getMethod(RubyArray.class, "frozen")); arrayClass.defineMethod("==", CallbackFactory.getMethod(RubyArray.class, "equal", RubyObject.class)); arrayClass.defineMethod("eql?", CallbackFactory.getMethod(RubyArray.class, "eql", RubyObject.class)); arrayClass.defineMethod("hash", CallbackFactory.getMethod(RubyArray.class, "hash")); arrayClass.defineMethod("===", CallbackFactory.getMethod(RubyArray.class, "equal", RubyObject.class)); arrayClass.defineMethod("[]", CallbackFactory.getOptMethod(RubyArray.class, "aref")); arrayClass.defineMethod("[]=", CallbackFactory.getOptMethod(RubyArray.class, "aset")); arrayClass.defineMethod("at", CallbackFactory.getMethod(RubyArray.class, "at", RubyFixnum.class)); arrayClass.defineMethod("first", CallbackFactory.getMethod(RubyArray.class, "first")); arrayClass.defineMethod("last", CallbackFactory.getMethod(RubyArray.class, "last")); arrayClass.defineMethod("concat", CallbackFactory.getMethod(RubyArray.class, "concat", RubyObject.class)); arrayClass.defineMethod("<<", CallbackFactory.getMethod(RubyArray.class, "push", RubyObject.class)); arrayClass.defineMethod("push", CallbackFactory.getOptMethod(RubyArray.class, "push")); arrayClass.defineMethod("pop", CallbackFactory.getMethod(RubyArray.class, "pop")); arrayClass.defineMethod("shift", CallbackFactory.getMethod(RubyArray.class, "shift")); arrayClass.defineMethod("unshift", CallbackFactory.getOptMethod(RubyArray.class, "unshift")); arrayClass.defineMethod("each", CallbackFactory.getMethod(RubyArray.class, "each")); arrayClass.defineMethod("each_index", CallbackFactory.getMethod(RubyArray.class, "each_index")); arrayClass.defineMethod("reverse_each", CallbackFactory.getMethod(RubyArray.class, "reverse_each")); arrayClass.defineMethod("length", CallbackFactory.getMethod(RubyArray.class, "length")); arrayClass.defineMethod("size", CallbackFactory.getMethod(RubyArray.class, "length")); arrayClass.defineMethod("empty?", CallbackFactory.getMethod(RubyArray.class, "empty_p")); arrayClass.defineMethod("index", CallbackFactory.getMethod(RubyArray.class, "index", RubyObject.class)); arrayClass.defineMethod("rindex", CallbackFactory.getMethod(RubyArray.class, "rindex", RubyObject.class)); arrayClass.defineMethod("indexes", CallbackFactory.getOptMethod(RubyArray.class, "indexes")); arrayClass.defineMethod("indices", CallbackFactory.getOptMethod(RubyArray.class, "indexes")); arrayClass.defineMethod("clone", CallbackFactory.getMethod(RubyArray.class, "rbClone")); arrayClass.defineMethod("join", CallbackFactory.getOptMethod(RubyArray.class, "join")); arrayClass.defineMethod("reverse", CallbackFactory.getMethod(RubyArray.class, "reverse")); arrayClass.defineMethod("reverse!", CallbackFactory.getMethod(RubyArray.class, "reverse_bang")); arrayClass.defineMethod("sort", CallbackFactory.getMethod(RubyArray.class, "sort")); arrayClass.defineMethod("sort!", CallbackFactory.getMethod(RubyArray.class, "sort_bang")); arrayClass.defineMethod("collect", CallbackFactory.getMethod(RubyArray.class, "collect")); arrayClass.defineMethod("collect!", CallbackFactory.getMethod(RubyArray.class, "collect_bang")); arrayClass.defineMethod("map!", CallbackFactory.getMethod(RubyArray.class, "collect_bang")); arrayClass.defineMethod("filter", CallbackFactory.getMethod(RubyArray.class, "collect_bang")); arrayClass.defineMethod("delete", CallbackFactory.getMethod(RubyArray.class, "delete", RubyObject.class)); arrayClass.defineMethod("delete_at", CallbackFactory.getMethod(RubyArray.class, "delete_at", RubyObject.class)); arrayClass.defineMethod("delete_if", CallbackFactory.getMethod(RubyArray.class, "delete_if")); arrayClass.defineMethod("reject!", CallbackFactory.getMethod(RubyArray.class, "reject_bang")); arrayClass.defineMethod("replace", CallbackFactory.getMethod(RubyArray.class, "replace", RubyObject.class)); arrayClass.defineMethod("clear", CallbackFactory.getMethod(RubyArray.class, "clear")); arrayClass.defineMethod("fill", CallbackFactory.getOptMethod(RubyArray.class, "fill")); arrayClass.defineMethod("include?", CallbackFactory.getMethod(RubyArray.class, "includes", RubyObject.class)); arrayClass.defineMethod("<=>", CallbackFactory.getMethod(RubyArray.class, "op_cmp", RubyObject.class)); arrayClass.defineMethod("slice", CallbackFactory.getOptMethod(RubyArray.class, "aref")); arrayClass.defineMethod("slice!", CallbackFactory.getOptMethod(RubyArray.class, "slice_bang")); arrayClass.defineMethod("assoc", CallbackFactory.getMethod(RubyArray.class, "assoc", RubyObject.class)); arrayClass.defineMethod("rassoc", CallbackFactory.getMethod(RubyArray.class, "rassoc", RubyObject.class)); arrayClass.defineMethod("+", CallbackFactory.getMethod(RubyArray.class, "op_plus", RubyObject.class)); arrayClass.defineMethod("*", CallbackFactory.getMethod(RubyArray.class, "op_times", RubyObject.class)); arrayClass.defineMethod("-", CallbackFactory.getMethod(RubyArray.class, "op_diff", RubyObject.class)); arrayClass.defineMethod("&", CallbackFactory.getMethod(RubyArray.class, "op_and", RubyObject.class)); arrayClass.defineMethod("|", CallbackFactory.getMethod(RubyArray.class, "op_or", RubyObject.class)); arrayClass.defineMethod("uniq", CallbackFactory.getMethod(RubyArray.class, "uniq")); arrayClass.defineMethod("uniq!", CallbackFactory.getMethod(RubyArray.class, "uniq_bang")); arrayClass.defineMethod("compact", CallbackFactory.getMethod(RubyArray.class, "compact")); arrayClass.defineMethod("compact!", CallbackFactory.getMethod(RubyArray.class, "compact_bang")); arrayClass.defineMethod("flatten", CallbackFactory.getMethod(RubyArray.class, "flatten")); arrayClass.defineMethod("flatten!", CallbackFactory.getMethod(RubyArray.class, "flatten_bang")); arrayClass.defineMethod("nitems", CallbackFactory.getMethod(RubyArray.class, "nitems")); return arrayClass; }
3,229,694
public RubyObject rbClone() { RubyArray ary = newArray(getRuby(), list); ary.infectObject(this); return ary; }
public RubyObject rbClone() { RubyArray ary = newArray(getRuby(), list); ary.setupClone(this); return ary; }
3,229,695
public void testExperimenterShouldAlwaysExist() throws Exception { Experimenter root = (Experimenter) iQuery.findByQuery(Experimenter.class.getName(), new Parameters().addId(0L)); assertNotNull("Root has to be defined.",root); // FIXME assertNotNull("And it should have details",root.getDetails()); List<Experimenter> l = iQuery.findAllByQuery("from Experimenter",null); assertTrue("If root is defined, can't be empty",l.size()>0); }
public void testExperimenterShouldAlwaysExist() throws Exception { Experimenter root = (Experimenter) iQuery.findByQuery(Experimenter.class.getName(), new Parameters().addId(0L)); assertNotNull("Root has to be defined.",root); // FIXME assertNotNull("And it should have details",root.getDetails()); List<Experimenter> l = iQuery.findAllByQuery( "select e from Experimenter e",null); assertTrue("If root is defined, can't be empty",l.size()>0); }
3,229,696
public final void setValue (Context context, Object newValue) throws PropertyException { if (!context.setProperty(_names, newValue)) { throw new PropertyException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.getClass().toString()) + " in supplied context (" + context.getClass() + ")"); } }
public final void setValue (Context context, Object newValue) throws PropertyException { if (!context.setProperty(_names, newValue)) { throw new PropertyException("No method to set \"" + getVariableName() + "\" to type " + ((newValue == null) ? "null" : newValue.getClass().toString()) + " in supplied context (" + context.getClass() + ")"); } }
3,229,697
public final String toString () { return "property:" + _vname; }
public final String toString () { return "property:" + getVariableName(); }
3,229,698
protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getWFTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); } return null; }
protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getWFTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); } return null; }
3,229,699
protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getWFTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); } return null; }
protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getWFTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); } return null; }
3,229,700
public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_STYLE_CLASS); tb.setId(TASKBAR_ID); add(tb); EditArticleView editArticleBlock = new EditArticleView(); tb.addTabVB(TASK_ID_EDIT, bref + "edit", editArticleBlock); tb.addTabVB(TASK_ID_DETAILS, bref + "details", new ArticleDetailView());// tb.addTabVB(TASK_ID_LIST, bref + "list", new ListArticlesBlock()); tb.addTabVB(TASK_ID_PREVIEW, bref + "preview", new ArticlePreview()); tb.setSelectedMenuItemId(TASK_ID_EDIT); //if (taskbarListener != null) { // tb.addTabListener(taskbarListener); //} String editMode = getEditMode(); if(editMode!=null){ editArticleBlock.setEditMode(editMode); } }
public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_STYLE_CLASS); tb.setId(TASKBAR_ID); add(tb); EditArticleView editArticleBlock = new EditArticleView(); tb.addTabVB(TASK_ID_EDIT, bref + "edit", editArticleBlock); tb.addTabVB(TASK_ID_DETAILS, bref + "details", new ArticleDetailView());// tb.addTabVB(TASK_ID_LIST, bref + "list", new ListArticlesBlock()); tb.addTabVB(TASK_ID_PREVIEW, bref + "preview", new ArticlePreview()); tb.setSelectedMenuItemId(TASK_ID_EDIT); //if (taskbarListener != null) { // tb.addTabListener(taskbarListener); //} String editMode = getEditMode(); if(editMode!=null){ editArticleBlock.setEditMode(editMode); } }
3,229,701
public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_STYLE_CLASS); tb.setId(TASKBAR_ID); add(tb); EditArticleView editArticleBlock = new EditArticleView(); tb.addTabVB(TASK_ID_EDIT, bref + "edit", editArticleBlock); tb.addTabVB(TASK_ID_DETAILS, bref + "details", new ArticleDetailView());// tb.addTabVB(TASK_ID_LIST, bref + "list", new ListArticlesBlock()); tb.addTabVB(TASK_ID_PREVIEW, bref + "preview", new ArticlePreview()); tb.setSelectedMenuItemId(TASK_ID_EDIT); //if (taskbarListener != null) { // tb.addTabListener(taskbarListener); //} String editMode = getEditMode(); if(editMode!=null){ editArticleBlock.setEditMode(editMode); } }
public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_STYLE_CLASS); tb.setId(TASKBAR_ID); add(tb); EditArticleView editArticleBlock = new EditArticleView(); tb.addTabVB(TASK_ID_EDIT, bref + "edit", editArticleBlock); tb.addTabVB(TASK_ID_DETAILS, bref + "details", new ArticleDetailView());// tb.addTabVB(TASK_ID_LIST, bref + "list", new ListArticlesBlock()); tb.addTabVB(TASK_ID_PREVIEW, bref + "preview", new ArticlePreview()); tb.setSelectedMenuItemId(TASK_ID_EDIT); //if (taskbarListener != null) { // tb.addTabListener(taskbarListener); //} String editMode = getEditMode(); if(editMode!=null){ editArticleBlock.setEditMode(editMode); } }
3,229,702
public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_STYLE_CLASS); tb.setId(TASKBAR_ID); add(tb); EditArticleView editArticleBlock = new EditArticleView(); tb.addTabVB(TASK_ID_EDIT, bref + "edit", editArticleBlock); tb.addTabVB(TASK_ID_DETAILS, bref + "details", new ArticleDetailView());// tb.addTabVB(TASK_ID_LIST, bref + "list", new ListArticlesBlock()); tb.addTabVB(TASK_ID_PREVIEW, bref + "preview", new ArticlePreview()); tb.setSelectedMenuItemId(TASK_ID_EDIT); //if (taskbarListener != null) { // tb.addTabListener(taskbarListener); //} String editMode = getEditMode(); if(editMode!=null){ editArticleBlock.setEditMode(editMode); } }
public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_STYLE_CLASS); tb.setId(TASKBAR_ID); add(tb); EditArticleView editArticleBlock = new EditArticleView(); tb.addTabVB(TASK_ID_EDIT, bref + "edit", editArticleBlock); tb.addTabVB(TASK_ID_DETAILS, bref + "details", new ArticleDetailView());// tb.addTabVB(TASK_ID_LIST, bref + "list", new ListArticlesBlock()); tb.addTabVB(TASK_ID_PREVIEW, bref + "preview", new ArticlePreview()); tb.setSelectedMenuItemId(TASK_ID_EDIT); //if (taskbarListener != null) { // tb.addTabListener(taskbarListener); //} String editMode = getEditMode(); if(editMode!=null){ editArticleBlock.setEditMode(editMode); } }
3,229,703
int convertRealIntoGraphics(int x) { int b = control.getGlobalMinimum(); int c = control.getGlobalMaximum(); double a = (double) rangeGraphics/(b-c); return (int) (a*(x-c)+tW); }
int convertRealIntoGraphics(int x) { int b = control.getGlobalMinimum(); int c = control.getGlobalMaximum(); double a = (double) rangeGraphics/(b-c); return (int) (a*(x-c)+tW); }
3,229,704
void showPresentation() { //TODO: add control. if (presentation != null) { topFrame.addToDesktop(presentation, TopFrame.PALETTE_LAYER); presentation.setVisible(true); } }
void showPresentation() { //TODO: add control. if (presentation != null) { topFrame.addToDesktop(presentation, TopFrame.PALETTE_LAYER); presentation.setVisible(true); } }
3,229,705
final private File findTemplate (String fileName) { _log.debug("Looking for template: " + fileName); for (int i=0; i < _templateDirectory.length; i++) { Template t; String dir = _templateDirectory[i]; File tFile = new File(dir,fileName); if (tFile.canRead()) { _log.debug("TemplateProvider: Found " + fileName + " in " + dir); return tFile; } } return null; }
final private File findTemplate (String fileName) { _log.debug("Looking for template: " + fileName); for (int i=0; i < _templateDirectory.length; i++) { Template t; String dir = _templateDirectory[i]; File tFile = new File(dir,fileName); if (tFile.canRead()) { _log.debug("TemplateProvider: Found " + fileName + " in " + dir); return tFile; } } return null; }
3,229,706
final private File findTemplate (String fileName) { _log.debug("Looking for template: " + fileName); for (int i=0; i < _templateDirectory.length; i++) { Template t; String dir = _templateDirectory[i]; File tFile = new File(dir,fileName); if (tFile.canRead()) { _log.debug("TemplateProvider: Found " + fileName + " in " + dir); return tFile; } } return null; }
final private File findTemplate (String fileName) { _log.debug("Looking for template: " + fileName); for (int i=0; i < _templateDirectory.length; i++) { Template t; String dir = _templateDirectory[i]; File tFile = new File(dir,fileName); if (tFile.canRead()) { _log.debug("TemplateProvider: Found " + fileName + " in " + dir); return tFile; } } return null; }
3,229,707
final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); } catch (NullPointerException npe) { _log.warning ("TemplateProvider: Template not found: " + fileName, npe); } catch (Exception e) { // this probably occured b/c of a parsing error. // should throw some kind of ParseErrorException here instead _log.warning ("TemplateProvider: Error occured while getting " + fileName, e); } return t; }
final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); } catch (NullPointerException npe) { _log.warning ("TemplateProvider: Template not found: " + fileName, npe); } catch (Exception e) { // this probably occured b/c of a parsing error. // should throw some kind of ParseErrorException here instead _log.warning ("TemplateProvider: Error occured while getting " + fileName, e); } return t; }
3,229,708
final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); } catch (NullPointerException npe) { _log.warning ("TemplateProvider: Template not found: " + fileName, npe); } catch (Exception e) { // this probably occured b/c of a parsing error. // should throw some kind of ParseErrorException here instead _log.warning ("TemplateProvider: Error occured while getting " + fileName, e); } return t; }
final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); } catch (NullPointerException npe) { _log.warning ("TemplateProvider: Template not found: " + fileName, npe); } catch (Exception e) { // this probably occured b/c of a parsing error. // should throw some kind of ParseErrorException here instead _log.warning ("TemplateProvider: Error occured while getting " + fileName, e); } return t; }
3,229,709
final public boolean shouldReload (String fileName) { File tFile = findTemplate (fileName); Long lm = (Long) _lastModifiedCache.get (fileName); return (lm == null || lm.longValue() != tFile.lastModified()); }
final public boolean shouldReload (String fileName) { File tFile = findTemplate (fileName); Long lm = (Long) _lastModifiedCache.get (fileName); return (lm == null || lm.longValue() != tFile.lastModified()); }
3,229,710
private Editor getDOEditor(TreeViewer model, DataObject hierarchyObject, int editorType) { model.addPropertyChangeListener(this); if (editor != null) return editor; EditorModel m = new EditorModel(model, editorType, hierarchyObject); EditorComponent component = new EditorComponent(m); m.initialize(component); component.initialize(); editor = component; return editor; }
private Editor getDOEditor(TreeViewer model, DataObject ho, int editorType) { model.addPropertyChangeListener(this); if (editor != null) return editor; EditorModel m = new EditorModel(model, editorType, hierarchyObject); EditorComponent component = new EditorComponent(m); m.initialize(component); component.initialize(); editor = component; return editor; }
3,229,711
private Editor getDOEditor(TreeViewer model, DataObject hierarchyObject, int editorType) { model.addPropertyChangeListener(this); if (editor != null) return editor; EditorModel m = new EditorModel(model, editorType, hierarchyObject); EditorComponent component = new EditorComponent(m); m.initialize(component); component.initialize(); editor = component; return editor; }
private Editor getDOEditor(TreeViewer model, DataObject hierarchyObject, int editorType) { model.addPropertyChangeListener(this); if (editor != null) return editor; EditorModel m = new EditorModel(model, editorType, ho); EditorComponent component = new EditorComponent(m); m.initialize(component); component.initialize(); editor = component; return editor; }
3,229,712
public Object getContents() { ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (modData == null) { modData = new ModulesData(); Collection mods = chainDataManager.getModules(); Collection cats = chainDataManager.getModuleCategories(); // find uncategorized modules Iterator iter = mods.iterator(); while (iter.hasNext()) { ChainModuleData m = (ChainModuleData) iter.next(); if (m.getModuleCategory()== null) modData.addUncategorizedModule(m); } // find root categories if (cats != null) { iter = cats.iterator(); while (iter.hasNext()) { ModuleCategoryData c = (ModuleCategoryData) iter.next(); if (c.getParentCategory() == null) modData.addRootModuleCategory(c); findCategoryModules(c,mods); findCategoryChildren(c,cats); } } } return modData; }
publiclong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); Objectlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); getContents()long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); { ChainDataManagerlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); chainDataManagerlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); =long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); (ChainDataManager)long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); dataManager; iflong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); (modDatalong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); ==long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); null)long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); { modDatalong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); =long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); newlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); ModulesData(); Collectionlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); modslong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); =long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); chainDataManager.getModules(); Collectionlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); catslong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); =long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); chainDataManager.getModuleCategories(); //long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); findlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); uncategorizedlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); modules Iteratorlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); iterlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); =long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); mods.iterator(); whilelong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); (iter.hasNext())long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); { ChainModuleDatalong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); mlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); =long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); (ChainModuleData)long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); iter.next(); iflong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); (m.getModuleCategory()==long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); null) modData.addUncategorizedModule(m); } //long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); findlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); rootlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); categories iflong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); (catslong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); !=long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); null)long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); { iterlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); =long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); cats.iterator(); whilelong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); (iter.hasNext())long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); { ModuleCategoryDatalong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); clong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); =long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); (ModuleCategoryData)long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); iter.next(); iflong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); (c.getParentCategory()long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); ==long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); null)long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); modData.addRootModuleCategory(c); findCategoryModules(c,mods); findCategoryChildren(c,cats); } } } returnlong modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); modData; }
3,229,713
public Object getContents() { ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (modData == null) { modData = new ModulesData(); Collection mods = chainDataManager.getModules(); Collection cats = chainDataManager.getModuleCategories(); // find uncategorized modules Iterator iter = mods.iterator(); while (iter.hasNext()) { ChainModuleData m = (ChainModuleData) iter.next(); if (m.getModuleCategory()== null) modData.addUncategorizedModule(m); } // find root categories if (cats != null) { iter = cats.iterator(); while (iter.hasNext()) { ModuleCategoryData c = (ModuleCategoryData) iter.next(); if (c.getParentCategory() == null) modData.addRootModuleCategory(c); findCategoryModules(c,mods); findCategoryChildren(c,cats); } } } return modData; }
publiclong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } Objectlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } getContents()long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } { ChainDataManagerlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } chainDataManagerlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } =long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } (ChainDataManager)long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } dataManager; iflong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } (modDatalong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } ==long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } null)long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } { modDatalong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } =long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } newlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } ModulesData(); Collectionlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } modslong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } =long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } chainDataManager.getModules(); Collectionlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } catslong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } =long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } chainDataManager.getModuleCategories(); //long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } findlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } uncategorizedlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } modules Iteratorlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } iterlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } =long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } mods.iterator(); whilelong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } (iter.hasNext())long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } { ChainModuleDatalong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } mlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } =long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } (ChainModuleData)long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } iter.next(); iflong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } (m.getModuleCategory()==long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } null) modData.addUncategorizedModule(m); } //long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } findlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } rootlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } categories iflong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } (catslong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } !=long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } null)long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } { iterlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } =long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } cats.iterator(); whilelong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } (iter.hasNext())long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } { ModuleCategoryDatalong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } clong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } =long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } (ModuleCategoryData)long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } iter.next(); iflong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } (c.getParentCategory()long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } ==long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } null)long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } modData.addRootModuleCategory(c); findCategoryModules(c,mods); findCategoryChildren(c,cats); } } } returnlong loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } modData; }
3,229,714
public IRubyObject set(IRubyObject value) { throw runtime.newNameError(name() + " is a read-only variable"); }
public IRubyObject set(IRubyObject value) { throw runtime.newNameError(name() + " is a read-only variable", name()); }
3,229,717
private LensMenu(LensComponent lensComponent) { this.lensComponent = lensComponent; createPopupMenu(); createMenubarMenu(); }
private LensMenu(LensComponent lensComponent) { this.lensComponent = lensComponent; createPopupMenu(); createMenubarMenu(); }
3,229,719
private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; menubar = new JMenuBar(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); menubar.add(lensOptions); menubar.add(zoomOptions); menubar.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; menubar = new JMenuBar(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); menubar.add(lensOptions); menubar.add(zoomOptions); menubar.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
3,229,720
private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; menubar = new JMenuBar(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); menubar.add(lensOptions); menubar.add(zoomOptions); menubar.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; menubar = new JMenuBar(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); menubar.add(lensOptions); menubar.add(zoomOptions); menubar.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
3,229,721
private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; menubar = new JMenuBar(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); menubar.add(lensOptions); menubar.add(zoomOptions); menubar.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; menubar = new JMenuBar(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); menubar.add(lensOptions); menubar.add(zoomOptions); menubar.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
3,229,722
private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; menubar = new JMenuBar(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); menubar.add(lensOptions); menubar.add(zoomOptions); menubar.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; menubar = new JMenuBar(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); menubar.add(lensOptions); menubar.add(zoomOptions); menubar.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
3,229,723
private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; popupMenu = new JPopupMenu(POPUP_MENU_DESCRIPTION); topOption = new JMenuItem(POPUP_MENU_TOPOPTION); popupMenu.add(topOption); popupMenu.addSeparator(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); popupMenu.add(lensOptions); popupMenu.add(zoomOptions); popupMenu.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; popupMenu = new JPopupMenu(POPUP_MENU_DESCRIPTION); topOption = new JMenuItem(POPUP_MENU_TOPOPTION); popupMenu.add(topOption); popupMenu.addSeparator(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); popupMenu.add(lensOptions); popupMenu.add(zoomOptions); popupMenu.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
3,229,725
private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; popupMenu = new JPopupMenu(POPUP_MENU_DESCRIPTION); topOption = new JMenuItem(POPUP_MENU_TOPOPTION); popupMenu.add(topOption); popupMenu.addSeparator(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); popupMenu.add(lensOptions); popupMenu.add(zoomOptions); popupMenu.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; popupMenu = new JPopupMenu(POPUP_MENU_DESCRIPTION); topOption = new JMenuItem(POPUP_MENU_TOPOPTION); popupMenu.add(topOption); popupMenu.addSeparator(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); popupMenu.add(lensOptions); popupMenu.add(zoomOptions); popupMenu.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
3,229,726
private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; popupMenu = new JPopupMenu(POPUP_MENU_DESCRIPTION); topOption = new JMenuItem(POPUP_MENU_TOPOPTION); popupMenu.add(topOption); popupMenu.addSeparator(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); popupMenu.add(lensOptions); popupMenu.add(zoomOptions); popupMenu.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; popupMenu = new JPopupMenu(POPUP_MENU_DESCRIPTION); topOption = new JMenuItem(POPUP_MENU_TOPOPTION); popupMenu.add(topOption); popupMenu.addSeparator(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); popupMenu.add(lensOptions); popupMenu.add(zoomOptions); popupMenu.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
3,229,727
private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; popupMenu = new JPopupMenu(POPUP_MENU_DESCRIPTION); topOption = new JMenuItem(POPUP_MENU_TOPOPTION); popupMenu.add(topOption); popupMenu.addSeparator(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); popupMenu.add(lensOptions); popupMenu.add(zoomOptions); popupMenu.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; popupMenu = new JPopupMenu(POPUP_MENU_DESCRIPTION); topOption = new JMenuItem(POPUP_MENU_TOPOPTION); popupMenu.add(topOption); popupMenu.addSeparator(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); popupMenu.add(lensOptions); popupMenu.add(zoomOptions); popupMenu.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
3,229,728
private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; popupMenu = new JPopupMenu(POPUP_MENU_DESCRIPTION); topOption = new JMenuItem(POPUP_MENU_TOPOPTION); popupMenu.add(topOption); popupMenu.addSeparator(); lensOptions = new JMenu(LENS_OPTIONS); zoomOptions = new JMenu(ZOOM_OPTIONS); displayOptions = new JMenu(DISPLAY_UNITS); popupMenu.add(lensOptions); popupMenu.add(zoomOptions); popupMenu.add(displayOptions); setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); setLens40x40 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS40x40)); setLens60x60 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS60x60)); setLens80x80 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS80x80)); setLens100x100 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS100x100)); setLens150x150 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS150x150)); setZoomx3 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx3)); setZoomx4 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx4)); setZoomx5 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx5)); setZoomx10 = new JMenuItem(new ZoomAction(lensComponent, ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.MICRON_OPTION)); setDisplayPixels = new JRadioButtonMenuItem(new DisplayAction (lensComponent, DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup displayUnits = new ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
private zoomOptions.add(setZoomx2); void zoomOptions.add(setZoomx2); createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem zoomOptions.add(setZoomx2); topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenuItem setZoomx4; JMenuItem setZoomx5; JMenuItem setZoomx10; JRadioButtonMenuItem setDisplayMicrons; JRadioButtonMenuItem setDisplayPixels; popupMenu zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JPopupMenu(POPUP_MENU_DESCRIPTION); topOption zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenuItem(POPUP_MENU_TOPOPTION); popupMenu.add(topOption); popupMenu.addSeparator(); lensOptions zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenu(LENS_OPTIONS); zoomOptions zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenu(ZOOM_OPTIONS); displayOptions zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenu(DISPLAY_UNITS); popupMenu.add(lensOptions); popupMenu.add(zoomOptions); popupMenu.add(displayOptions); setLensDefaultSize zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenuItem(new zoomOptions.add(setZoomx2); LensAction(lensComponent, zoomOptions.add(setZoomx2); LensAction.LENSDEFAULTSIZE)); setLens40x40 zoomOptions.add(setZoomx2); zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenuItem(new zoomOptions.add(setZoomx2); LensAction(lensComponent, zoomOptions.add(setZoomx2); LensAction.LENS40x40)); setLens60x60 zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenuItem(new zoomOptions.add(setZoomx2); LensAction(lensComponent, zoomOptions.add(setZoomx2); LensAction.LENS60x60)); setLens80x80 zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenuItem(new zoomOptions.add(setZoomx2); LensAction(lensComponent, zoomOptions.add(setZoomx2); LensAction.LENS80x80)); setLens100x100 zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenuItem(new zoomOptions.add(setZoomx2); LensAction(lensComponent, zoomOptions.add(setZoomx2); LensAction.LENS100x100)); setLens150x150 zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenuItem(new zoomOptions.add(setZoomx2); LensAction(lensComponent, zoomOptions.add(setZoomx2); LensAction.LENS150x150)); setZoomx3 zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenuItem(new zoomOptions.add(setZoomx2); ZoomAction(lensComponent, zoomOptions.add(setZoomx2); ZoomAction.ZOOMx3)); setZoomx4 zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenuItem(new zoomOptions.add(setZoomx2); ZoomAction(lensComponent, zoomOptions.add(setZoomx2); ZoomAction.ZOOMx4)); setZoomx5 zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenuItem(new zoomOptions.add(setZoomx2); ZoomAction(lensComponent, zoomOptions.add(setZoomx2); ZoomAction.ZOOMx5)); setZoomx10 zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JMenuItem(new zoomOptions.add(setZoomx2); ZoomAction(lensComponent, zoomOptions.add(setZoomx2); ZoomAction.ZOOMx10)); lensOptions.add(setLensDefaultSize); lensOptions.add(setLens40x40); lensOptions.add(setLens60x60); lensOptions.add(setLens80x80); lensOptions.add(setLens100x100); lensOptions.add(setLens150x150); zoomOptions.add(setZoomx3); zoomOptions.add(setZoomx4); zoomOptions.add(setZoomx5); zoomOptions.add(setZoomx10); setDisplayMicrons zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JRadioButtonMenuItem(new zoomOptions.add(setZoomx2); DisplayAction (lensComponent, zoomOptions.add(setZoomx2); DisplayAction.MICRON_OPTION)); setDisplayPixels zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); JRadioButtonMenuItem(new zoomOptions.add(setZoomx2); DisplayAction (lensComponent, zoomOptions.add(setZoomx2); DisplayAction.PIXEL_OPTION)); displayOptions.add(setDisplayMicrons); displayOptions.add(setDisplayPixels); ButtonGroup zoomOptions.add(setZoomx2); displayUnits zoomOptions.add(setZoomx2); = zoomOptions.add(setZoomx2); new zoomOptions.add(setZoomx2); ButtonGroup(); displayUnits.add(setDisplayMicrons); displayUnits.add(setDisplayPixels); setDisplayPixels.setSelected(true); }
3,229,729
JMenuBar getMenubar() { return ref.menubar; }
JMenuBar getMenubar() { return ref.menubar; }
3,229,730
JPopupMenu getPopupMenu() { return ref.popupMenu; }
JPopupMenu getPopupMenu() { return ref.popupMenu; }
3,229,731
public double transform(int x, double k) { double y = (double) x; verifyInput(y); return Math.log(y); }
public double transform(int x, double k) { double y = (double) x; verifyInput(y); return Math.log(y); }
3,229,732
private void verifyInput(double x) { if (x <= 0) throw new IllegalArgumentException("Value not consistent. " + "The value must be > 0."); }
private void verifyInput(double x) { if (x <= 0) throw new IllegalArgumentException("Value not consistent. " + "The value must be > 0."); }
3,229,733
private void verifyInput(double x) { if (x <= 0) throw new IllegalArgumentException("Value not consistent. " + "The value must be > 0."); }
private void verifyInput(double x) { if (x <= 0) throw new IllegalArgumentException("Value not consistent. " + "The value must be > 0."); }
3,229,734
public RubyScope() { }
public RubyScope(Ruby ruby) { this.ruby = ruby; }
3,229,735
public void push() { old = new RubyScope(this); localTbl = null; localVars = null; flags = 0; }
public void push() { oldActMethodScope = ruby.getActMethodScope(); ruby.setActMethodScope(Constants.NOEX_PUBLIC); old = new RubyScope(this, ruby); localTbl = null; localVars = null; flags = 0; }
3,229,737
public void invoke(String selectedType) { final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); // Construct main panel w/ layout. final JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); // The user should only be able to close this dialog. Object[] options = {Res.getString("ok"), Res.getString("cancel")}; final JOptionPane optionPane = new JOptionPane(this, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null, options, options[0]); mainPanel.add(optionPane, BorderLayout.CENTER); final JDialog optionsDialog = new JDialog(SparkManager.getMainWindow(), Res.getString("title.set.status.message "), true); optionsDialog.setContentPane(mainPanel); optionsDialog.pack(); if (selectedType != null) { int count = typeBox.getItemCount(); for (int i = 0; i < count; i++) { ImageIcon icon = (ImageIcon)typeBox.getItemAt(i); if (icon.getDescription().equals(selectedType)) { typeBox.setSelectedIndex(i); break; } } persistBox.setSelected(true); } optionsDialog.setLocationRelativeTo(SparkManager.getMainWindow()); optionPane.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent propertyChangeEvent) { String value = (String)optionPane.getValue(); if (Res.getString("cancel").equals(value)) { optionsDialog.setVisible(false); } else if (Res.getString("ok").equals(value)) { if (!persistBox.isSelected()) { // Change presence and quit. StatusItem item = statusBar.getStatusItem(getType()); Presence oldPresence = item.getPresence(); Presence presence = StatusBar.copyPresence(oldPresence); presence.setStatus(getStatus()); presence.setPriority(getPriority()); statusBar.changeAvailability(presence); statusBar.setStatus(getStatus()); optionsDialog.setVisible(false); return; } List list = load(); CustomStatusItem customStatusItem = new CustomStatusItem(); customStatusItem.setPriority(getPriority()); customStatusItem.setStatus(getStatus()); customStatusItem.setType(getType()); Iterator customListIterator = list.iterator(); boolean exists = false; while (customListIterator.hasNext()) { CustomStatusItem customItem = (CustomStatusItem)customListIterator.next(); String type = customItem.getType(); String status = customItem.getStatus(); if (type.equals(customStatusItem.getType()) && status.equals(customStatusItem.getStatus())) { exists = true; } } // Otherwise save. if (!exists) { list.add(customStatusItem); // Update current status. StatusItem item = statusBar.getStatusItem(getType()); Presence oldPresence = item.getPresence(); Presence presence = StatusBar.copyPresence(oldPresence); presence.setStatus(getStatus()); presence.setPriority(getPriority()); statusBar.changeAvailability(presence); statusBar.setStatus(getStatus()); // Persist new item. save(list); } optionsDialog.setVisible(false); } } }); optionsDialog.setVisible(true); optionsDialog.toFront(); optionsDialog.requestFocus(); }
public void invoke(String selectedType) { final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); // Construct main panel w/ layout. final JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); // The user should only be able to close this dialog. Object[] options = {Res.getString("ok"), Res.getString("cancel")}; final JOptionPane optionPane = new JOptionPane(this, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null, options, options[0]); mainPanel.add(optionPane, BorderLayout.CENTER); final JDialog optionsDialog = new JDialog(SparkManager.getMainWindow(), Res.getString("title.set.status.message"), true); optionsDialog.setContentPane(mainPanel); optionsDialog.pack(); if (selectedType != null) { int count = typeBox.getItemCount(); for (int i = 0; i < count; i++) { ImageIcon icon = (ImageIcon)typeBox.getItemAt(i); if (icon.getDescription().equals(selectedType)) { typeBox.setSelectedIndex(i); break; } } persistBox.setSelected(true); } optionsDialog.setLocationRelativeTo(SparkManager.getMainWindow()); optionPane.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent propertyChangeEvent) { String value = (String)optionPane.getValue(); if (Res.getString("cancel").equals(value)) { optionsDialog.setVisible(false); } else if (Res.getString("ok").equals(value)) { if (!persistBox.isSelected()) { // Change presence and quit. StatusItem item = statusBar.getStatusItem(getType()); Presence oldPresence = item.getPresence(); Presence presence = StatusBar.copyPresence(oldPresence); presence.setStatus(getStatus()); presence.setPriority(getPriority()); statusBar.changeAvailability(presence); statusBar.setStatus(getStatus()); optionsDialog.setVisible(false); return; } List list = load(); CustomStatusItem customStatusItem = new CustomStatusItem(); customStatusItem.setPriority(getPriority()); customStatusItem.setStatus(getStatus()); customStatusItem.setType(getType()); Iterator customListIterator = list.iterator(); boolean exists = false; while (customListIterator.hasNext()) { CustomStatusItem customItem = (CustomStatusItem)customListIterator.next(); String type = customItem.getType(); String status = customItem.getStatus(); if (type.equals(customStatusItem.getType()) && status.equals(customStatusItem.getStatus())) { exists = true; } } // Otherwise save. if (!exists) { list.add(customStatusItem); // Update current status. StatusItem item = statusBar.getStatusItem(getType()); Presence oldPresence = item.getPresence(); Presence presence = StatusBar.copyPresence(oldPresence); presence.setStatus(getStatus()); presence.setPriority(getPriority()); statusBar.changeAvailability(presence); statusBar.setStatus(getStatus()); // Persist new item. save(list); } optionsDialog.setVisible(false); } } }); optionsDialog.setVisible(true); optionsDialog.toFront(); optionsDialog.requestFocus(); }
3,229,738
private JPanel createChannelsPane() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); ChannelMetadata[] data = model.getChannelData(); ChannelButton button; ChannelMetadata d; p.add(Box.createRigidArea(VBOX)); boolean gs = model.getColorModel().equals(ImViewer.GREY_SCALE_MODEL); for (int k = 0; k < data.length; k++) { d = data[k]; button = new ChannelButton(""+d.getEmissionWavelength(), model.getChannelColor(k), k, model.isChannelActive(k)); if (gs) button.setGrayedOut(gs); button.addPropertyChangeListener(controller); button.setPreferredSize(new Dimension(30, 30)); channelButtons.add(button); p.add(button); p.add(Box.createRigidArea(VBOX)); } JPanel controls = new JPanel(); controls.setLayout(new BoxLayout(controls,BoxLayout.Y_AXIS)); controls.add(Box.createVerticalStrut(20)); controls.add(buildToolBar()); controls.add(p); return UIUtilities.buildComponentPanel(controls); }
private JPanel createChannelsPane() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); ChannelMetadata[] data = model.getChannelData(); ChannelButton button; ChannelMetadata d; p.add(Box.createRigidArea(VBOX)); boolean gs = model.getColorModel().equals(ImViewer.GREY_SCALE_MODEL); for (int k = 0; k < data.length; k++) { d = data[k]; button = new ChannelButton(""+d.getEmissionWavelength(), model.getChannelColor(k), k, model.isChannelActive(k)); if (gs) button.setGrayedOut(gs); button.addPropertyChangeListener(controller); button.setPreferredSize(ChannelButton.DEFAULT_MIN_SIZE); channelButtons.add(button); p.add(button); p.add(Box.createRigidArea(VBOX)); } JPanel controls = new JPanel(); controls.setLayout(new BoxLayout(controls,BoxLayout.Y_AXIS)); controls.add(Box.createVerticalStrut(20)); controls.add(buildToolBar()); controls.add(p); return UIUtilities.buildComponentPanel(controls); }
3,229,740
public void loadScript(RubyString scriptName, RubyString source, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); CRefNode savedCRef = ruby.getCRef(); // TMP_PROTECT; if (wrap && ruby.getSafeLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // Check_SafeStr(fname); } // volatile ID last_func; // ruby_errinfo = Qnil; /* ensure */ RubyVarmap.push(ruby); ruby.pushClass(); RubyModule wrapper = ruby.getWrapper(); ruby.setCRef(ruby.getTopCRef()); if (!wrap) { ruby.secure(4); /* should alter global state */ ruby.setRubyClass(ruby.getClasses().getObjectClass()); ruby.setWrapper(null); } else { /* load in anonymous module as toplevel */ ruby.setWrapper(RubyModule.newModule(ruby)); ruby.setRubyClass(ruby.getWrapper()); self = ruby.getRubyTopSelf().rbClone(); self.extendObject(ruby.getRubyClass()); ruby.getCRef().push(ruby.getWrapper()); } ruby.getRubyFrame().push(); ruby.getRubyFrame().setLastFunc(null); ruby.getRubyFrame().setLastClass(null); ruby.getRubyFrame().setSelf(self); ruby.getRubyFrame().setCbase(new CRefNode(ruby.getRubyClass(), null)); ruby.getScope().push(); /* default visibility is private at loading toplevel */ ruby.setActMethodScope(Constants.SCOPE_PRIVATE); String last_func = ruby.getRubyFrame().getLastFunc(); try { // RubyId last_func = ruby.getRubyFrame().getLastFunc(); // DEFER_INTS; ruby.setInEval(ruby.getInEval() + 1); ruby.getRubyParser().compileString(scriptName.getValue(), source, 0); // --- ruby.setInEval(ruby.getInEval() - 1); self.evalNode(ruby.getParserHelper().getEvalTree()); } catch (Exception excptn) { excptn.printStackTrace(getErrorStream()); } finally { ruby.getRubyFrame().setLastFunc(last_func); /*if (ruby.getRubyScope().getFlags() == SCOPE_ALLOCA && ruby.getRubyClass() == ruby.getClasses().getObjectClass()) { if (ruby_scope->local_tbl) free(ruby_scope->local_tbl); }*/ ruby.setCRef(savedCRef); ruby.getScope().pop(); ruby.getRubyFrame().pop(); ruby.popClass(); RubyVarmap.pop(ruby); ruby.setWrapper(wrapper); } /*if (ruby_nerrs > 0) { ruby_nerrs = 0; rb_exc_raise(ruby_errinfo); }*/ }
public void loadScript(RubyString scriptName, RubyString source, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); CRefNode savedCRef = ruby.getCRef(); // TMP_PROTECT; if (wrap && ruby.getSafeLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // Check_SafeStr(fname); } // volatile ID last_func; // ruby_errinfo = Qnil; /* ensure */ RubyVarmap.push(ruby); ruby.pushClass(); RubyModule wrapper = ruby.getWrapper(); ruby.setCRef(ruby.getTopCRef()); if (!wrap) { ruby.secure(4); /* should alter global state */ ruby.setRubyClass(ruby.getClasses().getObjectClass()); ruby.setWrapper(null); } else { /* load in anonymous module as toplevel */ ruby.setWrapper(RubyModule.newModule(ruby)); ruby.setRubyClass(ruby.getWrapper()); self = ruby.getRubyTopSelf().rbClone(); self.extendObject(ruby.getRubyClass()); ruby.getCRef().push(ruby.getWrapper()); } ruby.getRubyFrame().push(); ruby.getRubyFrame().setLastFunc(null); ruby.getRubyFrame().setLastClass(null); ruby.getRubyFrame().setSelf(self); ruby.getRubyFrame().setCbase(new CRefNode(ruby.getRubyClass(), null)); ruby.getScope().push(); /* default visibility is private at loading toplevel */ ruby.setActMethodScope(Constants.SCOPE_PRIVATE); String last_func = ruby.getRubyFrame().getLastFunc(); try { // RubyId last_func = ruby.getRubyFrame().getLastFunc(); // DEFER_INTS; ruby.setInEval(ruby.getInEval() + 1); ruby.getRubyParser().compileString(scriptName.getValue(), source, 0); // --- ruby.setInEval(ruby.getInEval() - 1); self.evalNode(ruby.getParserHelper().getEvalTree()); } catch (Exception excptn) { excptn.printStackTrace(getErrorStream()); } finally { ruby.getRubyFrame().setLastFunc(last_func); /*if (ruby.getRubyScope().getFlags() == SCOPE_ALLOCA && ruby.getRubyClass() == ruby.getClasses().getObjectClass()) { if (ruby_scope->local_tbl) free(ruby_scope->local_tbl); }*/ ruby.setCRef(savedCRef); ruby.getScope().pop(); ruby.getRubyFrame().pop(); ruby.popClass(); RubyVarmap.pop(ruby); ruby.setWrapper(wrapper); } /*if (ruby_nerrs > 0) { ruby_nerrs = 0; rb_exc_raise(ruby_errinfo); }*/ }
3,229,742
public RubyArray instance_variables() { List names = new ArrayList(); Iterator iter = instanceVariables.keySet().iterator(); while (iter.hasNext()) { String name = (String) iter.next(); names.add(RubyString.newString(getRuby(), name)); } return RubyArray.newArray(ruby, names); }
public RubyArray instance_variables() { ArrayList names = new ArrayList(); Iterator iter = instanceVariables.keySet().iterator(); while (iter.hasNext()) { String name = (String) iter.next(); names.add(RubyString.newString(getRuby(), name)); } return RubyArray.newArray(ruby, names); }
3,229,743
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
3,229,744
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
3,229,745
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
3,229,746
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
3,229,747
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
3,229,748
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
3,229,749
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
3,229,750
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
3,229,751
public static RubyTime s_at(Ruby ruby, RubyObject rubyClass, RubyObject[] args) { long secs = ((RubyFixnum) args[0]).getValue(); RubyTime time = new RubyTime(ruby, (RubyClass) rubyClass.getRubyClass()); GregorianCalendar cal = new GregorianCalendar(); cal.setTime(new Date(secs)); time.setJavaCalendar(cal); return time; }
public static RubyTime s_at(Ruby ruby, RubyObject rubyClass, RubyObject[] args) { long secs = RubyNumeric.num2long(args[0]); RubyTime time = new RubyTime(ruby, (RubyClass) rubyClass.getRubyClass()); GregorianCalendar cal = new GregorianCalendar(); cal.setTime(new Date(secs)); time.setJavaCalendar(cal); return time; }
3,229,752
public String getNodeText() { String name = getNodeName(); if (getUserObject() instanceof ImageData) return getPartialName(name); if (numberItems == -1) return (name+SPACE+"[...]"); return (name+SPACE+"["+numberItems+"]"); }
public String getNodeText() { String name = getNodeName(); if (getUserObject() instanceof ImageData) { if (partialName) return getPartialName(name); return name; } if (numberItems == -1) return (name+SPACE+"[...]"); return (name+SPACE+"["+numberItems+"]"); }
3,229,754
public String toString() { if (getUserObject() instanceof ImageData) return getPartialName(getNodeName()); return getNodeName(); }
public String toString() { if (getUserObject() instanceof ImageData) return getPartialName(getNodeName()); return getNodeName(); }
3,229,755
public static PiccoloAction getSemanticEnterAction(final BrowserView view, final HoverManager layer) { PiccoloAction enterAction = getImageEnterAction(view); PiccoloAction action = new CompositePiccoloAction(enterAction) { public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D size = semanticNode.getBounds().getSize(); Point2D viewPoint = e.getCamera().viewToLocal(dummyPoint); semanticNode.setOffset(viewPoint.getX()-size.getWidth()/2, viewPoint.getY()-size.getHeight()/2); double offRight = semanticNode.getOffset().getX()+ semanticNode.getBounds().getWidth()- e.getCamera().getBounds().getWidth(); double offBottom = semanticNode.getOffset().getY()+ semanticNode.getBounds().getHeight()- e.getCamera().getBounds().getHeight(); double offLeft = semanticNode.getOffset().getX(); double offTop = semanticNode.getOffset().getY(); if(offRight > 0) { offLeft = offLeft-offRight-4; semanticNode.setOffset(offLeft,offTop); } if(offBottom > 0) { offTop = offBottom-offTop-4; semanticNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; semanticNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; semanticNode.setOffset(offLeft,offTop); } layer.nodeEntered(e.getCamera(),semanticNode,200); } } }; return action; }
public static PiccoloAction getSemanticEnterAction(final BrowserView view, final HoverManager layer) { PiccoloAction enterAction = getImageEnterAction(view); PiccoloAction action = new CompositePiccoloAction(enterAction) { public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D size = semanticNode.getBounds().getSize(); Point2D viewPoint = e.getCamera().viewToLocal(dummyPoint); semanticNode.setOffset(viewPoint.getX()-size.getWidth()/2, viewPoint.getY()-size.getHeight()/2); double offRight = semanticNode.getOffset().getX()+ semanticNode.getBounds().getWidth()- e.getCamera().getBounds().getWidth(); double offBottom = semanticNode.getOffset().getY()+ semanticNode.getBounds().getHeight()- e.getCamera().getBounds().getHeight(); double offLeft = semanticNode.getOffset().getX(); double offTop = semanticNode.getOffset().getY(); if(offRight > 0) { offLeft = offLeft-offRight-4; semanticNode.setOffset(offLeft,offTop); } if(offBottom > 0) { offTop = offTop-offBottom-4; semanticNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; semanticNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; semanticNode.setOffset(offLeft,offTop); } layer.nodeEntered(e.getCamera(),semanticNode,200); } } }; return action; }
3,229,756
public static PiccoloAction getSemanticEnterAction(final BrowserView view, final HoverManager layer) { PiccoloAction enterAction = getImageEnterAction(view); PiccoloAction action = new CompositePiccoloAction(enterAction) { public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D size = semanticNode.getBounds().getSize(); Point2D viewPoint = e.getCamera().viewToLocal(dummyPoint); semanticNode.setOffset(viewPoint.getX()-size.getWidth()/2, viewPoint.getY()-size.getHeight()/2); double offRight = semanticNode.getOffset().getX()+ semanticNode.getBounds().getWidth()- e.getCamera().getBounds().getWidth(); double offBottom = semanticNode.getOffset().getY()+ semanticNode.getBounds().getHeight()- e.getCamera().getBounds().getHeight(); double offLeft = semanticNode.getOffset().getX(); double offTop = semanticNode.getOffset().getY(); if(offRight > 0) { offLeft = offLeft-offRight-4; semanticNode.setOffset(offLeft,offTop); } if(offBottom > 0) { offTop = offBottom-offTop-4; semanticNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; semanticNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; semanticNode.setOffset(offLeft,offTop); } layer.nodeEntered(e.getCamera(),semanticNode,200); } } }; return action; }
public static PiccoloAction getSemanticEnterAction(final BrowserView view, final HoverManager layer) { PiccoloAction enterAction = getImageEnterAction(view); PiccoloAction action = new CompositePiccoloAction(enterAction) { public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D size = semanticNode.getBounds().getSize(); Point2D viewPoint = e.getCamera().viewToLocal(dummyPoint); semanticNode.setOffset(viewPoint.getX()-size.getWidth()/2, viewPoint.getY()-size.getHeight()/2); double offRight = semanticNode.getOffset().getX()+ semanticNode.getBounds().getWidth()- e.getCamera().getBounds().getWidth(); double offBottom = semanticNode.getOffset().getY()+ semanticNode.getBounds().getHeight()- e.getCamera().getBounds().getHeight(); double offLeft = semanticNode.getOffset().getX(); double offTop = semanticNode.getOffset().getY(); if(offRight > 0) { offLeft = offLeft-offRight-4; semanticNode.setOffset(offLeft,offTop); } if(offBottom > 0) { offTop = offBottom-offTop-4; semanticNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; semanticNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; semanticNode.setOffset(offLeft,offTop); } layer.nodeEntered(e.getCamera(),semanticNode,500); } } }; return action; }
3,229,757
public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D size = semanticNode.getBounds().getSize(); Point2D viewPoint = e.getCamera().viewToLocal(dummyPoint); semanticNode.setOffset(viewPoint.getX()-size.getWidth()/2, viewPoint.getY()-size.getHeight()/2); double offRight = semanticNode.getOffset().getX()+ semanticNode.getBounds().getWidth()- e.getCamera().getBounds().getWidth(); double offBottom = semanticNode.getOffset().getY()+ semanticNode.getBounds().getHeight()- e.getCamera().getBounds().getHeight(); double offLeft = semanticNode.getOffset().getX(); double offTop = semanticNode.getOffset().getY(); if(offRight > 0) { offLeft = offLeft-offRight-4; semanticNode.setOffset(offLeft,offTop); } if(offBottom > 0) { offTop = offBottom-offTop-4; semanticNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; semanticNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; semanticNode.setOffset(offLeft,offTop); } layer.nodeEntered(e.getCamera(),semanticNode,200); } }
public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D size = semanticNode.getBounds().getSize(); Point2D viewPoint = e.getCamera().viewToLocal(dummyPoint); semanticNode.setOffset(viewPoint.getX()-size.getWidth()/2, viewPoint.getY()-size.getHeight()/2); double offRight = semanticNode.getOffset().getX()+ semanticNode.getBounds().getWidth()- e.getCamera().getBounds().getWidth(); double offBottom = semanticNode.getOffset().getY()+ semanticNode.getBounds().getHeight()- e.getCamera().getBounds().getHeight(); double offLeft = semanticNode.getOffset().getX(); double offTop = semanticNode.getOffset().getY(); if(offRight > 0) { offLeft = offLeft-offRight-4; semanticNode.setOffset(offLeft,offTop); } if(offBottom > 0) { offTop = offTop-offBottom-4; semanticNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; semanticNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; semanticNode.setOffset(offLeft,offTop); } layer.nodeEntered(e.getCamera(),semanticNode,200); } }
3,229,758
public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D size = semanticNode.getBounds().getSize(); Point2D viewPoint = e.getCamera().viewToLocal(dummyPoint); semanticNode.setOffset(viewPoint.getX()-size.getWidth()/2, viewPoint.getY()-size.getHeight()/2); double offRight = semanticNode.getOffset().getX()+ semanticNode.getBounds().getWidth()- e.getCamera().getBounds().getWidth(); double offBottom = semanticNode.getOffset().getY()+ semanticNode.getBounds().getHeight()- e.getCamera().getBounds().getHeight(); double offLeft = semanticNode.getOffset().getX(); double offTop = semanticNode.getOffset().getY(); if(offRight > 0) { offLeft = offLeft-offRight-4; semanticNode.setOffset(offLeft,offTop); } if(offBottom > 0) { offTop = offBottom-offTop-4; semanticNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; semanticNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; semanticNode.setOffset(offLeft,offTop); } layer.nodeEntered(e.getCamera(),semanticNode,200); } }
public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D size = semanticNode.getBounds().getSize(); Point2D viewPoint = e.getCamera().viewToLocal(dummyPoint); semanticNode.setOffset(viewPoint.getX()-size.getWidth()/2, viewPoint.getY()-size.getHeight()/2); double offRight = semanticNode.getOffset().getX()+ semanticNode.getBounds().getWidth()- e.getCamera().getBounds().getWidth(); double offBottom = semanticNode.getOffset().getY()+ semanticNode.getBounds().getHeight()- e.getCamera().getBounds().getHeight(); double offLeft = semanticNode.getOffset().getX(); double offTop = semanticNode.getOffset().getY(); if(offRight > 0) { offLeft = offLeft-offRight-4; semanticNode.setOffset(offLeft,offTop); } if(offBottom > 0) { offTop = offBottom-offTop-4; semanticNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; semanticNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; semanticNode.setOffset(offLeft,offTop); } layer.nodeEntered(e.getCamera(),semanticNode,500); } }
3,229,759
public Category(Integer attributeId, String name, String description, org.openmicroscopy.omero.model.CategoryGroup categoryGroup, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set classifications) { this.attributeId = attributeId; this.name = name; this.description = description; this.categoryGroup = categoryGroup; this.moduleExecution = moduleExecution; this.classifications = classifications; }
public Category(Integer attributeId, String name, String description, org.openmicroscopy.omero.model.CategoryGroup categoryGroup, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set classifications) { this.attributeId = attributeId; this.name = name; this.description = description; this.categoryGroup = categoryGroup; this.moduleExecution = moduleExecution; this.classifications = classifications; }
3,229,760
public org.openmicroscopy.omero.model.CategoryGroup getCategoryGroup() { return this.categoryGroup; }
public CategoryGroup getCategoryGroup() { return this.categoryGroup; }
3,229,761
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
public ModuleExecution getModuleExecution() { return this.moduleExecution; }
3,229,762
public void setCategoryGroup(org.openmicroscopy.omero.model.CategoryGroup categoryGroup) { this.categoryGroup = categoryGroup; }
public void setCategoryGroup(CategoryGroup categoryGroup) { this.categoryGroup = categoryGroup; }
3,229,763
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
3,229,764
private Block( Node var, ICallable method, IRubyObject self, Frame frame, Scope scope, RubyModule klass, Iter iter, DynamicVariableSet dynamicVars) { assert method != null; this.var = var; this.method = method; this.self = self; this.frame = frame; this.scope = scope; this.klass = klass; this.iter = iter; this.dynamicVariables = dynamicVars; }
public Block( Node var, ICallable method, IRubyObject self, Frame frame, Scope scope, RubyModule klass, Iter iter, DynamicVariableSet dynamicVars) { assert method != null; this.var = var; this.method = method; this.self = self; this.frame = frame; this.scope = scope; this.klass = klass; this.iter = iter; this.dynamicVariables = dynamicVars; }
3,229,765