bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public final char readChar() throws java.io.IOException { if (++curBuf.curPos >= curBuf.dataLen) { if (backupChars > 0) swapBuf(); else FillBuff(); }; char c = (char)((char)0xff & curBuf.buffer[curBuf.curPos]); // No need to update line numbers if we've already processed ...
public final char readChar() throws java.io.IOException { if (++curBuf.curPos >= curBuf.dataLen) { if (backupChars > 0) swapBuf(); else FillBuff(); }; char c = (char)((char)0xff & curBuf.buffer[curBuf.curPos]); // No need to update line numbers if we've already processed ...
3,237,039
private void swapBuf() { if (otherBuf == null) { curBuf = bufB; otherBuf = bufA; } else { Buffer tmp = curBuf; curBuf = otherBuf; otherBuf = tmp; } }
private void swapBuf() { if (otherBuf == null) { curBuf = bufB; otherBuf = bufA; } else { Buffer tmp = curBuf; curBuf = otherBuf; otherBuf = tmp; } }
3,237,040
public void nd_iter(NODE n) { u3 = n; }
public void nd_iter(NODE n) { u3 = n; }
3,237,041
public void execute(EvaluationState state, InstructionContext ctx) { LocalAsgnNode iVisited = (LocalAsgnNode)ctx; state.runtime.getCurrentContext().getCurrentScope().setValue(iVisited.getCount(), state.getResult()); }
public void execute(EvaluationState state, InstructionContext ctx) { LocalAsgnNode iVisited = (LocalAsgnNode)ctx; state.runtime.getCurrentContext().getCurrentScope().setValue(iVisited.getCount(), state.getResult()); }
3,237,042
private static RubyModule getEnclosingModule(EvaluationState state, Node node) { RubyModule enclosingModule = null; if (node instanceof Colon2Node) { state.begin(((Colon2Node) node).getLeftNode()); if (state.getResult() != null && !state.getResult().isNil()) { ...
private static RubyModule getEnclosingModule(EvaluationState state, Node node) { RubyModule enclosingModule = null; if (node instanceof Colon2Node) { state.begin(((Colon2Node) node).getLeftNode()); if (state.getResult() != null && !state.getResult().isNil()) { ...
3,237,043
protected void setUp() throws Exception { data = (OMEData) factory.getContext().getBean("data"); iPojos = factory.getPojosService(); iQuery = factory.getQueryService(); iUpdate = factory.getUpdateService(); try { iQuery.get(Experimenter.class,0l); ...
protected void setUp() throws Exception { data = (OMEData) factory.getContext().getBean("data"); iPojos = factory.getPojosService(); iQuery = factory.getQueryService(); iUpdate = factory.getUpdateService(); try { iQuery.get(Experimenter.class,0l); ...
3,237,044
protected void log(int level, String msg, Exception e) { super.log(level,msg,e); if ((level >= LogSource.WARNING) && hasTargets()) { _err.log("sys", LEVELS[level],msg,e); } }
protected void log(int level, String msg, Exception e) { super.log(level,msg,e); if ((level >= LogSource.NOTICE) && !hasTargets()) { _err.log("sys", LEVELS[level],msg,e); } }
3,237,045
public static void main(String[] args) { //@START int num = Integer.parseInt(args[0]); System.out.println("Ack(3," + num + "): " + Ack(3, num)); //@END }
public static void main(String[] args) { //@START int num = Integer.parseInt(args[0]); System.out.println("Ack(3," + num + "): " + Ack(3, num)); //@END }
3,237,046
final public Object build(BuildContext bc) throws BuildException { ArrayList strings = new ArrayList((elements.size())); ArrayList macros = new ArrayList((elements.size())); int[] ln = new int[elements.size()]; int[] cn = new int[elements.size()]; Stack iterStack = new Stack(); StringBu...
final public Object build(BuildContext bc) throws BuildException { ArrayList strings = new ArrayList((elements.size())); ArrayList macros = new ArrayList((elements.size())); int[] ln = new int[elements.size()]; int[] cn = new int[elements.size()]; Stack iterStack = new Stack(); StringBu...
3,237,047
public <T extends IObject> Map findAnnotations( @NotNull Class<T> rootNodeType, @NotNull @Validate(Long.class) Set<Long> rootNodeIds, @Validate(Long.class) Set<Long> annotatorIds, Map options);
public <T extends IObject> Map<Long, Set<? extends IObject>> findAnnotations( @NotNull Class<T> rootNodeType, @NotNull @Validate(Long.class) Set<Long> rootNodeIds, @Validate(Long.class) Set<Long> annotatorIds, Map options);
3,237,048
public void execute(EvaluationState state, InstructionContext ctx) { // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.NextJump); je.setPrimaryData(state.getResult()); je.setSecondaryData(ctx); state...
public void execute(EvaluationState state, InstructionContext ctx) { // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.NextJump); je.setPrimaryData(state.getResult()); je.setSecondaryData(ctx); state...
3,237,049
public void execute(EvaluationState state, InstructionContext ctx) { // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.RedoJump); je.setSecondaryData(ctx); throw je; }
public void execute(EvaluationState state, InstructionContext ctx) { // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.RedoJump); je.setSecondaryData(ctx); state.setCurrentException(je); }
3,237,050
public String toString(){ return "Category"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); }
public String toString(){ return "Category"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); }
3,237,051
private void resetAllFacades(String url){ String[] beans=SpringHarness.ctx.getBeanDefinitionNames(); for (int i=0;i<beans.length;i++) { HessianProxyFactoryBean fb = (HessianProxyFactoryBean) SpringHarness.ctx.getBean(SpringHarness.ctx.FACTORY_BEAN_PREFIX+beans[i]); String oldUrl = fb.getServic...
private void resetAllFacades(String url){ String[] beans=SpringHarness.ctx.getBeanDefinitionNames(); for (int i=0;i<beans.length;i++) { HessianProxyFactoryBean fb = (HessianProxyFactoryBean) SpringHarness.ctx.getBean(SpringHarness.ctx.FACTORY_BEAN_PREFIX+beans[i]); String oldUrl = fb.getServic...
3,237,052
private BufferedImage createScaledImage(Pixels pixels, RenderingDef def, Integer sizeX, Integer sizeY) { // Original sizes and thumbnail metadata int origSizeX = pixels.getSizeX(); int origSizeY = pixels.getSizeY(); // Lookup user's rendering definition if one is ...
private BufferedImage createScaledImage(Pixels pixels, RenderingDef def, Integer sizeX, Integer sizeY) { // Original sizes and thumbnail metadata int origSizeX = pixels.getSizeX(); int origSizeY = pixels.getSizeY(); // Lookup user's rendering definition if one is ...
3,237,059
void fireFilteredImageDataLoading(Set nodes) { Set ids = new HashSet(nodes.size()); Iterator i = nodes.iterator(); if (filterType == Browser.IN_DATASET_FILTER) { while (i.hasNext()) ids.add(new Long(((DatasetData) i.next()).getId())); currentLoader = new ...
void fireFilteredImageDataLoading(Set nodes) { Set ids = new HashSet(nodes.size()); Iterator i = nodes.iterator(); if (filterType == Browser.IN_DATASET_FILTER) { while (i.hasNext()) ids.add(new Long(((DatasetData) i.next()).getId())); currentLoader = new ...
3,237,060
void fireFilteredImageDataLoading(Set nodes) { Set ids = new HashSet(nodes.size()); Iterator i = nodes.iterator(); if (filterType == Browser.IN_DATASET_FILTER) { while (i.hasNext()) ids.add(new Long(((DatasetData) i.next()).getId())); currentLoader = new ...
void fireFilteredImageDataLoading(Set nodes) { Set ids = new HashSet(nodes.size()); Iterator i = nodes.iterator(); if (filterType == Browser.IN_DATASET_FILTER) { while (i.hasNext()) ids.add(new Long(((DatasetData) i.next()).getId())); currentLoader = new ...
3,237,061
void fireFilteredImageDataLoading(Set nodes) { Set ids = new HashSet(nodes.size()); Iterator i = nodes.iterator(); if (filterType == Browser.IN_DATASET_FILTER) { while (i.hasNext()) ids.add(new Long(((DatasetData) i.next()).getId())); currentLoader = new ...
void fireFilteredImageDataLoading(Set nodes) { Set ids = new HashSet(nodes.size()); Iterator i = nodes.iterator(); if (filterType == Browser.IN_DATASET_FILTER) { while (i.hasNext()) ids.add(new Long(((DatasetData) i.next()).getId())); currentLoader = new ...
3,237,062
void fireLeavesLoading() { Object ho = getLastSelectedDisplay().getUserObject(); long id = 0; Class nodeType = null; if (ho instanceof DatasetData) { nodeType = DatasetData.class; id = ((DatasetData) ho).getId(); } else if (ho instanceof CategoryData) { ...
void fireLeavesLoading() { TreeImageDisplay node = getLastSelectedDisplay(); if (node instanceof TreeImageNode) return; Object ho = node.getUserObject(); long id = 0; Class nodeType = null; if (ho instanceof DatasetData) { nodeType = DatasetData.class; id = ((Dat...
3,237,063
void fireLeavesLoading() { Object ho = getLastSelectedDisplay().getUserObject(); long id = 0; Class nodeType = null; if (ho instanceof DatasetData) { nodeType = DatasetData.class; id = ((DatasetData) ho).getId(); } else if (ho instanceof CategoryData) { ...
void fireLeavesLoading() { Object ho = getLastSelectedDisplay().getUserObject(); long id = 0; Class nodeType = null; if (ho instanceof DatasetData) { nodeType = DatasetData.class; id = ((DatasetData) ho).getId(); } else if (ho instanceof CategoryData) { ...
3,237,064
void viewDataObject() { TreeImageDisplay d = getLastSelectedDisplay(); if (d == null) return; if (d.getUserObject() instanceof ImageData) { ViewCmd cmd = new ViewCmd(parent); cmd.execute(); } }
void viewDataObject() { TreeImageDisplay d = getLastSelectedDisplay(); if (d == null) return; if (d.getUserObject() instanceof ImageData) { ViewCmd cmd = new ViewCmd(parent); cmd.execute(); } }
3,237,065
public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (propName.equals(Browser.SELECTED_DISPLAY_PROPERTY)) handleBrowserSelectedDisplay(pce); else if (propName.equals(ClipBoard.LOCALIZE_IMAGE_DISPLAY)) { ImageDisplay node = (...
public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (propName.equals(Browser.SELECTED_DISPLAY_PROPERTY)) handleBrowserSelectedDisplay(pce); else if (propName.equals(ClipBoard.LOCALIZE_IMAGE_DISPLAY)) { ImageDisplay node = (...
3,237,067
public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (propName.equals(Browser.SELECTED_DISPLAY_PROPERTY)) handleBrowserSelectedDisplay(pce); else if (propName.equals(ClipBoard.LOCALIZE_IMAGE_DISPLAY)) { ImageDisplay node = (...
public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (propName.equals(Browser.SELECTED_DISPLAY_PROPERTY)) handleBrowserSelectedDisplay(pce); else if (name.equals(ClipBoard.LOCALIZE_IMAGE_DISPLAY)) { ImageDisplay node = (Imag...
3,237,068
public RubyObject begin(RubyFixnum index) { if (outOfBounds(index)) { return getRuby().getNil(); } return RubyFixnum.newFixnum(getRuby(), begin[(int) index.getValue()]); }
public RubyObject begin(RubyFixnum index) { if (outOfBounds(index)) { return getRuby().getNil(); } return RubyFixnum.newFixnum(getRuby(), begin[(int) index.getLongValue()]); }
3,237,070
public RubyObject end(RubyFixnum index) { if (outOfBounds(index)) { return getRuby().getNil(); } return RubyFixnum.newFixnum(getRuby(), end[(int) index.getValue()]); }
public RubyObject end(RubyFixnum index) { if (outOfBounds(index)) { return getRuby().getNil(); } return RubyFixnum.newFixnum(getRuby(), end[(int) index.getLongValue()]); }
3,237,071
private JPanel builPermissionPanel() { permissionPanel = new JPanel(); permissionPanel.setLayout(new GridBagLayout()); return permissionPanel; }
private JPanel builPermissionPanel() { permissionPanel = new JPanel(); permissionPanel.setLayout(new BorderLayout()); return permissionPanel; }
3,237,072
private JPanel buildContentPanel() { JPanel content = new JPanel(); double[][] tl = {{TableLayout.PREFERRED, TableLayout.FILL}, //columns {TableLayout.PREFERRED, 5, 0, 100} }; //rows TableLayout layout = new TableLayout(tl); content.setLayout(layout); content.setBorder(...
private JPanel buildContentPanel() { JPanel content = new JPanel(); double[][] tl = {{TableLayout.PREFERRED, TableLayout.FILL}, //columns {TableLayout.PREFERRED, 5, 0, 100} }; //rows TableLayout layout = new TableLayout(tl); content.setLayout(layout); content.setBorder(...
3,237,073
private void buildGUI() { setBorder(new EmptyBorder(5, 5, 5, 5)); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setOpaque(true); add(UIUtilities.buildComponentPanel(titleLabel)); add(new JSeparator()); bodyPanel = buildContentPanel(); bodyPanel.setBorder(Borde...
private void buildGUI() { setBorder(new EmptyBorder(5, 5, 5, 5)); setLayout(new BorderLayout()); setOpaque(true); add(UIUtilities.buildComponentPanel(titleLabel)); add(new JSeparator()); bodyPanel = buildContentPanel(); bodyPanel.setBorder(BorderFactory.createEmpt...
3,237,074
private void buildGUI() { setBorder(new EmptyBorder(5, 5, 5, 5)); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setOpaque(true); add(UIUtilities.buildComponentPanel(titleLabel)); add(new JSeparator()); bodyPanel = buildContentPanel(); bodyPanel.setBorder(Borde...
private void buildGUI() { setBorder(new EmptyBorder(5, 5, 5, 5)); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setOpaque(true); add(UIUtilities.buildComponentPanel(titleLabel)); add(new JSeparator()); bodyPanel = buildContentPanel(); bodyPanel.setBorder(Borde...
3,237,075
void displayDetails(Map details, PermissionData permission) { permissionPanel.removeAll(); if (details != null) { GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.WEST; c.gridwidth = GridBagConstraints.REMAINDER; //end row ...
void displayDetails(Map details, PermissionData permission) { permissionPanel.removeAll(); if (details != null) { GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.WEST; c.gridwidth = GridBagConstraints.REMAINDER; //end row ...
3,237,076
void displayDetails(Map details, PermissionData permission) { permissionPanel.removeAll(); if (details != null) { GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.WEST; c.gridwidth = GridBagConstraints.REMAINDER; //end row ...
void displayDetails(Map details, PermissionData permission) { permissionPanel.removeAll(); if (details != null) { GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.WEST; c.gridwidth = GridBagConstraints.REMAINDER; //end row ...
3,237,077
void setAreas(String name, String description, String title, boolean isWritable) { nameArea.setEnabled(isWritable); nameArea.getDocument().removeDocumentListener(nameAreaListener); nameArea.setText(name); nameArea.getDocument().addDocumentListener(nameAreaListener); ...
void setAreas(String name, String description, String title, boolean isWritable) { nameArea.setEnabled(isWritable); nameArea.getDocument().removeDocumentListener(nameAreaListener); nameArea.setText(name); nameArea.getDocument().addDocumentListener(nameAreaListener); ...
3,237,079
public int getChannelFamily(int w) { rwl.readLock().lock(); try { errorIfInvalidState(); ChannelBinding[] cb = renderer.getChannelBindings(); return QuantumFactory.convertFamilyType(cb[w].getFamily()); } finally { rwl.readLock().unlock(); } ...
public Family getChannelFamily(int w) { rwl.readLock().lock(); try { errorIfInvalidState(); ChannelBinding[] cb = renderer.getChannelBindings(); return QuantumFactory.convertFamilyType(cb[w].getFamily()); } finally { rwl.readLock().unlock(); ...
3,237,081
public int getChannelFamily(int w) { rwl.readLock().lock(); try { errorIfInvalidState(); ChannelBinding[] cb = renderer.getChannelBindings(); return QuantumFactory.convertFamilyType(cb[w].getFamily()); } finally { rwl.readLock().unlock(); } ...
public int getChannelFamily(int w) { rwl.readLock().lock(); try { errorIfInvalidState(); ChannelBinding[] cb = renderer.getChannelBindings(); return cb[w].getFamily(); } finally { rwl.readLock().unlock(); } }
3,237,082
public int getModel() { rwl.readLock().lock(); try { errorIfNullRenderingDef(); return RenderingDefConstants.convertType(rendDefObj.getModel()); } finally { rwl.readLock().unlock(); } }
public RenderingModel getModel() { rwl.readLock().lock(); try { errorIfNullRenderingDef(); return RenderingDefConstants.convertType(rendDefObj.getModel()); } finally { rwl.readLock().unlock(); } }
3,237,083
public int getModel() { rwl.readLock().lock(); try { errorIfNullRenderingDef(); return RenderingDefConstants.convertType(rendDefObj.getModel()); } finally { rwl.readLock().unlock(); } }
public int getModel() { rwl.readLock().lock(); try { errorIfNullRenderingDef(); return rendDefObj.getModel(); } finally { rwl.readLock().unlock(); } }
3,237,084
public int[] getRGBA(int w) { rwl.readLock().lock(); try { errorIfInvalidState(); int[] rgba = new int[4]; ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba,...
public int[] getRGBA(int w) { rwl.readLock().lock(); try {errorIfInvalidState();int[] rgba = new int[4];ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba, 0, copy, 0, rgba.length); // return copy;// NOTE: The rgba is supposed...
3,237,085
public int[] getRGBA(int w) { rwl.readLock().lock(); try { errorIfInvalidState(); int[] rgba = new int[4]; ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba,...
publicint[]getRGBA(intw){rwl.readLock().lock();try{errorIfInvalidState();int[]rgba=newint[4];ChannelBinding[]cb=renderer.getChannelBindings();//int[]rgba=cb[w].getColor,copy=newint[rgba.length];//System.arraycopy(rgba,0,copy,0,rgba.length);//returncopy;//NOTE:Thergbaissupposedtoberead-only;howeverwemakea//copytobeonthe...
3,237,086
public void load() { rwl.writeLock().lock(); try { errorIfNullPixels(); /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); ...
public void load() { rwl.writeLock().lock(); try { errorIfNullPixels(); /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); ...
3,237,087
public void setModel(int model) { rwl.writeLock().lock(); try { errorIfInvalidState(); renderer.setModel(model); } finally { rwl.writeLock().unlock(); } }
public void setModel(RenderingModel model) { rwl.writeLock().lock(); try { errorIfInvalidState(); renderer.setModel(model); } finally { rwl.writeLock().unlock(); } }
3,237,089
public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction) { rwl.writeLock().lock(); try { errorIfInvalidState(); renderer.setQuantizationMap(w, family, coefficient, noiseReduction); } finally { rwl.writeL...
public void setQuantizationMap(int w, Family family, double coefficient, boolean noiseReduction) { rwl.writeLock().lock(); try { errorIfInvalidState(); renderer.setQuantizationMap(w, family, coefficient, noiseReduction); } finally { rwl.wri...
3,237,090
public final Object evaluate(Context data) { try { ByteArrayOutputStream os = new ByteArrayOutputStream(512); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,data); fw.flush(); return os.toString("UTF8"); } catch (IOException e) { _log.exception(e); _...
public final Object evaluate(Context data) { try { ByteArrayOutputStream os = new ByteArrayOutputStream(512); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,data); fw.flush(); return os.toString("UTF8"); } catch (IOException e) { _log.exception(e); _...
3,237,091
final Object getValue(Context context) throws InvalidContextException { try { return context.getTool(_names); } catch (Exception e) { Engine.log.exception(e); String warning = "Variable: unable to access " + this + ";"; throw new InvalidContextException(warning); ...
final Object getValue(Context context) throws ContextException { try { return context.getTool(_names); } catch (Exception e) { Engine.log.exception(e); String warning = "Variable: unable to access " + this + ";"; throw new InvalidContextException(warning); } }
3,237,092
final Object getValue(Context context) throws InvalidContextException { try { return context.getTool(_names); } catch (Exception e) { Engine.log.exception(e); String warning = "Variable: unable to access " + this + ";"; throw new InvalidContextException(warning); ...
final Object getValue(Context context) throws InvalidContextException { try { return context.getTool(_names); } catch (Exception e) { Engine.log.exception(e); String warning = "Variable: unable to access " + this + ";"; throw new ContextException(warning); } }
3,237,093
final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.g...
final void setValue(Context context, Object newValue) throws ContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.getClass...
3,237,094
final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.g...
final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new ContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.getClass...
3,237,095
final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.g...
final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.g...
3,237,096
public static RubyModule createFileTestModule(IRuby runtime) { RubyModule fileTestModule = runtime.defineModule("FileTest"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyFileTest.class); fileTestModule.defineSingletonMethod("file?", callbackFactory.getSingletonMethod("file_p", ...
public static RubyModule createFileTestModule(IRuby runtime) { RubyModule fileTestModule = runtime.defineModule("FileTest"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyFileTest.class); fileTestModule.defineSingletonMethod("file?", callbackFactory.getSingletonMethod("file_p", ...
3,237,097
public static RubyModule createFileTestModule(IRuby runtime) { RubyModule fileTestModule = runtime.defineModule("FileTest"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyFileTest.class); fileTestModule.defineSingletonMethod("file?", callbackFactory.getSingletonMethod("file_p", ...
public static RubyModule createFileTestModule(IRuby runtime) { RubyModule fileTestModule = runtime.defineModule("FileTest"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyFileTest.class); fileTestModule.defineSingletonMethod("file?", callbackFactory.getSingletonMethod("file_p", ...
3,237,098
public static RubyBoolean directory_p(IRubyObject recv, RubyString filename) { return recv.getRuntime().newBoolean(newFile(filename).isDirectory()); }
public static RubyBoolean directory_p(IRubyObject recv, IRubyObject filename) { return recv.getRuntime().newBoolean(newFile(filename).isDirectory()); }
3,237,099
public static IRubyObject exist_p(IRubyObject recv, RubyString filename) { return recv.getRuntime().newBoolean(newFile(filename).exists()); }
public static IRubyObject exist_p(IRubyObject recv, IRubyObject filename) { return recv.getRuntime().newBoolean(newFile(filename).exists()); }
3,237,100
public static RubyBoolean file_p(IRubyObject recv, RubyString filename) { JRubyFile file = newFile(filename); return filename.getRuntime().newBoolean(file.isFile()); }
public static RubyBoolean file_p(IRubyObject recv, IRubyObject filename) { JRubyFile file = newFile(filename); return filename.getRuntime().newBoolean(file.isFile()); }
3,237,101
private static JRubyFile newFile(RubyString path) { return JRubyFile.create(path.getRuntime().getCurrentDirectory(), path.toString()); }
private static JRubyFile newFile(RubyString path) { return JRubyFile.create(path.getRuntime().getCurrentDirectory(), path.toString()); }
3,237,102
public static RubyBoolean readable_p(IRubyObject recv, RubyString filename) { return filename.getRuntime().newBoolean(newFile(filename).canRead()); }
public static RubyBoolean readable_p(IRubyObject recv, IRubyObject filename) { return filename.getRuntime().newBoolean(newFile(filename).canRead()); }
3,237,103
public static IRubyObject size(IRubyObject recv, RubyString filename) { JRubyFile file = newFile(filename); if (!file.exists()) { throw recv.getRuntime().newErrnoENOENTError("No such file: " + filename); } return filename.getRuntime().newFixnum(file.length()); }
public static IRubyObject size(IRubyObject recv, IRubyObject filename) { JRubyFile file = newFile(filename); if (!file.exists()) { throw recv.getRuntime().newErrnoENOENTError("No such file: " + filename); } return filename.getRuntime().newFixnum(file.length()); }
3,237,104
public static RubyBoolean writable_p(IRubyObject recv, RubyString filename) { return filename.getRuntime().newBoolean(newFile(filename).canWrite()); }
public static RubyBoolean writable_p(IRubyObject recv, IRubyObject filename) { return filename.getRuntime().newBoolean(newFile(filename).canWrite()); }
3,237,105
public static RubyBoolean zero_p(IRubyObject recv, RubyString filename) { JRubyFile file = newFile(filename); return filename.getRuntime().newBoolean(file.exists() && file.length() == 0L); }
public static RubyBoolean zero_p(IRubyObject recv, IRubyObject filename) { JRubyFile file = newFile(filename); return filename.getRuntime().newBoolean(file.exists() && file.length() == 0L); }
3,237,106
void onCurveChange() { String f = model.getFamily(); gammaSlider.setEnabled(!(f.equals(RendererModel.LINEAR) || f.equals(RendererModel.LOGARITHMIC))); graphicsPane.onCurveChange(); }
void onCurveChange() { String f = model.getFamily(); gammaSlider.setEnabled(!(f.equals(RendererModel.LINEAR) || f.equals(RendererModel.LOGARITHMIC))); graphicsPane.onCurveChange(); }
3,237,107
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWant...
public static Criteria buildExtendedCategoryGroupCriteria(int groupID, int userID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); ...
3,237,108
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWant...
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID, userID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c...
3,237,109
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWant...
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("CategoryList", "Name"); ...
3,237,110
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWant...
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWant...
3,237,111
public IRubyObject inspect() { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; StringBuffer sb = new StringBuffer(100); sb.append("#<").append(getMetaClass().getName()).append(' '); for (int i = 0; i < m...
public IRubyObject inspect() { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; StringBuffer sb = new StringBuffer(100); sb.append("#<struct ").append(getMetaClass().getName()).append(' '); for (int i = 0...
3,237,112
public IRubyObject to_s() { return getRuntime().newString("#<" + getMetaClass().getName() + ">"); }
public IRubyObject to_s() { return inspect(); }
3,237,113
private String[] printError() { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(2048); PrintStream stream = new PrintStream(byteArrayOutputStream); exception.printBacktrace(stream); String output = new String(byteArrayOutputStream.toByteArray()); String[] lines = output.split("\n"); retur...
private String[] printError() { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(2048); PrintStream stream = new PrintStream(byteArrayOutputStream); exception.printBacktrace(stream); String output = new String(byteArrayOutputStream.toByteArray()); String[] lines = output.split("\n"); retur...
3,237,116
public void setUp() { interpreter = new MockInterpreter(); exception = new RubyException(interpreter, null, "test"); }
public void setUp() { interpreter = new MockInterpreter(); exception = new RubyException(interpreter, null, "test"); }
3,237,117
public void deleteSelfAndChildren() { for (DisplayedNote child : children) { child.deleteSelfAndChildren(); } treeNode.dispose(); if (tab != null) tab.dispose(); note.getParent().removeNote(note); }
public void deleteSelfAndChildren() { for (DisplayedNote child : children) { child.deleteSelfAndChildren(); } treeNode.dispose(); if (tab != null) tab.dispose(); note.getParent().removeNote(note); }
3,237,118
public void addProvider(Provider p, String pType) throws InitException { String name = pType; if (pType == null || pType.equals("")) pType = p.getType(); p.init(this, _config); _providers.put(pType, p); _log.info("Loaded provider " + p); if (!pType.equals(p.getType())) _...
public void addProvider(Provider p, String pType) throws InitException { if (pType == null || pType.equals("")) pType = p.getType(); p.init(this, _config); _providers.put(pType, p); _log.info("Loaded provider " + p); if (!pType.equals(p.getType())) _log.info("Provider na...
3,237,119
private Workspace() { MainWindow mainWindow = SparkManager.getMainWindow(); // Add MainWindow listener mainWindow.addMainWindowListener(new MainWindowListener() { public void shutdown() { // Close all Chats. final Iterator chatRooms = SparkManager.getCha...
workspacePane.setActiveButtonBold(true); cardLayout = new CardLayout(); cardPanel = new JPanel(cardLayout); cardPanel.setOpaque(false); cardPanel.add(WORKSPACE_PANE, workspacePane); workspacePane.setActiveButtonBold(true); cardLayout = new CardLayout(); cardPanel = new JPanel(cardLayout); cardPanel.setOpaque(false)...
3,237,120
private Workspace() { MainWindow mainWindow = SparkManager.getMainWindow(); // Add MainWindow listener mainWindow.addMainWindowListener(new MainWindowListener() { public void shutdown() { // Close all Chats. final Iterator chatRooms = SparkManager.getCha...
private Workspace() { MainWindow mainWindow = SparkManager.getMainWindow(); // Add MainWindow listener mainWindow.addMainWindowListener(new MainWindowListener() { public void shutdown() { // Close all Chats. final Iterator chatRooms = SparkManager.getCha...
3,237,121
private Workspace() { MainWindow mainWindow = SparkManager.getMainWindow(); // Add MainWindow listener mainWindow.addMainWindowListener(new MainWindowListener() { public void shutdown() { // Close all Chats. final Iterator chatRooms = SparkManager.getCha...
private Workspace() { MainWindow mainWindow = SparkManager.getMainWindow(); // Add MainWindow listener mainWindow.addMainWindowListener(new MainWindowListener() { public void shutdown() { // Close all Chats. final Iterator chatRooms = SparkManager.getCha...
3,237,122
public void onComponentStateChange(boolean b) { view.onComponentStateChange(b); }
publicvoidonComponentStateChange(booleanb){view.onComponentStateChange(b);}
3,237,123
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 53; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 53; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
3,237,124
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 53; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 53; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
3,237,125
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 53; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 53; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
3,237,126
final private void ForStatement() throws ParseException { jj_consume_token(FOR); jj_consume_token(LPAREN); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case ASSERT: case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FALSE: case FINAL: case FLOAT: case INT: case LONG: case NEW: case NULL...
final private void ForStatement() throws ParseException { jj_consume_token(FOR); jj_consume_token(LPAREN); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case ASSERT: case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FALSE: case FINAL: case FLOAT: case INT: case LONG: case NEW: case NULL...
3,237,127
final private void MethodDeclarator() throws ParseException { _sFunction = "." + new String(getToken(1).image); Identifier(); FormalParameters(); _sFunction += _sParameter; label_20: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACKET: break; default: jj_la1[45] = jj_gen;...
final private void MethodDeclarator() throws ParseException { _sFunction = "." + new String(getToken(1).image); Identifier(); FormalParameters(); _sFunction += _sParameter; label_20: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACKET: break; default: jj_la1[45] = jj_gen;...
3,237,128
final private void Name() throws ParseException { Identifier(); _sName = new String(getToken(0).image); label_25: while (true) { if (jj_2_15(2)) { } else { break label_25; } jj_consume_token(DOT); Identifier(); _sName += "." + (new String(getToken(0).image)); } }
final private void Name() throws ParseException { Identifier(); _sName = new String(getToken(0).image); label_25: while (true) { if (jj_2_15(2)) { } else { break label_25; } jj_consume_token(DOT); Identifier(); _sName += "." + (new String(getToken(0).image)); } }
3,237,129
final private void Name() throws ParseException { Identifier(); _sName = new String(getToken(0).image); label_25: while (true) { if (jj_2_15(2)) { } else { break label_25; } jj_consume_token(DOT); Identifier(); _sName += "." + (new String(getToken(0).image)); } }
final private void Name() throws ParseException { Identifier(); _sName = new String(getToken(0).image); label_25: while (true) { if (jj_2_15(2)) { } else { break label_25; } jj_consume_token(DOT); Identifier(); _sName += "." + (new String(getToken(0).image)); } }
3,237,130
final private void PackageDeclaration() throws ParseException { jj_consume_token(PACKAGE); Name(); jj_consume_token(SEMICOLON); getToken(0); getToken(0); _sPackage = (new String(_sName)) + "."; }
final private void PackageDeclaration() throws ParseException { jj_consume_token(PACKAGE); Name(); jj_consume_token(SEMICOLON); getToken(0); getToken(0); _sPackage = (new String(_sName)) + "."; }
3,237,131
final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_...
final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_...
3,237,132
final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_...
final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_...
3,237,133
final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_...
final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_...
3,237,134
final private void Type() throws ParseException { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FLOAT: case INT: case LONG: case SHORT: PrimitiveType(); _sName = (new String(getToken(0).image)); break; case ASSERT: case IDENTIFIER: ...
final private void Type() throws ParseException { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FLOAT: case INT: case LONG: case SHORT: PrimitiveType(); _sName = (new String(getToken(0).image)); break; case ASSERT: case IDENTIFIER: ...
3,237,135
final private void UnmodifiedClassDeclaration() throws ParseException { String sOldClass = _sClass; int oldFunctions = _functions; if (!_sClass.equals("")) { _sClass += "."; } _sClass += new String(getToken(2).image); jj_consume_token(CLASS); Identifier(); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { ca...
final private void UnmodifiedClassDeclaration() throws ParseException { String sOldClass = _sClass; int oldFunctions = _functions; if (!_sClass.equals("")) { _sClass += "."; } _sClass += new String(getToken(2).image); jj_consume_token(CLASS); Identifier(); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { ca...
3,237,136
final private void UnmodifiedInterfaceDeclaration() throws ParseException { String sOldClass = _sClass; int oldFunctions = _functions; if (!_sClass.equals("")) { _sClass += "."; } _sClass += new String(getToken(2).image); jj_consume_token(INTERFACE); Identifier(); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)...
final private void UnmodifiedInterfaceDeclaration() throws ParseException { String sOldClass = _sClass; int oldFunctions = _functions; if (!_sClass.equals("")) { _sClass += "."; } _sClass += new String(getToken(2).image); jj_consume_token(INTERFACE); Identifier(); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)...
3,237,137
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
3,237,138
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
3,237,139
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
3,237,140
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
3,237,141
private void buildGUI(int sizeX, int sizeY, int sizeZ) { //add(buildDimsPanel(sizeX, sizeY, sizeZ), BorderLayout.WEST); add(buildTable(sizeX, sizeY, sizeZ)); add(buildSliderPanel()); }
private void buildGUI(int sizeX, int sizeY, int sizeZ) { //add(buildDimsPanel(sizeX, sizeY, sizeZ), BorderLayout.WEST); add(buildTable(sizeX, sizeY, sizeZ)); add(buildSliderPanel()); }
3,237,142
private JPanel buildSliderPanel() { JPanel p = new JPanel(), field = new JPanel(), slider = new JPanel(); slider.setLayout(null); slider.setOpaque(false); slider.setPreferredSize(DIM); slider.setSize(DIM); zSlider.setPreferredSize(DIM); zSlider.setBounds(0, 0, PANEL_WIDTH, PANEL_HEIGHT); slider.add(zSlider); ...
private JPanel buildSliderPanel() { JPanel p = new JPanel(), field = new JPanel(), slider = new JPanel(); slider.setLayout(null); slider.setOpaque(false); slider.setPreferredSize(DIM); slider.setSize(DIM); zSlider.setPreferredSize(DIM); zSlider.setBounds(0, 0, PANEL_WIDTH, PANEL_HEIGHT); slider.add(zSlider); ...
3,237,143
private JPanel buildSliderPanel() { JPanel p = new JPanel(), field = new JPanel(), slider = new JPanel(); slider.setLayout(null); slider.setOpaque(false); slider.setPreferredSize(DIM); slider.setSize(DIM); zSlider.setPreferredSize(DIM); zSlider.setBounds(0, 0, PANEL_WIDTH, PANEL_HEIGHT); slider.add(zSlider); ...
private JPanel buildSliderPanel() { JPanel p = new JPanel(), field = new JPanel(), slider = new JPanel(); slider.setLayout(null); slider.setOpaque(false); slider.setPreferredSize(DIM); slider.setSize(DIM); zSlider.setPreferredSize(DIM); zSlider.setBounds(0, 0, PANEL_WIDTH, PANEL_HEIGHT); slider.add(zSlider); ...
3,237,144
private JPanel buildTable(int sizeX, int sizeY, int sizeZ) { JPanel p = new JPanel(); JTable table = new TableComponent(1, 2); tableLayout(table); table.setValueAt(buildDimsPanel(sizeX, sizeY, sizeZ), 0, 0); table.setValueAt(new JLabel(""), 0, 1); p.add(table); p.setOpaque(false); return p; }
private JPanel buildTable(int sizeX, int sizeY, int sizeZ) { JPanel p = new JPanel(); JTable table = new TableComponent(1, 2); tableLayout(table); table.setValueAt(buildDimsPanel(sizeX, sizeY, sizeZ), 0, 0); table.setValueAt(new JLabel(""), 0, 1); p.add(table); p.setOpaque(false); return p; }
3,237,145
private JPanel buildTable(int sizeX, int sizeY, int sizeZ) { JPanel p = new JPanel(); JTable table = new TableComponent(1, 2); tableLayout(table); table.setValueAt(buildDimsPanel(sizeX, sizeY, sizeZ), 0, 0); table.setValueAt(new JLabel(""), 0, 1); p.add(table); p.setOpaque(false); return p; }
private JPanel buildTable(int sizeX, int sizeY, int sizeZ) { JPanel p = new JPanel(); JTable table = new TableComponent(1, 2); tableLayout(table); table.setValueAt(buildDimsPanel(sizeX, sizeY, sizeZ), 0, 0); table.setValueAt(new JLabel(""), 0, 1); p.add(table); p.setOpaque(false); return p; }
3,237,146
private void initSlider(int sizeZ, int z) { zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z); zSlider.setToolTipText("Move the slider to navigate across Z stack"); zSlider.setMinorTickSpacing(1); zSlider.setMajorTickSpacing(10); zSlider.setPaintTicks(true); zSlider.setOpaque(false); Hashtable labelTable =...
private void initSlider(int sizeZ, int z) { zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z); zSlider.setToolTipText("Move the slider to navigate across Z stack"); zSlider.setMinorTickSpacing(1); zSlider.setMajorTickSpacing(10); zSlider.setPaintTicks(true); zSlider.setOpaque(false); Hashtable labelTable =...
3,237,147
private void initSlider(int sizeZ, int z) { zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z); zSlider.setToolTipText("Move the slider to navigate across Z stack"); zSlider.setMinorTickSpacing(1); zSlider.setMajorTickSpacing(10); zSlider.setPaintTicks(true); zSlider.setOpaque(false); Hashtable labelTable =...
private void initSlider(int sizeZ, int z) { zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z); zSlider.setToolTipText("Move the slider to navigate across Z stack"); zSlider.setMinorTickSpacing(1); zSlider.setMajorTickSpacing(10); zSlider.setPaintTicks(true); zSlider.setOpaque(false); Hashtable labelTable =...
3,237,148
private void initSlider(int sizeZ, int z) { zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z); zSlider.setToolTipText("Move the slider to navigate across Z stack"); zSlider.setMinorTickSpacing(1); zSlider.setMajorTickSpacing(10); zSlider.setPaintTicks(true); zSlider.setOpaque(false); Hashtable labelTable =...
private void initSlider(int sizeZ, int z) { zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z); zSlider.setToolTipText("Move the slider to navigate across Z stack"); zSlider.setMinorTickSpacing(1); zSlider.setMajorTickSpacing(10); zSlider.setPaintTicks(true); zSlider.setOpaque(false); Hashtable labelTable =...
3,237,149
private void initTextField(int sizeZ, int z) { zField = new JTextField(""+z, (""+sizeZ).length()); zField.setForeground(NavigationPalette.STEELBLUE); zField.setToolTipText("Enter a Z point"); }
private void initTextField(int sizeZ, int z) { zField = new JTextField(""+z, (""+sizeZ).length()); zField.setForeground(NavigationPalette.STEELBLUE); zField.setToolTipText("Enter a Z point"); }
3,237,150
private void initTextField(int sizeZ, int z) { zField = new JTextField(""+z, (""+sizeZ).length()); zField.setForeground(NavigationPalette.STEELBLUE); zField.setToolTipText("Enter a Z point"); }
private void initTextField(int sizeZ, int z) { zField = new JTextField(""+z, (""+sizeZ).length()); zField.setForeground(NavigationPalette.STEELBLUE); zField.setToolTipText("Enter a Z point"); }
3,237,151