bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public final boolean isNameStartChar() { return isNameStartChar(_cur); } | public final boolean isNameStartChar() { return isNameStartChar(_cur); } | 3,235,604 |
protected void defineMethods(MethodContext context) { context.create("==", EQUAL, 1); context.createAlias("===", "=="); context.create("=~", MATCH, 1); context.create("class", TYPE, 0); context.create("clone", CLONE, 0); context.create("dup", DUP, 0); context.create(... | protected void defineMethods(MethodContext context) { context.create("==", EQUAL, 1); context.createAlias("===", "=="); context.create("=~", MATCH, 1); context.create("class", TYPE, 0); context.create("clone", RBCLONE, 0); context.create("dup", DUP, 0); context.creat... | 3,235,605 |
protected void defineMethods(MethodContext context) { context.create("==", EQUAL, 1); context.createAlias("===", "=="); context.create("=~", MATCH, 1); context.create("class", TYPE, 0); context.create("clone", CLONE, 0); context.create("dup", DUP, 0); context.create(... | protected void defineMethods(MethodContext context) { context.create("==", EQUAL, 1); context.createAlias("===", "=="); context.create("=~", MATCH, 1); context.create("class", TYPE, 0); context.create("clone", CLONE, 0); context.create("dup", DUP, 0); context.create(... | 3,235,606 |
public void bind(String name, Object obj) { entriesMap.put(name, obj); } | public void bind(String name, Object obj) { entriesMap.put(name, obj); } | 3,235,607 |
public void bind(String name, Object obj) { entriesMap.put(name, obj); } | public void bind(String name, Object obj) { entriesMap.put(name, obj); } | 3,235,608 |
public static RubyModule m_new(Ruby ruby, RubyModule rubyClass) { RubyModule mod = RubyModule.m_newModule(ruby); mod.setRubyClass(rubyClass); ruby.getModuleClass().callInit(null); return mod; } | public static RubyModule m_new(Ruby ruby, RubyObject recv) { RubyModule mod = RubyModule.m_newModule(ruby); mod.setRubyClass(rubyClass); ruby.getModuleClass().callInit(null); return mod; } | 3,235,609 |
public static RubyModule m_new(Ruby ruby, RubyModule rubyClass) { RubyModule mod = RubyModule.m_newModule(ruby); mod.setRubyClass(rubyClass); ruby.getModuleClass().callInit(null); return mod; } | public static RubyModule m_new(Ruby ruby, RubyModule rubyClass) { RubyModule mod = RubyModule.m_newModule(ruby); mod.setRubyClass((RubyModule)recv); ruby.getModuleClass().callInit(null); return mod; } | 3,235,610 |
protected DataLoader createHierarchyLoader() { Set ids = new HashSet(images.size()); Iterator i = images.iterator(); while (i.hasNext()) ids.add(new Integer(((ImageData) i.next()).getId())); switch (type) { case HiViewer.PDI_HIERARCHY: ret... | protected DataLoader createHierarchyLoader() { Set ids = new HashSet(images.size()); Iterator i = images.iterator(); while (i.hasNext()) ids.add(new Integer(((ImageData) i.next()).getId())); switch (type) { case HiViewer.PDI_HIERARCHY: ret... | 3,235,612 |
public RubyNumeric op_mul(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_mul(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime()... | public RubyNumeric op_mul(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_mul(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime()... | 3,235,613 |
void buildGUI() { JPanel p = new JPanel(); p.setLayout(new BorderLayout(0, 0)); p.add(histogramPanel, BorderLayout.CENTER); //getContentPane().add(histogramPanel); getContentPane().add(p); setSize(HistogramPanel.WIDTH, HEIGHT_WIN); setResizable(false); } | void buildGUI() { JPanel p = new JPanel(); p.setLayout(new BorderLayout(0, 0)); p.add(histogramPanel, BorderLayout.CENTER); //getContentPane().add(histogramPanel); getContentPane().add(p); setSize(HistogramPanel.WIDTH, HEIGHT_WIN); setResizable(false); } | 3,235,614 |
HistogramDialogManager(HistogramDialog view, QuantumPaneManager control) { this.view = view; this.control = control; inputStartKnob = false; inputEndKnob = false; boxInputStart = new Rectangle(); boxInputEnd = new Rectangle(); } | HistogramDialogManager(HistogramDialog view, QuantumPaneManager control) { this.view = view; this.control = control; inputStartKnob = false; inputEndKnob = false; boxInputStart = new Rectangle(); boxInputEnd = new Rectangle(); } | 3,235,615 |
HistogramDialogManager(HistogramDialog view, QuantumPaneManager control) { this.view = view; this.control = control; inputStartKnob = false; inputEndKnob = false; boxInputStart = new Rectangle(); boxInputEnd = new Rectangle(); } | HistogramDialogManager(HistogramDialog view, QuantumPaneManager control) { this.view = view; this.control = control; inputStartKnob = false; inputEndKnob = false; boxInputStart = new Rectangle(); boxInputEnd = new Rectangle(); } | 3,235,616 |
void initRectangles(int yStart, int yEnd) { lS = HistogramPanel.leftBorder+view.getHistogramPanel().getWidthStat(); setInputStartBox(yStart); setInputEndBox(yEnd); } | void initRectangles(int yStart, int yEnd) { lS = HistogramPanel.leftBorder+view.getHistogramPanel().getWidthStat(); setInputStartBox(yStart); setInputEndBox(yEnd); } | 3,235,617 |
void initRectangles(int yStart, int yEnd) { lS = HistogramPanel.leftBorder+view.getHistogramPanel().getWidthStat(); setInputStartBox(yStart); setInputEndBox(yEnd); } | void initRectangles(int yStart, int yEnd) { lS = HistogramPanel.leftBorder+view.getHistogramPanel().getWidthStat(); setInputStartBox(yStart); setInputEndBox(yEnd); } | 3,235,618 |
void attachListeners() { view.getHistogramPanel().addMouseListener(this); view.getHistogramPanel().addMouseMotionListener(this); view.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { view.dispose(); } }); } | void attachListeners() { view.getHistogramPanel().addMouseListener(this); view.getHistogramPanel().addMouseMotionListener(this); view.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { view.dispose(); } }); } | 3,235,619 |
private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); //TODO: REMOVE COMMENTS //control.removeProgressNotifier(); if (... | private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); //TODO: REMOVE COMMENTS //control.removeProgressNotifier(); if (curImageID != request.getImageID()) { if (presen... | 3,235,620 |
private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); //TODO: REMOVE COMMENTS //control.removeProgressNotifier(); if (... | private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); //TODO: REMOVE COMMENTS //control.removeProgressNotifier(); if (... | 3,235,621 |
private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); //TODO: REMOVE COMMENTS //control.removeProgressNotifier(); if (... | private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); //TODO: REMOVE COMMENTS //control.removeProgressNotifier(); if (... | 3,235,622 |
private void handleImageRendered(ImageRendered response) { curImage = null; curImage = response.getRenderedImage(); presentation.setImage(curImage); } | private void handleImageRendered(ImageRendered response) { curImage = response.getRenderedImage(); presentation.setImage(curImage); } | 3,235,623 |
private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageNa... | private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean b) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(im... | 3,235,625 |
private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageNa... | private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageNa... | 3,235,626 |
void disposeDialogs() { if (moviePlayer != null) moviePlayer.dispose(); if (imageInspector != null) imageInspector.dispose(); roiOnOff = false; presentation.removeCanvasFromLayer(presentation.getDrawingCanvas()); presentation.getBottomBar().resetMessage(BottomBar.LENS); ... | void disposeDialogs() { if (moviePlayer != null) moviePlayer.close(); if (imageInspector != null) imageInspector.dispose(); roiOnOff = false; presentation.removeCanvasFromLayer(presentation.getDrawingCanvas()); presentation.getBottomBar().resetMessage(BottomBar.LENS); pr... | 3,235,627 |
private void collectCounts(Collection queryResults, PojoOptions po) { if (po.hasCountFields() && po.isCounts()) { CountCollector c = new CountCollector(po.countFields()); c.collect(queryResults); for (String key : po.countFields()) { Query ... | private void collectCounts(Collection queryResults, PojoOptions po) { if (po.hasCountFields() && po.isCounts()) { CountCollector c = new CountCollector(po.countFields()); c.collect(queryResults); for (String key : po.countFields()) { Query ... | 3,235,628 |
public Map findAnnotations(Class rootNodeType, @NotNull @Validate(Integer.class) Set rootNodeIds, @Validate(Integer.class) Set annotatorIds, Map options) { if (rootNodeIds.size()==0) return new HashMap(); PojoOptions po = new PojoOptions(options); Query q = queryFa... | public Map findAnnotations(Class rootNodeType, @NotNull @Validate(Integer.class) Set rootNodeIds, @Validate(Integer.class) Set annotatorIds, Map options) { if (rootNodeIds.size()==0) return new HashMap(); PojoOptions po = new PojoOptions(options); Query q = queryFa... | 3,235,629 |
public Map findAnnotations(Class rootNodeType, @NotNull @Validate(Integer.class) Set rootNodeIds, @Validate(Integer.class) Set annotatorIds, Map options) { if (rootNodeIds.size()==0) return new HashMap(); PojoOptions po = new PojoOptions(options); Query q = queryFa... | public Map findAnnotations(Class rootNodeType, @NotNull @Validate(Integer.class) Set rootNodeIds, @Validate(Integer.class) Set annotatorIds, Map options) { if (rootNodeIds.size()==0) return new HashMap(); PojoOptions po = new PojoOptions(options); Query q = queryFa... | 3,235,630 |
public Set findCGCPaths(@NotNull @Validate(Integer.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = n... | public Set findCGCPaths(@NotNull @Validate(Long.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = new ... | 3,235,632 |
public Set findCGCPaths(@NotNull @Validate(Integer.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = n... | public Set findCGCPaths(@NotNull @Validate(Integer.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = n... | 3,235,633 |
public Set findCGCPaths(@NotNull @Validate(Integer.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = n... | public Set findCGCPaths(@NotNull @Validate(Integer.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = n... | 3,235,634 |
public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Integer.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), Pojo... | public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Integer.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), Pojo... | 3,235,636 |
public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Integer.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), Pojo... | public for (Object object : l) { iQuery.evict(object); } Set for (Object object : l) { iQuery.evict(object); } findContainerHierarchies(@NotNull for (Object object : l) { iQuery.evict(object); } Class for (Object object : l) { iQuery.evict(object); } rootNodeType, for (Object object : l) { iQuery.ev... | 3,235,637 |
public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Integer.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), Pojo... | public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Integer.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), Pojo... | 3,235,638 |
public Map getCollectionCount(@NotNull String type, @NotNull String property, @NotNull @Validate(Integer.class) Set ids, Map options) { Map results = new HashMap(); String alphaNumeric = "^\\w+$"; String alphaNumericDotted = "^\\w[.\\w]+$"; // TODO annotations ... | public Map getCollectionCount(@NotNull String type, @NotNull String property, @NotNull @Validate(Long.class) Set ids, Map options) { Map results = new HashMap(); String alphaNumeric = "^\\w+$"; String alphaNumericDotted = "^\\w[.\\w]+$"; // TODO annotations ... | 3,235,639 |
public Map getCollectionCount(@NotNull String type, @NotNull String property, @NotNull @Validate(Integer.class) Set ids, Map options) { Map results = new HashMap(); String alphaNumeric = "^\\w+$"; String alphaNumericDotted = "^\\w[.\\w]+$"; // TODO annotations ... | public Map getCollectionCount(@NotNull String type, @NotNull String property, @NotNull @Validate(Integer.class) Set ids, Map options) { Map results = new HashMap(); String alphaNumeric = "^\\w+$"; String alphaNumericDotted = "^\\w[.\\w]+$"; // TODO annotations ... | 3,235,640 |
public Map getCollectionCount(@NotNull String type, @NotNull String property, @NotNull @Validate(Integer.class) Set ids, Map options) { Map results = new HashMap(); String alphaNumeric = "^\\w+$"; String alphaNumericDotted = "^\\w[.\\w]+$"; // TODO annotations ... | public Map getCollectionCount(@NotNull String type, @NotNull String property, @NotNull @Validate(Integer.class) Set ids, Map options) { Map results = new HashMap(); String alphaNumeric = "^\\w+$"; String alphaNumericDotted = "^\\w[.\\w]+$"; // TODO annotations ... | 3,235,641 |
public Map getCollectionCount(@NotNull String type, @NotNull String property, @NotNull @Validate(Integer.class) Set ids, Map options) { Map results = new HashMap(); String alphaNumeric = "^\\w+$"; String alphaNumericDotted = "^\\w[.\\w]+$"; // TODO annotations ... | public Map getCollectionCount(@NotNull String type, @NotNull String property, @NotNull @Validate(Integer.class) Set ids, Map options) { Map results = new HashMap(); String alphaNumeric = "^\\w+$"; String alphaNumericDotted = "^\\w[.\\w]+$"; // TODO annotations ... | 3,235,642 |
public Map getCollectionCount(@NotNull String type, @NotNull String property, @NotNull @Validate(Integer.class) Set ids, Map options) { Map results = new HashMap(); String alphaNumeric = "^\\w+$"; String alphaNumericDotted = "^\\w[.\\w]+$"; // TODO annotations ... | public Map getCollectionCount(@NotNull String type, @NotNull String property, @NotNull @Validate(Integer.class) Set ids, Map options) { Map results = new HashMap(); String alphaNumeric = "^\\w+$"; String alphaNumericDotted = "^\\w[.\\w]+$"; // TODO annotations ... | 3,235,643 |
public Set getImages(@NotNull Class rootNodeType, @NotNull @Validate(Integer.class) Set rootNodeIds, Map options) { if (rootNodeIds.size()==0){ return new HashSet(); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( "ome.servics.query.GetImagesQueryDef... | public Set getImages(@NotNull Class rootNodeType, @NotNull @Validate(Integer.class) Set rootNodeIds, Map options) { if (rootNodeIds.size()==0){ return new HashSet(); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( "ome.servics.query.GetImagesQueryDef... | 3,235,644 |
public Set getImages(@NotNull Class rootNodeType, @NotNull @Validate(Integer.class) Set rootNodeIds, Map options) { if (rootNodeIds.size()==0){ return new HashSet(); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( "ome.servics.query.GetImagesQueryDef... | public Set getImages(@NotNull Class rootNodeType, @NotNull @Validate(Integer.class) Set rootNodeIds, Map options) { if (rootNodeIds.size()==0){ return new HashSet(); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosGetImagesQueryDefinition.class.... | 3,235,645 |
public Map getUserDetails(@NotNull @Validate(String.class) Set names, Map options) { List results; Map<String, Experimenter> map = new HashMap<String, Experimenter>(); /* query only if we have some ids */ if (names.size() > 0) { Map<String... | public Map getUserDetails(@NotNull @Validate(String.class) Set names, Map options) { List results; Map<String, Experimenter> map = new HashMap<String, Experimenter>(); /* query only if we have some ids */ if (names.size() > 0) { Map<String... | 3,235,646 |
public Set getUserImages(Map options) { PojoOptions po = new PojoOptions(options); if (!po.isExperimenter() ) { // FIXME && !po.isGroup()){ throw new IllegalArgumentException( "experimenter or group option " + "is required for getUserImages()."); } Query q = queryFactory.lookup(... | public Set getUserImages(Map options) { PojoOptions po = new PojoOptions(options); if (!po.isExperimenter() ) { // FIXME && !po.isGroup()){ throw new IllegalArgumentException( "experimenter or group option " + "is required for getUserImages()."); } Query q = queryFactory.lookup(... | 3,235,647 |
public Set loadContainerHierarchy(Class rootNodeType, @Validate(Integer.class) Set rootNodeIds, Map options) { PojoOptions po = new PojoOptions(options); if (null==rootNodeIds && !po.isExperimenter()) throw new IllegalArgumentException( "Set of ids for lo... | public Set loadContainerHierarchy(Class rootNodeType, @Validate(Long.class) Set rootNodeIds, Map options) { PojoOptions po = new PojoOptions(options); if (null==rootNodeIds && !po.isExperimenter()) throw new IllegalArgumentException( "Set of ids for loadC... | 3,235,648 |
public Collection retrieveCollection(IObject arg0, String arg1, Map arg2) { IObject context = (IObject) iQuery.getById(arg0.getClass(),arg0.getId()); return (Collection) context.retrieve(arg1); // FIXME not type.o.null safe } | public Collection retrieveCollection(IObject arg0, String arg1, Map arg2) { IObject context = (IObject) iQuery.getById(arg0.getClass(),arg0.getId()); Collection c = (Collection) context.retrieve(arg1); iQuery.initialize(c); return c; // FIXME not type.o.null safe } | 3,235,649 |
private void datasetNodeNavigation(DatasetData d, DefaultMutableTreeNode node, boolean isExpanding) { DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); Integer datasetID = new Integer(d.getId()); ... | private void datasetNodeNavigation(DatasetData d, DefaultMutableTreeNode node, boolean isExpanding) { DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); Integer datasetID = new Integer(d.getId()); ... | 3,235,650 |
private void datasetNodeNavigation(DatasetData d, DefaultMutableTreeNode node, boolean isExpanding) { DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); Integer datasetID = new Integer(d.getId()); ... | private void datasetNodeNavigation(DatasetData d, DefaultMutableTreeNode node, boolean isExpanding) { DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); Integer datasetID = new Integer(d.getId()); ... | 3,235,651 |
public static IRubyObject set_trace_func(IRubyObject recv, IRubyObject trace_func) { if (trace_func.isNil()) { recv.getRuntime().getRuntime().setTraceFunction(null); } else if (!(trace_func instanceof RubyProc)) { throw new TypeError(recv.getRuntime(), "trace_func needs to be Pro... | public static IRubyObject set_trace_func(IRubyObject recv, IRubyObject trace_func) { if (trace_func.isNil()) { recv.getRuntime().getRuntime().setTraceFunction(null); } else if (!(trace_func instanceof RubyProc)) { throw new TypeError(recv.getRuntime(), "trace_func needs to be Pro... | 3,235,652 |
public IRubyObject internalCall(ThreadContext context, IRubyObject receiver, RubyModule lastClass, String name, IRubyObject[] args, boolean noSuper) { assert args != null; IRuby runtime = context.getRuntime(); RubyProc blockArg = null; if (argsNode.getBlockArgNode() != null && context.isBlo... | public IRubyObject internalCall(ThreadContext context, IRubyObject receiver, RubyModule lastClass, String name, IRubyObject[] args, boolean noSuper) { assert args != null; IRuby runtime = context.getRuntime(); RubyProc blockArg = null; if (argsNode.getBlockArgNode() != null && context.isBlo... | 3,235,653 |
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyObject recv = getRecvNode().eval(ruby, self); Node rval = getArgsNode().getHeadNode(); RubyObject[] args = ArgsUtil.setupArgs(ruby, self, getArgsNode().getNextNode()); RubyList argsList = new ... | public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyObject recv = getRecvNode().eval(ruby, self); Node rval = getArgsNode().getHeadNode(); RubyObject[] args = ArgsUtil.setupArgs(ruby, self, getArgsNode().getNextNode()); RubyList argsList = new ... | 3,235,654 |
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyObject recv = getRecvNode().eval(ruby, self); Node rval = getArgsNode().getHeadNode(); RubyObject[] args = ArgsUtil.setupArgs(ruby, self, getArgsNode().getNextNode()); RubyList argsList = new ... | public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyObject recv = getRecvNode().eval(ruby, self); Node rval = getArgsNode().getHeadNode(); RubyObject[] args = ArgsUtil.setupArgs(ruby, self, getArgsNode().getNextNode()); RubyList argsList = new ... | 3,235,655 |
private void performSearch() { int index = view.getSearchType(); String regEx = view.getSearchValue(); FindRegExCmd cmd = new FindRegExCmd(view.model.getParentModel(), regEx, index); cmd.execute(); } | private void performSearch() { int index = view.getSearchType(); String regEx = view.getSearchValue(); FindRegExCmd cmd = new FindRegExCmd(view.model.getParentModel(), regEx, index); cmd.execute(); } | 3,235,656 |
public void handleCancellation() { String info = "The data saving has been cancelled."; registry.getLogger().info(this, info); registry.getUserNotifier().notifyInfo("Data Saving Cancellation", info); } | public void handleCancellation() { String info = "The data saving has been cancelled."; registry.getLogger().info(this, info); registry.getUserNotifier().notifyInfo("Data Saving Cancellation", info); } | 3,235,657 |
public List childNodes() { return Collections.EMPTY_LIST; } | public List childNodes() { return EMPTY_LIST; } | 3,235,659 |
public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, ArrayNode node) { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); RubyObject[] args = node.getArray(ruby, self); ruby.setSourceFile(file); ruby.setSourceLine(line); ... | public static RubyPointer setupArgs(Ruby ruby, RubyObject self, ArrayNode node) { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); RubyObject[] args = node.getArray(ruby, self); ruby.setSourceFile(file); ruby.setSourceLine(line); ... | 3,235,660 |
public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, ArrayNode node) { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); RubyObject[] args = node.getArray(ruby, self); ruby.setSourceFile(file); ruby.setSourceLine(line); ... | public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, ArrayNode node) { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); RubyPointer args = new RubyPointer(node.getArrayList(ruby, self)); ruby.setSourceFile(file); ruby.setSourceLine(l... | 3,235,661 |
public Filterable filter(String fieldId, Filterable f) { /* TODO here's where we could use a single call back for each filter method. (onFilter) also (onFilterX) beforeFilter / afterFilter etc. */ addIfHit(fieldId); return super.filter(fieldId,f); } | public Filterable filter(String fieldId, Filterable f) { /* TODO here's where we could use a single call back for each filter method. (onFilter) also (onFilterX) beforeFilter / afterFilter etc. */ addIfHit(fieldId); return result; } | 3,235,662 |
protected static void runInterpreter(Reader iReader2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = Ruby.getDefaultInstance(sRegexpAdapter); // Parse and interpret file IRubyObject lArgv = JavaUtil.convertJavaToRuby(ruby, args); ruby.setVerbose(warning);... | protected static void runInterpreter(Reader iReader2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = Ruby.getDefaultInstance(sRegexpAdapter); // Parse and interpret file IRubyObject lArgv = JavaUtil.convertJavaToRuby(ruby, args); ruby.setVerbose(warning);... | 3,235,663 |
private String filterBody(String text) { EmoticonManager emoticonManager = EmoticonManager.getInstance(); StringBuilder builder = new StringBuilder(); final StringTokenizer tokenizer = new StringTokenizer(text, " \n \t", true); while (tokenizer.hasMoreTokens()) { String textFo... | private String filterBody(String text) { EmoticonManager emoticonManager = EmoticonManager.getInstance(); StringBuilder builder = new StringBuilder(); final StringTokenizer tokenizer = new StringTokenizer(text, " \n \t", true); while (tokenizer.hasMoreTokens()) { String textFo... | 3,235,664 |
public static IObject createIObject(DataObject child, DataObject parent) { if (child instanceof ProjectData) { ProjectData data = (ProjectData) child; Project model = new Project(); model.setName(data.getName()); model.setDescription(data.getDescription()); ... | public static IObject createIObject(DataObject child, DataObject parent) { if (child instanceof ProjectData) { ProjectData data = (ProjectData) child; Project model = new Project(); model.setName(data.getName()); model.setDescription(data.getDescription()); ... | 3,235,665 |
public static void linkParentToChild(IObject child, IObject parent) { if (parent == null) return; if (child == null) throw new IllegalArgumentException("Child cannot" + "be null."); if (parent instanceof Project) { if (!(child instanceof Dataset)) ... | public static void linkParentToChild(IObject child, IObject parent) { if (parent == null) return; if (child == null) throw new IllegalArgumentException("Child cannot" + "be null."); if (parent instanceof Project) { if (!(child instanceof Dataset)) ... | 3,235,666 |
public MockServiceFactory() throws NullPointerException { super(SERVICE); } | private MockServiceFactory() throws NullPointerException { super(SERVICE); } | 3,235,667 |
public ISourcePosition getPosition(ISourcePosition startPosition) { return src.getPosition(startPosition); } | public ISourcePosition getPosition(ISourcePosition startPosition) { return src.getPosition(startPosition); } | 3,235,668 |
private List sort(List nodes, final boolean ascending) { Comparator c; switch (sortType) { case Browser.SORT_NODES_BY_DATE: c = new Comparator() { public int compare(Object o1, Object o2) { ImageData i1 = (ImageD... | private List sort(List nodes, final boolean ascending) { Comparator c; switch (sortType) { case Browser.SORT_NODES_BY_DATE: c = new Comparator() { public int compare(Object o1, Object o2) { ImageData i1 = (ImageD... | 3,235,669 |
public int compare(Object o1, Object o2) { ImageData i1 = (ImageData) (((TreeImageDisplay) o1).getUserObject()); ImageData i2 = (ImageData) (((TreeImageDisplay) ... | public int compare(Object o1, Object o2) { ImageData i1 = (ImageData) (((TreeImageDisplay) o1).getUserObject()); ImageData i2 = (ImageData) (((TreeImageDisplay) ... | 3,235,670 |
public void actionPerformed(ActionEvent e) { String s = (String) e.getActionCommand(); try { int index = Integer.parseInt(s); switch (index) { case APPLY: applySettings(); break; case CANCEL: saveSettings(); break; case SAVE: cancel(); break; case R_AREA: checkFieldVa... | public void actionPerformed(ActionEvent e) { String s = (String) e.getActionCommand(); try { int index = Integer.parseInt(s); switch (index) { case APPLY: applySettings(); break; case CANCEL: saveSettings(); break; case SAVE: cancel(); break; case R_AREA: checkFieldVa... | 3,235,671 |
public void focusLost(FocusEvent e) { String valRed = view.getRArea().getText(), red = ""+colorSelected.getRed(); String valGreen = view.getGArea().getText(), green = ""+colorSelected.getGreen(); String valBlue = view.getBArea().getText(), blue = ""+colorSelected.getBlue(); ... | public void focusLost(FocusEvent e) { String valRed = view.getRArea().getText(), red = ""+colorSelected.getRed(); String valGreen = view.getGArea().getText(), green = ""+colorSelected.getGreen(); String valBlue = view.getBArea().getText(), blue = ""+colorSelected.getBlue(); ... | 3,235,672 |
public Object getData() { LocalPreferences pref = SettingsManager.getLocalPreferences(); String nickname = pref.getDefaultNickname(); if (nickname == null) { nickname = SparkManager.getSessionManager().getUsername(); } boolean showTime = pref.isTimeDisplayedInChat(); ... | public Object getData() { LocalPreferences pref = SettingsManager.getLocalPreferences(); String nickname = pref.getDefaultNickname(); if (nickname == null) { nickname = SparkManager.getSessionManager().getUsername(); } boolean showTime = pref.isTimeDisplayedInChat(); ... | 3,235,673 |
public IDataSet getData() throws Exception { return new XmlDataSet(new FileInputStream("sql/db-export.xml")); } | public IDataSet getData() throws Exception { URL file = this.getClass().getClassLoader().getResource("db-export.xml"); return new XmlDataSet(new FileInputStream(file.getFile())); } | 3,235,674 |
protected void setUp() throws Exception { ctx = getContext(getConfigLocations()); if (null == cdao || null == adao || null == ds) { cdao = (ContainerDao) ctx.getBean("containerDao"); adao = (AnnotationDao) ctx.getBean("annotationDao"); ds = (DataSource) ctx.getBea... | protected void setUp() throws Exception { ctx = getContext(getConfigLocations()); if (null == cdao || null == adao || null == ds) { cdao = (ContainerDao) ctx.getBean("containerDao"); adao = (AnnotationDao) ctx.getBean("annotationDao"); ds = (DataSource) ctx.getBea... | 3,235,675 |
protected void setUp() throws Exception { ctx = getContext(getConfigLocations()); if (null == cdao || null == adao || null == ds) { cdao = (ContainerDao) ctx.getBean("containerDao"); adao = (AnnotationDao) ctx.getBean("annotationDao"); ds = (DataSource) ctx.getBea... | protected void setUp() throws Exception { ctx = getContext(getConfigLocations()); if (null == cdao || null == adao || null == ds) { cdao = (ContainerDao) ctx.getBean("containerDao"); adao = (AnnotationDao) ctx.getBean("annotationDao"); ds = (DataSource) ctx.getBea... | 3,235,676 |
public void testFindPDIHierarchies(){ Set set = getSetFromInt(new int[]{1,5,6,7,8,9,0}); List result = cdao.findPDIHierarchies(set); assertTrue("Should have found all the images but Zero", result.size()==set.size()+1); for (Iterator i = result.iterator(); i.hasNext();) { Image... | public void testFindPDIHierarchies(){ Set set = getSetFromInt(new int[]{1,5,6,7,8,9,0}); List result = cdao.findPDIHierarchies(set); assertTrue("Should have found all the images but Zero", result.size()==set.size()+1); for (Iterator i = result.iterator(); i.hasNext();) { Image... | 3,235,677 |
public void testFindPDIHierarchies(){ Set set = getSetFromInt(new int[]{1,5,6,7,8,9,0}); List result = cdao.findPDIHierarchies(set); assertTrue("Should have found all the images but Zero", result.size()==set.size()+1); for (Iterator i = result.iterator(); i.hasNext();) { Image... | public void testFindPDIHierarchies(){ Set set = getSetFromInt(new int[]{1,5,6,7,8,9,0}); List result = cdao.findPDIHierarchies(set); assertTrue("Should have found all the images but Zero", result.size()==set.size()+1); for (Iterator i = result.iterator(); i.hasNext();) { Image... | 3,235,678 |
public void respondMouseClick(PInputEvent event) { getParent().removeChild(this); t.respondMouseClick(pushParentNode(event,t)); } | public void respondMouseClick(PInputEvent event) { if(getParent() != null) getParent().removeChild(this); t.respondMouseClick(pushParentNode(event,t)); } | 3,235,679 |
public void respondMouseDoubleClick(PInputEvent event) { getParent().removeChild(this); t.respondMouseDoubleClick(pushParentNode(event,t)); } | public void respondMouseDoubleClick(PInputEvent event) { if(getParent() != null) getParent().removeChild(this); t.respondMouseDoubleClick(pushParentNode(event,t)); } | 3,235,680 |
public void respondMousePress(PInputEvent event) { getParent().removeChild(this); t.respondMousePress(pushParentNode(event,t)); } | public void respondMousePress(PInputEvent event) { if(getParent() != null) getParent().removeChild(this); t.respondMousePress(pushParentNode(event,t)); } | 3,235,681 |
public void respondMouseRelease(PInputEvent event) { getParent().removeChild(this); t.respondMouseRelease(pushParentNode(event,t)); } | public void respondMouseRelease(PInputEvent event) { if(getParent() != null) getParent().removeChild(this); t.respondMouseRelease(pushParentNode(event,t)); } | 3,235,682 |
final public Object next () throws NoSuchElementException { if (!hasNext) { throw new NoSuchElementException("advanced past end of list"); } Object o = enum.nextElement(); hasNext = enum.hasMoreElements(); return o; } | final public Object next () throws NoSuchElementException { if (!hasNext) { throw new NoSuchElementException("advanced past end of list"); } Object o = enum.nextElement(); hasNext = enum.hasMoreElements(); return o; } | 3,235,684 |
protected void setUp() throws Exception { mapper=new Model2PojosMapper(); p = new Project(new Long(1)); d1 = new Dataset(new Long(2)); d2 = new Dataset(new Long(3)); d3 = new Dataset(new Long(4)); i1 = new Image(new Long(5)); i2 = new Image(new Long(6)); i3 = new Image(new Long(7));// p.setDatasets(new HashS... | protected void setUp() throws Exception { mapper=new Model2PojosMapper(); p = new Project(new Long(1)); d1 = new Dataset(new Long(2)); d2 = new Dataset(new Long(3)); d3 = new Dataset(new Long(4)); i1 = new Image(new Long(5)); i2 = new Image(new Long(6)); i3 = new Image(new Long(7));// p.setDatasets(new HashS... | 3,235,685 |
public void removeNotes(Event e) { for (DisplayedNote removeMe : dd.getTree().getSelectedNotes()) { removeMe.deleteSelfAndChildren(); } } | public void removeNotes(Event e) { for (DisplayedNote removeMe : dd.getTree().getSelectedNotes()) { removeMe.deleteSelfAndChildren(); } } | 3,235,686 |
IObject findLink(IObject parent, IObject child) throws DSOutOfServiceException, DSAccessException { try { String table = null; Class klass = parent.getClass(); if (klass.equals(Category.class)) table = "CategoryImageLink"; else if (klass.equals(Dataset.cl... | IObject findLink(IObject parent, IObject child) throws DSOutOfServiceException, DSAccessException { try { String table = null; Class klass = parent.getClass(); if (klass.equals(Category.class)) table = "CategoryImageLink"; else if (klass.equals(Dataset.cl... | 3,235,687 |
List findLinks(IObject parent, List children) throws DSOutOfServiceException, DSAccessException { try { String table = null; Class klass = parent.getClass(); if (klass.equals(Category.class)) table = "CategoryImageLink"; else if (klass.equals(Dataset.clas... | List findLinks(IObject parent, List children) throws DSOutOfServiceException, DSAccessException { try { String table = null; Class klass = parent.getClass(); if (klass.equals(Category.class)) table = "CategoryImageLink"; else if (klass.equals(Dataset.clas... | 3,235,688 |
public RubyRegexpException(String msg) { super(msg); } | public RubyRegexpException(String msg) { super(msg); } | 3,235,690 |
public void load(RubyString fname, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); NODE savedCRef = ruby.getRubyCRef(); // TMP_PROTECT; if (wrap && ruby.getSecurityLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // Check_SafeStr(... | public void load(RubyString fname, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); NODE savedCRef = ruby.getRubyCRef(); // TMP_PROTECT; if (wrap && ruby.getSecurityLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // Check_SafeStr(... | 3,235,691 |
public void load(RubyString fname, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); NODE savedCRef = ruby.getRubyCRef(); // TMP_PROTECT; if (wrap && ruby.getSecurityLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // Check_SafeStr(... | public void load(RubyString fname, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); NODE savedCRef = ruby.getRubyCRef(); // TMP_PROTECT; if (wrap && ruby.getSecurityLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // Check_SafeStr(... | 3,235,692 |
public URL getResource(String name) { try { // NOTE: Tomcat4 needs a leading '/'. // If this doesn't work with your 2.2+ container, try commenting out the following line if (!name.startsWith("/")) name = "/" + name; URL u = _servletContext.getResource(name); if (u != null... | public URL getResource(String name) { try { // NOTE: Tomcat4 needs a leading '/'. // If this doesn't work with your 2.2+ container, try commenting out the following line if (!name.startsWith("/")) name = "/" + name; URL u = _servletContext.getResource(name); if (u != null... | 3,235,693 |
public URL getResource(String name) { try { // NOTE: Tomcat4 needs a leading '/'. // If this doesn't work with your 2.2+ container, try commenting out the following line if (!name.startsWith("/")) name = "/" + name; URL u = _servletContext.getResource(name); if (u != null... | public URL getResource(String name) { try { // NOTE: Tomcat4 needs a leading '/'. // If this doesn't work with your 2.2+ container, try commenting out the following line if (!name.startsWith("/")) name = "/" + name; URL u = _servletContext.getResource(name); if (u != null... | 3,235,694 |
public URL getResource(String name) { try { // NOTE: Tomcat4 needs a leading '/'. // If this doesn't work with your 2.2+ container, try commenting out the following line if (!name.startsWith("/")) name = "/" + name; URL u = _servletContext.getResource(name); if (u != null... | public URL getResource(String name) { try { // NOTE: Tomcat4 needs a leading '/'. // If this doesn't work with your 2.2+ container, try commenting out the following line if (!name.startsWith("/")) name = "/" + name; URL u = _servletContext.getResource(name); if (u != null... | 3,235,695 |
public URL getResource(String name) { try { // NOTE: Tomcat4 needs a leading '/'. // If this doesn't work with your 2.2+ container, try commenting out the following line if (!name.startsWith("/")) name = "/" + name; URL u = _servletContext.getResource(name); if (u != null... | public URL getResource(String name) { try { // NOTE: Tomcat4 needs a leading '/'. // If this doesn't work with your 2.2+ container, try commenting out the following line if (!name.startsWith("/")) name = "/" + name; URL u = _servletContext.getResource(name); if (u != null... | 3,235,696 |
public void actionPerformed(ActionEvent e) { long now = System.currentTimeMillis(); if (now - lastTypedCharTime > 2000) { if (!sendNotification) { // send cancel SparkManager.getMessageEventManager().sendCancelled... | public void actionPerformed(ActionEvent e) {long now = System.currentTimeMillis();if (now - lastTypedCharTime > 2000) {if (!sendNotification) {// send cancelSparkManager.getMessageEventManager().sendCancelledNotification(getParticipantJID(), threadID);sendNotification = true;}}} | 3,235,697 |
public void closeChatRoom() { super.closeChatRoom(); SparkManager.getMessageEventManager().removeMessageEventRequestListener(messageEventRequestListener); SparkManager.getChatManager().removeChat(this); SparkManager.getConnection().removePacketListener(this); } | public void closeChatRoom() { super.closeChatRoom(); SparkManager.getChatManager().removeChat(this); SparkManager.getConnection().removePacketListener(this); } | 3,235,698 |
public void insertUpdate(DocumentEvent e) { checkForText(e); lastTypedCharTime = System.currentTimeMillis(); // If the user pauses for more than two seconds, send out a new notice. if (sendNotification) { try { if (sendTypingNotification) { Sp... | public void insertUpdate(DocumentEvent e) { checkForText(e); lastTypedCharTime = System.currentTimeMillis(); // If the user pauses for more than two seconds, send out a new notice. if (sendNotification) { try { if (sendTypingNotification) { Sp... | 3,235,700 |
public IRubyObject execute(IRubyObject recv, IRubyObject[] args) { Method method = findMatchingMethod(args); if (method == null) { if (callSuper) { return recv.getRuntime().callSuper(args); } else { throw new ArgumentError(recv.getRuntime(), "wrong argumen... | public IRubyObject execute(IRubyObject recv, IRubyObject[] args) { Method method = findMatchingMethod(args); if (method == null) { if (callSuper) { return recv.getRuntime().callSuper(args); } else { throw new ArgumentError(recv.getRuntime(), "wrong argumen... | 3,235,701 |
protected void setUp() throws Exception { sr = new SaxReader("type.xml"); } | protected void setUp() throws Exception { sr = new SaxReader("type.xml"); } | 3,235,703 |
protected void tearDown() throws Exception { sr = null; } | protected void tearDown() throws Exception { sr = null; } | 3,235,704 |
public void testONE() { Set set = sr.parse(); log.info("Results of parse:"+set); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); Map h = new HashMap(); h.put("test", "this was a dynamic key test");... | public void testONE() { Set set = sr.parse(); log.info("Results of parse:"+set); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); Map h = new HashMap(); h.put("test", "this was a dynamic key test");... | 3,235,705 |
public void testONE() { Set set = sr.parse(); log.info("Results of parse:"+set); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); Map h = new HashMap(); h.put("test", "this was a dynamic key test");... | public void testONE() { Set set = sr.parse(); log.info("Results of parse:"+set); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); Map h = new HashMap(); h.put("test", "this was a dynamic key test");... | 3,235,706 |
public void testReal() throws Exception { SaxReader nsr = new SaxReader("Mappings.xml"); for (Iterator it = nsr.parse().iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); FileWriter fw = new FileWriter("/tmp/"+st.getId().repla... | public void testReal() throws Exception { SaxReader nsr = new SaxReader("Mappings.xml"); for (Iterator it = nsr.parse().iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); FileWriter fw = new FileWriter("/tmp/"+st.getId().repla... | 3,235,707 |
public void testWithWriting() throws Exception{ Set set = sr.parse(); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); FileWriter fw = new FileWriter("/tmp/"+st.getId().replaceAll("[.]","_")+".hbm.xml"... | public void testWithWriting() throws Exception{ Set set = sr.parse(); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); FileWriter fw = new FileWriter("/tmp/"+st.getId().replaceAll("[.]","_")+".hbm.xml"... | 3,235,708 |
public ToolBar(Registry registry, ImageInspectorManager manager, double magFactor) { setBorder(null); setLayout(new FlowLayout(FlowLayout.LEFT)); putClientProperty("JToolBar.isRollover", new Boolean(true)); zoomBar = new ZoomBar(this, registry, manager, magFactor); add(zoomBar); add(separator... | public ToolBar(Registry registry, ImageInspectorManager manager, double magFactor) { setBorder(null); setLayout(new FlowLayout(FlowLayout.LEFT)); putClientProperty("JToolBar.isRollover", new Boolean(true)); zoomBar = new ZoomBar(this, registry, manager, magFactor); add(zoomBar); add(separator... | 3,235,709 |
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case SAVE: saveDisplayOptions(); break; case RESET_DEFAULTS: resetDefaults(); break; ... | public void actionPerformed(ActionEvent e) { int index = -1; try { switch (index) { case SAVE: saveDisplayOptions(); break; case RESET_DEFAULTS: resetDefaults(); break; case GREY: case RGB: ... | 3,235,710 |
public void activateRenderingModel(int i) { Class c = getRendererClass(i); presentation.setModelPane(activate(c), true); QuantumPane qp = presentation.getQuantumPane(); if (i == GREY) { qp.setSelectionWavelengthsEnable(false); ChannelData[] channelData = getChann... | public void activateRenderingModel(int i) { Class c = getRendererClass(i); presentation.setModelPane(activate(c), true); QuantumPane qp = presentation.getQuantumPane(); if (i == GREY) { qp.setSelectionWavelengthsEnable(false); ChannelData[] channelData = getChann... | 3,235,712 |
public RenderingAgtUIF getReferenceFrame() { return presentation; } | public RenderingAgtUIF getReferenceFrame() { return presentation; } | 3,235,713 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.