bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch (IOException e) { ... | public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, context.getEncoding()); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch (IO... | 3,234,290 |
public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch (IOException e) { ... | public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString(context.getEncoding()); } catch (IO... | 3,234,291 |
ClipBoardModel(HiViewer parentModel) { if (parentModel == null) throw new NullPointerException("No parent model."); this.parentModel = parentModel; annotatedObjectID = -1; annotatedObjectIndex = -1; annotationStatus = INITIAL; } | ClipBoardModel(HiViewer parentModel) { if (parentModel == null) throw new NullPointerException("No parent model."); this.parentModel = parentModel; annotatedObjectID = -1; annotatedObjectIndex = -1; annotationStatus = INITIAL; } | 3,234,292 |
void setAnnotations(Map map) { if (map == null) throw new NullPointerException("No annotations"); HashMap sortedAnnotations = new HashMap(); Set set; Integer index; Iterator i = map.keySet().iterator(); Iterator j; AnnotationData annotation; Integer ownerI... | void setAnnotations(Map map) { if (map == null) throw new NullPointerException("No annotations"); HashMap sortedAnnotations = new HashMap(); Set set; Integer index; Iterator i = map.keySet().iterator(); Iterator j; AnnotationData annotation; Integer ownerI... | 3,234,293 |
public void onDataObjectSave(DataObject data, int operation) { int state = model.getState(); if (operation == REMOVE_OBJECT && state != SAVE) throw new IllegalStateException("This method cannot be " + "invoked in the SAVE state"); switch (state) { cas... | publicvoidonDataObjectSave(DataObjectdata,intoperation){intstate=model.getState();if(operation==REMOVE_OBJECT&&state!=SAVE)thrownewIllegalStateException("Thismethodcannotbe"+"invokedintheSAVEstate");switch(state){caseDISCARDED:thrownewIllegalStateException("Thismethodcannotbe"+"invokedintheDISCARDEDstate");}if(data==nu... | 3,234,295 |
public void removeObject(DataObject object) { int state = model.getState(); if (state != NEW && state != READY) throw new IllegalStateException("This method should only be " + "invoked in the NEW or READY state."); model.fireDataObjectDeletion(object); fi... | public void removeObject(DataObject object) { int state = model.getState(); if (state != NEW && state != READY) throw new IllegalStateException("This method should only be " + "invoked in the NEW or READY state."); model.fireDataObjectDeletion(object); fi... | 3,234,296 |
public void showClassifier(ImageData object, int mode) { if (model.getState() != READY) throw new IllegalStateException("This method should only be " + "invoked in the READY state."); if (object == null) throw new IllegalArgumentException("Object cannot be null... | public void showClassifier(ImageData object, int mode) { if (model.getState() != READY) throw new IllegalStateException("This method should only be " + "invoked in the READY state."); if (object == null) throw new IllegalArgumentException("Object cannot be null... | 3,234,297 |
public void showFinder(boolean b) { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException( "This method cannot be invoked in the DISCARDED or SAVE " + "state."); } if (model.getSelecte... | public void showFinder(boolean b) { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException( "This method cannot be invoked in the DISCARDED or SAVE " + "state."); } if (model.getSelecte... | 3,234,298 |
public static RubyArray list(Ruby ruby, RubyObject recv) { ArrayList list = new ArrayList(); Iterator iter = ruby.objectSpace.iterator(ruby.getClasses().getThreadClass()); while (iter.hasNext()) { list.add(iter.next()); } return new RubyArray(ruby, list); } | public static RubyArray list(Ruby ruby, RubyObject recv) { ArrayList list = new ArrayList(); Iterator iter = ruby.objectSpace.iterator(ruby.getClasses().getThreadClass()); while (iter.hasNext()) { list.add(iter.next()); } return RubyArray.newArray(ruby, list); } | 3,234,299 |
XZPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) { super(data, pDef, sizeX, sizeY, bytesPerPixel, strategy); } | XZPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) { super(data, pDef, sizeX, sizeY, bytesPerPixel, strategy); } | 3,234,300 |
XZPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) { super(data, pDef, sizeX, sizeY, bytesPerPixel, strategy); } | XZPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) { super(pDef, pixels, data); } | 3,234,301 |
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; if (state == ROIAgt.MOVING) setCursor(HAND_CURSOR)... | private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; if (state == ROIAgt.MOVING) setCursor(HAND_CURSOR)... | 3,234,302 |
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; if (state == ROIAgt.MOVING) setCursor(HAND_CURSOR)... | private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; if (state == ROIAgt.MOVING) setCursor(HAND_CURSOR)... | 3,234,303 |
public void mouseReleased(MouseEvent e) { dragging = false; moving = false; setCursor(DEFAULT_CURSOR); switch (state) { case ROIAgt.CONSTRUCTING: if (!pressed) saveROI(); break; case ROIAgt.MOVING: case ROIAgt.RESIZING:... | state = ROIAgt.CONSTRUCTING; state = ROIAgt.CONSTRUCTING; state = ROIAgt.CONSTRUCTING; state = ROIAgt.CONSTRUCTING; publicstate = ROIAgt.CONSTRUCTING; voidstate = ROIAgt.CONSTRUCTING; mouseReleased(MouseEventstate = ROIAgt.CONSTRUCTING; e)state = ROIAgt.CONSTRUCTING; state = ROIAgt.CONSTRUCTING; state = ROIAgt.CONSTRUC... | 3,234,305 |
private void move(Point p) { int diffX = p.x-anchor.x, diffY = p.y-anchor.y; Rectangle r = currentShape.getBounds(); int x = xControl+diffX, y = yControl+diffY, w = r.width, h = r.height; if (areaValid(x, y, w, h)) { ROIFactory.setShapeBounds(currentShap... | private void move(Point p) { int diffX = p.x-anchor.x, diffY = p.y-anchor.y; Rectangle r = currentShape.getBounds(); int x = xControl+diffX, y = yControl+diffY, w = r.width, h = r.height; if (areaValid(x, y, w, h)) { ROIFactory.setShapeBounds(currentShap... | 3,234,306 |
private void resize(Point p) { Rectangle r = currentShape.getBounds(); int width = Math.abs(r.x-p.x), height = Math.abs(r.y-p.y); ROIFactory.setShapeBounds(currentShape, currentROI.getShapeType(), r.x, r.y, width, height); moving = true; ... | private void resize(Point p) { Rectangle r = currentShape.getBounds(); int width = Math.abs(r.x-p.x), height = Math.abs(r.y-p.y); ROIFactory.setShapeBounds(currentShape, currentROI.getShapeType(), r.x, r.y, width, height); moving = true; ... | 3,234,307 |
public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m... | public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m... | 3,234,308 |
public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m... | public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m... | 3,234,309 |
public static RubyObject each_object( Ruby ruby, RubyObject recv, RubyObject[] args) { if (args.length == 1) { Iterator iter = new LinkedList(ruby.objectSpace).iterator(); while (iter.hasNext()) { SoftReference ref = (SoftReference) iter.next(); RubyObject obj = (RubyObject) ref.get(); if (obj != null... | public static RubyObject each_object( Ruby ruby, RubyObject recv, RubyObject[] args) { if (args.length == 1) { Iterator iter = new LinkedList(ruby.objectSpace).iterator(); while (iter.hasNext()) { SoftReference ref = (SoftReference) iter.next(); RubyObject obj = (RubyObject) ref.get(); if (obj != null... | 3,234,311 |
public static RubyObject each_object( Ruby ruby, RubyObject recv, RubyObject[] args) { if (args.length == 1) { Iterator iter = new LinkedList(ruby.objectSpace).iterator(); while (iter.hasNext()) { SoftReference ref = (SoftReference) iter.next(); RubyObject obj = (RubyObject) ref.get(); if (obj != null... | public static RubyObject each_object( Ruby ruby, RubyObject recv, RubyObject[] args) { if (args.length == 1) { Iterator iter = new LinkedList(ruby.objectSpace).iterator(); while (iter.hasNext()) { SoftReference ref = (SoftReference) iter.next(); RubyObject obj = (RubyObject) ref.get(); if (obj != null... | 3,234,312 |
public static RubyObject each_object( Ruby ruby, RubyObject recv, RubyObject[] args) { if (args.length == 1) { Iterator iter = new LinkedList(ruby.objectSpace).iterator(); while (iter.hasNext()) { SoftReference ref = (SoftReference) iter.next(); RubyObject obj = (RubyObject) ref.get(); if (obj != null... | public static RubyObject each_object( Ruby ruby, RubyObject recv, RubyObject[] args) { if (args.length == 1) { Iterator iter = new LinkedList(ruby.objectSpace).iterator(); while (iter.hasNext()) { SoftReference ref = (SoftReference) iter.next(); RubyObject obj = (RubyObject) ref.get(); if (obj != null... | 3,234,313 |
public static RubyObject convertJavaToRuby(Ruby ruby, Object object) { if (object == null) { return ruby.getNil(); } Class javaClass = object.getClass(); if (javaClass.isPrimitive()) { String cName = javaClass.getName(); if (cName == "boolean") { ... | public static RubyObject convertJavaToRuby(Ruby ruby, Object object) { if (object == null) { return ruby.getNil(); } Class javaClass = object.getClass(); if (javaClass.isPrimitive()) { String cName = javaClass.getName(); if (cName == "boolean") { ... | 3,234,314 |
public static RubyObject convertJavaToRuby(Ruby ruby, Object object) { if (object == null) { return ruby.getNil(); } Class javaClass = object.getClass(); if (javaClass.isPrimitive()) { String cName = javaClass.getName(); if (cName == "boolean") { ... | public static RubyObject convertJavaToRuby(Ruby ruby, Object object) { if (object == null) { return ruby.getNil(); } Class javaClass = object.getClass(); if (javaClass.isPrimitive()) { String cName = javaClass.getName(); if (cName == "boolean") { ... | 3,234,315 |
public String toString(){ return "SemanticTypeOutput"+(semanticTypeOutputId==null ? ":Hash"+this.hashCode() : ":"+semanticTypeOutputId); } | public String toString(){ return "SemanticTypeOutput"+(semanticTypeOutputId==null ? ":Hash_"+this.hashCode() : ":Id_"+semanticTypeOutputId); } | 3,234,316 |
protected void propagateHiddenValues(IObject from, IObject to) { secSys.copyToken(from,to); if ( from.getDetails().filteredSize() > 0 ) { to.getDetails().addFiltered(from.getDetails().filteredSet()); } } | protected void propagateHiddenValues(IObject from, IObject to) { secSys.copyToken(from,to); if ( from.getDetails().filteredSize() > 0 ) { to.getDetails().addFiltered(from.getDetails().filteredSet()); } } | 3,234,317 |
public void generate(JFormatter f) { f.p(value.getName().replace('$', '.')); f.p(".class"); } | public void generate(JFormatter f) { f.p(value.getName().replace('$', '.')); f.p(".class"); } | 3,234,321 |
final public boolean setProperty(final Object[] names, final Object value) throws PropertyException, ContextException { if (names.length == 0) { return false; } else if (_bean == null) { return setLocal(names, value) || setTool(names, value); } else { return PropertyOpe... | final public boolean setProperty(final Object[] names, final Object value) throws PropertyException, ContextException { if (names.length == 0) { return false; } else if (_bean == null) { return setLocal(names, value) || setTool(names, value); } else { return PropertyOp... | 3,234,322 |
public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Browser browser = model.getBrowser(); if (browser == null) return; ImageDisplay d = browser.getLastSelectedDisplay();... | public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Browser browser = model.getBrowser(); if (browser == null) return; ImageDisplay d = browser.getLastSelectedDisplay();... | 3,234,323 |
public IRubyObject convertToType(String targetType, String convertMethod, boolean raise) { // No need to convert something already of the correct type. // XXXEnebo - Could this pass actual class reference instead of String? if (targetType.equals(getMetaClass().getName())) { return th... | public IRubyObject convertToType(String targetType, String convertMethod, boolean raise) { // No need to convert something already of the correct type. // XXXEnebo - Could this pass actual class reference instead of String? if (targetType.equals(getMetaClass().getName())) { return th... | 3,234,324 |
public RubyClass newSubClass(String name, RubyModule parent) { return new HashMetaClass(name, this, parent); } | public RubyClass newSubClass(String name, RubyModule parent) { return new HashMetaClass(name, this, parent); } | 3,234,325 |
public RubyArray instance_variables() { ArrayList names = new ArrayList(); for(Iterator iter = getInstanceVariablesSnapshot().keySet().iterator();iter.hasNext();) { names.add(getRuntime().newString((String)iter.next())); } return getRuntime().newArray(names); } | public RubyArray instance_variables() { ArrayList names = new ArrayList(); for(Iterator iter = getInstanceVariablesSnapshot().keySet().iterator();iter.hasNext();) { String name = (String) iter.next(); if (!Character.isUpperCase(name.charAt(0))) { names.add(getRuntime().newString(name)); }... | 3,234,326 |
public void addClassData(ClassData classData) { LOGGER.debug("ProjectData.addClassData: " + classData.getName()); String packageName = classData.getPackageName(); PackageData packageData = (PackageData)children.get(packageName); if (packageData == null) { packageData = new PackageData(packageName); // Each... | public void addClassData(ClassData classData) { LOGGER.debug("ProjectData.addClassData: " + classData.getName()); String packageName = classData.getPackageName(); PackageData packageData = (PackageData)children.get(packageName); if (packageData == null) { packageData = new PackageData(packageName); // Each... | 3,234,327 |
public ClassData getClassData(String name) { for (Iterator it = children.values().iterator(); it.hasNext(); ) { PackageData packageData = (PackageData) it.next(); ClassData classData = packageData.getClassData(name); if (classData != null) { return classData; } } re... | public ClassData getClassData(String name) { for (Iterator it = children.values().iterator(); it.hasNext(); ) { PackageData packageData = (PackageData) it.next(); ClassData classData = packageData.getClassData(name); if (classData != null) { return classData; } } re... | 3,234,329 |
public ArgsNode(ISourcePosition position, int argsCount, ListNode optArgs, int restArg, BlockArgNode blockArgNode) { super(position); this.argsCount = argsCount; this.optArgs = optArgs; this.restArg = restArg; this.blockArgNode = blockArgNode; } | public ArgsNode(ISourcePosition position, ListNode arguments, ListNode optionalArguments, int restArguments, BlockArgNode blockArgNode) { super(position); this.argsCount = argsCount; this.optArgs = optArgs; this.restArg = restArg; this.blockArgNode = blockArgNode; } | 3,234,331 |
public ArgsNode(ISourcePosition position, int argsCount, ListNode optArgs, int restArg, BlockArgNode blockArgNode) { super(position); this.argsCount = argsCount; this.optArgs = optArgs; this.restArg = restArg; this.blockArgNode = blockArgNode; } | public ArgsNode(ISourcePosition position, int argsCount, ListNode optArgs, int restArg, BlockArgNode blockArgNode) { super(position); this.argsCount = argsCount; this.optArgs = optArgs; this.restArg = restArg; this.blockArgNode = blockArgNode; } | 3,234,332 |
public List childNodes() { return Node.createList(optArgs, blockArgNode); } | public List childNodes() { return Node.createList(arguments, optArgs, blockArgNode); } | 3,234,333 |
private void setBrowserSize() { Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); browserW = 7*(screenSize.width/10); } | private void setBrowserSize() { Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); browserW = 8*(screenSize.width/10); System.out.println("browser: "+browserW); } | 3,234,334 |
private void visitContainerNode(ImageSet node) { //Then figure out the number of columns, which is the same as the //number of rows. int n = node.getChildrenDisplay().size(); if (n == 0) { //node with no child node.getInternalDesktop().setPreferredSize( ... | private void visitContainerNode(ImageSet node) { //Then figure out the number of columns, which is the same as the //number of rows. int n = node.getChildrenDisplay().size(); if (n == 0) { //node with no child node.getInternalDesktop().setPreferredSize( ... | 3,234,335 |
public void initialize() { soundPreference = new SoundPreference(); SparkManager.getPreferenceManager().addPreference(soundPreference); SparkManager.getChatManager().addChatRoomListener(this); SparkManager.getConnection().addPacketListener(new PacketListener() { public void pr... | public void initialize() { soundPreference = new SoundPreference(); SparkManager.getPreferenceManager().addPreference(soundPreference); SparkManager.getChatManager().addChatRoomListener(this); SparkManager.getConnection().addPacketListener(new PacketListener() { public void pr... | 3,234,336 |
public void processPacket(Packet packet) { Presence presence = (Presence)packet; if (presence != null && presence.getType() == Presence.Type.unavailable) { SoundPreferences preferences = soundPreference.getPreferences(); if (preferences != ... | public void processPacket(Packet packet) { Presence presence = (Presence)packet; if (presence != null && presence.getType() == Presence.Type.unavailable) { SoundPreferences preferences = soundPreference.getPreferences(); if (preferences != ... | 3,234,337 |
void setViews(Set nodes, boolean reload) { DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); TreeImageDisplay root = (TreeImageDisplay) dtm.getRoot(); root.removeAllChildren(); root.setChildrenLoaded(Boolean.TRUE); dtm.reload(); if (nodes.size() != 0) { ... | void setViews(Set nodes, boolean reload) { DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); TreeImageDisplay root = (TreeImageDisplay) dtm.getRoot(); root.removeAllChildren(); root.setChildrenLoaded(Boolean.TRUE); dtm.reload(); if (nodes.size() != 0) { ... | 3,234,341 |
public RubyFixnum arity() { if (method instanceof EvaluateMethod) { if (((EvaluateMethod)method).getNode() instanceof AttrSetNode) { return RubyFixnum.one(getRuby()); } else if (((EvaluateMethod)method).getNode() instanceof InstVarNode) { return RubyFixnum.... | public RubyFixnum arity() { if (method instanceof EvaluateMethod) { if (((EvaluateMethod) method).getNode() instanceof AttrSetNode) { return RubyFixnum.one(getRuby()); } else if (((EvaluateMethod)method).getNode() instanceof InstVarNode) { return RubyFixnum... | 3,234,343 |
public RubyFixnum arity() { if (method instanceof EvaluateMethod) { if (((EvaluateMethod)method).getNode() instanceof AttrSetNode) { return RubyFixnum.one(getRuby()); } else if (((EvaluateMethod)method).getNode() instanceof InstVarNode) { return RubyFixnum.... | public RubyFixnum arity() { if (method instanceof EvaluateMethod) { if (((EvaluateMethod)method).getNode() instanceof AttrSetNode) { return RubyFixnum.one(getRuby()); } else if (((EvaluateMethod) method).getNode() instanceof InstVarNode) { return RubyFixnum... | 3,234,344 |
public RubyFixnum arity() { if (method instanceof EvaluateMethod) { if (((EvaluateMethod)method).getNode() instanceof AttrSetNode) { return RubyFixnum.one(getRuby()); } else if (((EvaluateMethod)method).getNode() instanceof InstVarNode) { return RubyFixnum.... | public RubyFixnum arity() { if (method instanceof EvaluateMethod) { if (((EvaluateMethod)method).getNode() instanceof AttrSetNode) { return RubyFixnum.one(getRuby()); } else if (((EvaluateMethod)method).getNode() instanceof InstVarNode) { return RubyFixnum.... | 3,234,345 |
public RubyObject call(RubyObject[] args) { getRuby().getIterStack().push( getRuby().isBlockGiven() ? Iter.ITER_PRE : Iter.ITER_NOT); RubyObject result = getReceiverClass().call0( getReceiver(), getMethodId(), new RubyPointer(args), ... | public RubyObject call(RubyObject[] args) { getRuby().getIterStack().push( getRuby().isBlockGiven() ? Iter.ITER_PRE : Iter.ITER_NOT); RubyObject result = getReceiverClass().call0( getReceiver(), getMethodId(), new RubyPointer(args), ... | 3,234,347 |
public static RubyClass createMethodClass(Ruby ruby) { Callback arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); Callback call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby... | public static RubyClass createMethodClass(Ruby ruby) { Callback arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); Callback call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby... | 3,234,348 |
public static RubyClass createMethodClass(Ruby ruby) { Callback arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); Callback call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby... | public static RubyClass createMethodClass(Ruby ruby) { Callback arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); Callback call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby... | 3,234,349 |
public CollectionCountQueryDefinition(QueryParameter...parameters) { super(parameters); } | public CollectionCountQueryDefinition(QueryParameter...parameters) { super( defs, parameters ); } | 3,234,350 |
public void addUser() { try { String selectedUser = view.getSelectedUser(); if (selectedUser == null) { view.showErrorMessage("Please select a user to add."); return; } if (!model.findUserByName(selectedUser)) { return; ... | public void addUser() { try { String selectedUser = view.getSelectedUser(); if (selectedUser == null) { view.showErrorMessage("Please select a user to add."); return; } if (!model.findUserByName(selectedUser)) { return; ... | 3,234,351 |
public void removeUser() { try { String selectedUser = view.getSelectedMember(); if (selectedUser == null) { view.showErrorMessage("Please select a user to remove."); return; } if (!model.findUserByName(selectedUser)) { ... | public void removeUser() { try { String selectedUser = view.getSelectedMember(); if (selectedUser == null) { view.showErrorMessage("Please select a user to remove."); return; } if (!model.findUserByName(selectedUser)) { ... | 3,234,352 |
public static RubyClass createFixnum(Ruby ruby) { // HACK +++ // todo: change Numeric to Integer RubyClass fixnumClass = ruby.defineClass("Fixnum", (RubyClass)ruby.getRubyClass("Numeric")); // HACK --- fixnumClass.defineMethod("to_i", getMethodToI()); fixnumClass.de... | public static RubyClass createFixnum(Ruby ruby) { // HACK +++ // todo: change Numeric to Integer RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getIntegerClass()); // HACK --- fixnumClass.defineMethod("to_i", getMethodToI()); fixnumClass.defineMethod("to_s", g... | 3,234,354 |
public void initialize() { final SwingWorker bookmarkThreadWorker = new SwingWorker() { public Object construct() { // Register own provider for simpler implementation. PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks", new Bookmarks.Provider())... | public void initialize() { final SwingWorker bookmarkThreadWorker = new SwingWorker() { public Object construct() { // Register own provider for simpler implementation. PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks", new Bookmarks.Provider())... | 3,234,355 |
public void initialize() { final SwingWorker bookmarkThreadWorker = new SwingWorker() { public Object construct() { // Register own provider for simpler implementation. PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks", new Bookmarks.Provider())... | public void initialize() { final SwingWorker bookmarkThreadWorker = new SwingWorker() { public Object construct() { // Register own provider for simpler implementation. PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks", new Bookmarks.Provider())... | 3,234,356 |
public void initialize() { final SwingWorker bookmarkThreadWorker = new SwingWorker() { public Object construct() { // Register own provider for simpler implementation. PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks", new Bookmarks.Provider())... | public void initialize() { final SwingWorker bookmarkThreadWorker = new SwingWorker() { public Object construct() { // Register own provider for simpler implementation. PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks", new Bookmarks.Provider())... | 3,234,357 |
public void initialize() { final SwingWorker bookmarkThreadWorker = new SwingWorker() { public Object construct() { // Register own provider for simpler implementation. PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks", new Bookmarks.Provider())... | public void initialize() { final SwingWorker bookmarkThreadWorker = new SwingWorker() { public Object construct() { // Register own provider for simpler implementation. PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks", new Bookmarks.Provider())... | 3,234,358 |
public void finished() { final Bookmarks bookmarks = (Bookmarks)get(); if (bookmarks != null) { Collection bookmarkedConferences = bookmarks.getBookmarkedConferences(); final Collection bookmarkedLinks = bookmarks.getBookmarkedURLS(); ... | public void finished() { final Bookmarks bookmarks = (Bookmarks)get(); if (bookmarks != null) { Collection bookmarkedConferences = bookmarks.getBookmarkedConferences(); final Collection bookmarkedLinks = bookmarks.getBookmarkedURLS(); ... | 3,234,359 |
public void finished() { final Bookmarks bookmarks = (Bookmarks)get(); if (bookmarks != null) { Collection bookmarkedConferences = bookmarks.getBookmarkedConferences(); final Collection bookmarkedLinks = bookmarks.getBookmarkedURLS(); ... | public void finished() { final Bookmarks bookmarks = (Bookmarks)get(); if (bookmarks != null) { Collection bookmarkedConferences = bookmarks.getBookmarkedConferences(); final Collection bookmarkedLinks = bookmarks.getBookmarkedURLS(); ... | 3,234,360 |
public void finished() { final Bookmarks bookmarks = (Bookmarks)get(); if (bookmarks != null) { Collection bookmarkedConferences = bookmarks.getBookmarkedConferences(); final Collection bookmarkedLinks = bookmarks.getBookmarkedURLS(); ... | public void finished() { final Bookmarks bookmarks = (Bookmarks)get(); if (bookmarks != null) { Collection bookmarkedConferences = bookmarks.getBookmarkedConferences(); final Collection bookmarkedLinks = bookmarks.getBookmarkedURLS(); ... | 3,234,361 |
public void finished() { final Bookmarks bookmarks = (Bookmarks)get(); if (bookmarks != null) { Collection bookmarkedConferences = bookmarks.getBookmarkedConferences(); final Collection bookmarkedLinks = bookmarks.getBookmarkedURLS(); ... | public void finished() { final Bookmarks bookmarks = (Bookmarks)get(); if (bookmarks != null) { Collection bookmarkedConferences = bookmarks.getBookmarkedConferences(); final Collection bookmarkedLinks = bookmarks.getBookmarkedURLS(); ... | 3,234,362 |
private void drawBorder(Graphics2D g) { Color borderColour; borderColour = gradientStartRGB.brighter(); // Set the colour of the top, left bevels to be a lighter colour // than the gradient at that same corner. g.setPaint(borderColour); // Draw the bevel, it... | privatevoiddrawBorder(Graphics2Dg){ColorborderColour;borderColour=gradientStartRGB.brighter();//Setthecolourofthetop,leftbevelstobealightercolour//thanthegradientatthatsamecorner.g.setPaint(borderColour);//Drawthebevel,itisdrawnasfourlinefrom:topleftto//topright,andtoplefttobottomleft.g.drawLine(0,0,0,(int)buttonRect.g... | 3,234,363 |
private void paintSquareButton(Graphics2D g) { // Calculate the colours to use to the extreme ends of the gradient. setGradientColours(); // If the button is selected draw selected button face. // Check to see if it's greyed out, if not draw border else // draw mask a... | private void paintSquareButton(Graphics2D g) { // Calculate the colours to use to the extreme ends of the gradient. setGradientColours(); // If the button is selected draw selected button face. // Check to see if it's greyed out, if not draw border else // draw mask a... | 3,234,364 |
private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bot... | private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bottom gradient saturation from HSV model. ... | 3,234,365 |
private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bot... | private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bot... | 3,234,366 |
private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bot... | private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bot... | 3,234,367 |
private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bot... | private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bot... | 3,234,368 |
public Node logop(/*node_type*/ int type, Node left, Node right) { value_expr(left); // return nf.newDefaultNode(type, cond1(left, 1), cond1(right, 1), null); throw new RuntimeException("[BUG] ParserHelper#logop: Nodetype=" + type); } | public Node logop(int type, Node left, Node right) { value_expr(left); // return nf.newDefaultNode(type, cond1(left, 1), cond1(right, 1), null); throw new RuntimeException("[BUG] ParserHelper#logop: Nodetype=" + type); } | 3,234,369 |
public Node logop(/*node_type*/ int type, Node left, Node right) { value_expr(left); // return nf.newDefaultNode(type, cond1(left, 1), cond1(right, 1), null); throw new RuntimeException("[BUG] ParserHelper#logop: Nodetype=" + type); } | public Node logop(/*node_type*/ int type, Node left, Node right) { value_expr(left); // return nf.newDefaultNode(type, cond1(left, 1), cond1(right, 1), null); } | 3,234,370 |
FindRegExAnnotationVisitor(HiViewer viewer, String regEx) { super(viewer, regEx); colors = Colors.getInstance(); } | FindRegExAnnotationVisitor(HiViewer viewer, Pattern pattern) { super(viewer, regEx); colors = Colors.getInstance(); } | 3,234,373 |
FindRegExAnnotationVisitor(HiViewer viewer, String regEx) { super(viewer, regEx); colors = Colors.getInstance(); } | FindRegExAnnotationVisitor(HiViewer viewer, String regEx) { super(viewer, pattern); colors = Colors.getInstance(); } | 3,234,374 |
public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { super(type, methodName, argumentTypes, isRestArgs, isStaticMethod, arity); if (isStaticMethod) { Class[] types = ne... | public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { super(type, methodName, argumentTypes, isRestArgs, isStaticMethod, arity); if (isStaticMethod) { Class[] types = ne... | 3,234,375 |
public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { super(type, methodName, argumentTypes, isRestArgs, isStaticMethod, arity); if (isStaticMethod) { Class[] types = ne... | public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { super(type, methodName, argumentTypes, isRestArgs, isStaticMethod, arity); if (isStaticMethod) { Class[] types = ne... | 3,234,376 |
public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { super(type, methodName, argumentTypes, isRestArgs, isStaticMethod, arity); if (isStaticMethod) { Class[] types = ne... | public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { super(type, methodName, argumentTypes, isRestArgs, isStaticMethod, arity); if (isStaticMethod) { Class[] types = ne... | 3,234,377 |
public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { super(type, methodName, argumentTypes, isRestArgs, isStaticMethod, arity); if (isStaticMethod) { Class[] types = ne... | public ReflectionCallback( Class type, String methodName, Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity) { super(type, methodName, argumentTypes, isRestArgs, isStaticMethod, arity); if (isStaticMethod) { Class[] types = ne... | 3,234,378 |
protected IRubyObject invokeMethod0(IRubyObject recv, Object[] methodArgs) throws IllegalAccessException, InvocationTargetException { if (isStaticMethod) { Object[] args = new Object[methodArgs.length + 1]; System.arraycopy(methodArgs, 0, args, 1, methodArgs.length); args[0] = recv; recv = null; methodArg... | protected IRubyObject invokeMethod0(IRubyObject recv, Object[] methodArgs) throws IllegalAccessException, InvocationTargetException { if (isStaticMethod) { Object[] args = new Object[methodArgs.length + 1]; System.arraycopy(methodArgs, 0, args, 1, methodArgs.length); args[0] = recv; recv = null; methodArg... | 3,234,379 |
public RubyObject initialize(RubyObject[] args) { modify(); int size = RubyFixnum.fix2int(getInstanceVariable(getRubyClass(), "__size___")); if (args.length > size) { throw new ArgumentError(ruby, "struct size differs"); } for (int i = 0; i < args.length; i++) { ... | public RubyObject initialize(RubyObject[] args) { modify(); int size = RubyFixnum.fix2int(getInstanceVariable(getRubyClass(), "__size__")); if (args.length > size) { throw new ArgumentError(ruby, "struct size differs"); } for (int i = 0; i < args.length; i++) { ... | 3,234,380 |
public static RubyClass newInstance(Ruby ruby, RubyObject recv, RubyObject[] args) { String name = null; if (args.length > 0 && args[0] instanceof RubyString) { name = args[0].toString(); } RubyArray member = RubyArray.newArray(ruby); for (int i = name == null ? 0 : 1; ... | public static RubyClass newInstance(Ruby ruby, RubyObject recv, RubyObject[] args) { String name = null; if (args.length > 0 && args[0] instanceof RubyString) { name = args[0].toString(); } RubyArray member = RubyArray.newArray(ruby); for (int i = name == null ? 0 : 1; ... | 3,234,381 |
public static RubyStruct newStruct(Ruby ruby, RubyObject recv, RubyObject[] args) { RubyStruct struct = new RubyStruct(ruby, (RubyClass) recv); int size = RubyFixnum.fix2int(getInstanceVariable((RubyClass) recv, "__size___")); struct.values = new RubyObject[size]; struct.callInit(args); ... | public static RubyStruct newStruct(Ruby ruby, RubyObject recv, RubyObject[] args) { RubyStruct struct = new RubyStruct(ruby, (RubyClass) recv); int size = RubyFixnum.fix2int(getInstanceVariable((RubyClass) recv, "__size__")); struct.values = new RubyObject[size]; struct.callInit(args); ... | 3,234,382 |
void parse_args(DirectiveDescriptor descriptor, ArgDescriptor[] args, DirectiveArgs da) throws ParseException { try { for (int i=0; i < args.length; ) { ArgDescriptor arg = args[i]; if (arg.type == Directive.ArgType_GROUP) parse_arg_group(descriptor, args, i, da); else if (arg... | void parse_args(DirectiveDescriptor descriptor, ArgDescriptor[] args, DirectiveArgs da) throws ParseException { try { for (int i=0; i < args.length; ) { ArgDescriptor arg = args[i]; if (arg.type == Directive.ArgType_GROUP) parse_arg_group(descriptor, args, i, da); else if (arg... | 3,234,385 |
public void testQdox() throws Exception{ QdoxMappingLoader mappingLoader = new QdoxMappingLoader(DEFAULT_NAMESPACE, new File[] { new File("src/test")}); Set namespaces = mappingLoader.loadNamespaces(); validateModel(namespaces); } | public void testQdox() throws Exception{ String basedir = System.getProperties().getProperty("basedir", "."); QdoxMappingLoader mappingLoader = new QdoxMappingLoader(DEFAULT_NAMESPACE, new File[] { new File(basedir, "/src/test")}); Set namespaces = mappingLoader.loadNamespaces(); validateModel(... | 3,234,386 |
public void mousePressed(MouseEvent me) { ImageDisplay d = findParentDisplay(me.getSource()); d.moveToFront(); model.setSelectedDisplay(d); view.setTitle(model.currentPathString()); if (me.isPopupTrigger()) model.setPopupPoint(me.getPoint()); } | public void mousePressed(MouseEvent me) { ImageDisplay d = findParentDisplay(me.getSource()); d.moveToFront(); model.setSelectedDisplay(d); view.setTitle(model.currentPathString()); if (me.isPopupTrigger()) popupTrigger = true; } | 3,234,388 |
public void mouseReleased(MouseEvent me) { if (me.isPopupTrigger()) model.setPopupPoint(me.getPoint()); else { Object src = me.getSource(); ImageDisplay d = findParentDisplay(src); if (d instanceof ImageNode && !(d.getTitleBar() == src)) model.setThu... | public void mouseReleased(MouseEvent me) { if (popupTrigger || me.isPopupTrigger()) model.setPopupPoint(me.getPoint()); else { Object src = me.getSource(); ImageDisplay d = findParentDisplay(src); if (d instanceof ImageNode && !(d.getTitleBar() == src)) ... | 3,234,389 |
public void mouseReleased(MouseEvent me) { if (me.isPopupTrigger()) model.setPopupPoint(me.getPoint()); else { Object src = me.getSource(); ImageDisplay d = findParentDisplay(src); if (d instanceof ImageNode && !(d.getTitleBar() == src)) model.setThu... | public void mouseReleased(MouseEvent me) { if (me.isPopupTrigger()) model.setPopupPoint(me.getPoint()); else { Object src = me.getSource(); ImageDisplay d = findParentDisplay(src); if (d instanceof ImageNode && !(d.getTitleBar() == src)) model.setThu... | 3,234,390 |
public void indent(int many) { newData(); _currentData.setType (WikiDataTypes.INDENT); _currentData.setData (""+many); } | public void indent(int many) { newData(); _currentData.setType (WikiDataTypes.INDENT); _currentData.setData (""+many); } | 3,234,392 |
public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) throws IOException { IRubyObject line = recv.getRuntime().getNil(); String v = readline.readLine(prompt.toString()); if(null != v) { if (add_to_hist.isTrue()) readline.g... | public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) throws IOException { IRubyObject line = recv.getRuntime().getNil(); String v = readline.readLine(prompt.toString()); if(null != v) { if (add_to_hist.isTrue()) readline.g... | 3,234,395 |
public Collection getLines(String methodNameAndDescriptor) { Collection lines = new HashSet(); Iterator iter = children.values().iterator(); while (iter.hasNext()) { LineData next = (LineData)iter.next(); if (methodNameAndDescriptor.equals(next.getMethodName() + next.getMethodDescriptor())) { lines.ad... | public Collection getLines(String methodNameAndDescriptor) { Collection lines = new HashSet(); Iterator iter = children.values().iterator(); while (iter.hasNext()) { LineData next = (LineData)iter.next(); if (methodNameAndDescriptor.equals(next.getMethodName() + next.getMethodDescriptor())) { lines.ad... | 3,234,396 |
public Collection getLines(String methodNameAndDescriptor) { Collection lines = new HashSet(); Iterator iter = children.values().iterator(); while (iter.hasNext()) { LineData next = (LineData)iter.next(); if (methodNameAndDescriptor.equals(next.getMethodName() + next.getMethodDescriptor())) { lines.ad... | public Collection getLines(String methodNameAndDescriptor) { Collection lines = new HashSet(); Iterator iter = children.values().iterator(); while (iter.hasNext()) { LineData next = (LineData)iter.next(); if (methodNameAndDescriptor.equals(next.getMethodName() + next.getMethodDescriptor())) { lines.ad... | 3,234,397 |
void coverage(String[] filenames) { if (filenames.length == 0) { return; } for (int i = 0; i < filenames.length; i++) { getProject().log("Adding " + filenames[i] + " to list", Project.MSG_VERBOSE); addArg(filenames[i]); } saveArgs(); Copyright.print(System.out); System.out.println("instrumenting " +... | void coverage(String[] filenames) { if (filenames.length == 0) { return; } for (int i = 0; i < filenames.length; i++) { getProject().log("Adding " + filenames[i] + " to list", Project.MSG_VERBOSE); addArg(filenames[i]); } saveArgs(); Copyright.print(System.out); System.out.println("instrumenting " +... | 3,234,398 |
public static RubyModule createMathModule(Ruby ruby) { Callback atan2 = new ReflectionCallbackMethod(RubyMath.class, "atan2", new Class[] { RubyNumeric.class, RubyNumeric.class }); Callback cos = new ReflectionCallbackMethod(RubyMath.class, "cos", RubyNumeric.class); Callback exp = n... | public static RubyModule createMathModule(Ruby ruby) { Callback atan2 = new ReflectionCallbackMethod(RubyMath.class, "atan2", new Class[] { RubyNumeric.class, RubyNumeric.class }); Callback cos = new ReflectionCallbackMethod(RubyMath.class, "cos", RubyNumeric.class); Callback exp = n... | 3,234,399 |
public static RubyModule createMathModule(Ruby ruby) { Callback atan2 = new ReflectionCallbackMethod(RubyMath.class, "atan2", new Class[] { RubyNumeric.class, RubyNumeric.class }); Callback cos = new ReflectionCallbackMethod(RubyMath.class, "cos", RubyNumeric.class); Callback exp = n... | public static RubyModule createMathModule(Ruby ruby) { Callback atan2 = new ReflectionCallbackMethod(RubyMath.class, "atan2", new Class[] { RubyNumeric.class, RubyNumeric.class }); Callback cos = new ReflectionCallbackMethod(RubyMath.class, "cos", RubyNumeric.class); Callback exp = n... | 3,234,400 |
public IRubyObject rbClone() { IRubyObject clone = getMetaClass().getRealClass().allocate(); clone.setMetaClass(getMetaClass().getSingletonClassClone()); clone.setFrozen(false); clone.initCopy(this); if (isFrozen()) { clone.setFrozen(true); } return clone;... | public IRubyObject rbClone() { IRubyObject clone = doClone(); clone.setMetaClass(getMetaClass().getSingletonClassClone()); clone.setFrozen(false); clone.initCopy(this); if (isFrozen()) { clone.setFrozen(true); } return clone; } | 3,234,401 |
public IRubyObject rbClone() { IRubyObject clone = getMetaClass().getRealClass().allocate(); clone.setMetaClass(getMetaClass().getSingletonClassClone()); clone.setFrozen(false); clone.initCopy(this); if (isFrozen()) { clone.setFrozen(true); } return clone;... | public IRubyObject rbClone() { IRubyObject clone = getMetaClass().getRealClass().allocate(); clone.setMetaClass(getMetaClass().getSingletonClassClone()); clone.setTaint(this.isTaint()); clone.initCopy(this); if (isFrozen()) { clone.setFrozen(true); } retur... | 3,234,402 |
public IRubyObject rbClone() { IRubyObject clone = getMetaClass().getRealClass().allocate(); clone.setMetaClass(getMetaClass().getSingletonClassClone()); clone.setFrozen(false); clone.initCopy(this); if (isFrozen()) { clone.setFrozen(true); } return clone;... | public IRubyObject rbClone() { IRubyObject clone = getMetaClass().getRealClass().allocate(); clone.setMetaClass(getMetaClass().getSingletonClassClone()); clone.setFrozen(false); clone.initCopy(this); if (isFrozen()) { clone.setFrozen(true); } return clone;... | 3,234,403 |
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } try { ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder("/files/content").toArray(new ArticleItemBean[0]); int availableRows = articleItemBean.le... | publicvoidupdateDataModel(Integerstart,Integerrows){ if(_dataModel==null){ _dataModel=newWFDataModel(); } try{ ArticleItemBean[]articleItemBean=(ArticleItemBean[])ArticleListBean.loadAllArticlesInFolder("/files/content").toArray(newArticleItemBean[0]); intavailableRows=articleItemBean.length; intnrOfRows... | 3,234,404 |
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } try { ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder("/files/content").toArray(new ArticleItemBean[0]); int availableRows = articleItemBean.le... | public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } try { ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder("/files/content").toArray(new ArticleItemBean[0]); int availableRows = articleItemBean.le... | 3,234,405 |
ImageEditorManager(ImageEditor view, DataManagerCtrl control, ImageData model) { this.view = view; this.control = control; this.model = model; nameChange = false; isName = false; } | ImageEditorManager(ImageEditor view, DataManagerCtrl control, ImageData model) { this.view = view; this.control = control; this.model = model; nameChange = false; isName = false; } | 3,234,406 |
void initListeners() { attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getViewButton(), VIEW); JTextArea nameField = view.getNameField(); nameField.getDocument().addDocumentListener(this); nameField.addMouseListener(this); JTextArea descriptionArea = view.getDescriptionAre... | void initListeners() { attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getViewButton(), VIEW); JTextArea nameField = view.getNameField(); nameField.getDocument().addDocumentListener(this); nameField.addMouseListener(this); JTextArea descriptionArea = view.getDescriptionAre... | 3,234,407 |
public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); } | public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); } | 3,234,408 |
public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); } | public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); } | 3,234,409 |
public Filterable filter(String fieldId, Filterable f) { if (null==f || !Hibernate.isInitialized(f)){ if (f instanceof IObject) { IObject proxy = (IObject) f; IObject unloaded = (IObject) Utils.trueInstance(f.getClass()); unloaded.setId(proxy.getId... | public Filterable filter(String fieldId, Filterable f) { if (null==f || !Hibernate.isInitialized(f)){ if (f instanceof IObject) { IObject proxy = (IObject) f; IObject unloaded = (IObject) Utils.trueInstance(f.getClass()); unloaded.setId(proxy.getId... | 3,234,410 |
public Filterable filter(String fieldId, Filterable f) { if (null==f || !Hibernate.isInitialized(f)){ if (f instanceof IObject) { IObject proxy = (IObject) f; IObject unloaded = (IObject) Utils.trueInstance(f.getClass()); unloaded.setId(proxy.getId... | public Filterable filter(String fieldId, Filterable f) { if (null==f || !Hibernate.isInitialized(f)){ if (f instanceof IObject) { IObject proxy = (IObject) f; IObject unloaded = (IObject) Utils.trueInstance(f.getClass()); unloaded.setId(proxy.getId... | 3,234,411 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.