bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void actionPerformed(ActionEvent ae) { int datasetID = actionTarget.getDataset().getID(); String name = actionTarget.getDataset().getName(); agent.loadCategories(datasetID,name); }
public void actionPerformed(ActionEvent ae) { int datasetID = actionTarget.getDataset().getID(); String name = actionTarget.getDataset().getName(); agent.loadCategories(datasetID,name); }
3,237,365
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(...
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.DESELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execut...
3,237,366
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(...
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(...
3,237,367
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(...
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(...
3,237,368
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(...
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(...
3,237,369
public void actionPerformed(ActionEvent ae) { ColorMapManager manager = env.getColorMapManager(); ColorMapUI ui = manager.getUI(); ui.setClosable(true); ui.setIconifiable(true); ui.setResizable(false); ui.se...
public void actionPerformed(ActionEvent ae) { ColorMapManager manager = env.getColorMapManager(); ColorMapUI ui = manager.getUI(); ui.setClosable(true); ui.setIconifiable(true); ui.setResizable(false); ui.se...
3,237,370
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.DESELECTED) { actionTarget.removeOverlayMethod(OverlayMethods.ANNOTATION_METHOD); } else if(e.getStateChange() == ItemEvent.SELECTED) ...
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.DESELECTED) { actionTarget.removePaintMethod(PaintMethods.DRAW_WELLNO_METHOD, Thumbnail.FOREGROUND_PAINT_METHOD); } else if(e.getStateChang...
3,237,371
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.DESELECTED) { actionTarget.removeOverlayMethod(OverlayMethods.ANNOTATION_METHOD); } else if(e.getStateChange() == ItemEvent.SELECTED) ...
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.DESELECTED) { actionTarget.removeOverlayMethod(OverlayMethods.ANNOTATION_METHOD); } else if(e.getStateChange() == ItemEvent.SELECTED) ...
3,237,372
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.DESELECTED) { // TODO add multidimension paint method } else if(e.getStateChange() == ItemEvent.SELECTED) { ...
actionTarget.removeOverlayMethod(OverlayMethods.ANNOTATION_METHOD); actionTarget.removeOverlayMethod(OverlayMethods.ANNOTATION_METHOD); actionTarget.removeOverlayMethod(OverlayMethods.ANNOTATION_METHOD); actionTarget.removeOverlayMethod(OverlayMethods.ANNOTATION_METHOD); actionTarget.removeOverlayMethod(OverlayMethods....
3,237,373
public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.DESELECTED) { // TODO add multidimension paint method } else if(e.getStateChange() == ItemEvent.SELECTED) { ...
actionTarget.addOverlayMethod(OverlayMethods.ANNOTATION_METHOD); actionTarget.addOverlayMethod(OverlayMethods.ANNOTATION_METHOD); actionTarget.addOverlayMethod(OverlayMethods.ANNOTATION_METHOD); actionTarget.addOverlayMethod(OverlayMethods.ANNOTATION_METHOD); actionTarget.addOverlayMethod(OverlayMethods.ANNOTATION_METH...
3,237,374
public void loadCompositeImages() { BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); if(!multipleModeOn) { ThumbnailDataModel model = parentThumbnail.getModel(); Pixels pix = (Pixels)model.getAttribute...
public void loadCompositeImages() { BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); if(!multipleModeOn) { ThumbnailDataModel model = parentThumbnail.getModel(); Pixels pix = (Pixels)model.getAttribute...
3,237,375
void viewDataObject() { TreeImageDisplay d = getLastSelectedDisplay(); if (d == null) return; Object o = d.getUserObject(); if (o instanceof DataObject) { ViewCmd cmd = new ViewCmd(parent, (DataObject) o); cmd.execute(); } }
void viewDataObject() { TreeImageDisplay d = getLastSelectedDisplay(); if (d == null) return; Object o = d.getUserObject(); if (o instanceof ImageData) { ViewCmd cmd = new ViewCmd(parent, (DataObject) o); cmd.execute(); } }
3,237,376
public void mousePressed(MouseEvent me) { ThumbWinPopupMenu.hideMenu(); }
public void mousePressed(MouseEvent me) { ThumbWinPopupMenu.hideMenu(); }
3,237,377
public void mouseReleased(MouseEvent me) { if (me.isPopupTrigger()) { popupPoint = me.getPoint(); ThumbWinPopupMenu.showMenuFor(this); } }
public void mouseReleased(MouseEvent me) { if (me.isPopupTrigger()) { popupPoint = me.getPoint(); ThumbWinPopupMenu.showMenuFor(this); } }
3,237,378
public void initialize() { ProviderManager.addExtensionProvider("phone-event", "http://jivesoftware.com/xmlns/phone", new PhoneEventPacketExtensionProvider()); ProviderManager.addIQProvider("phone-action", "http://jivesoftware.com/xmlns/phone", new PhoneActionIQProvider()); final XMPPConnection...
Log.error(e); Log.error(e); Log.error(e); Log.error(e); publicLog.error(e); voidLog.error(e); initialize()Log.error(e); {Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); ProviderManager.addExtensionProvider("phone-event",Log.error(e); "http://jivesoftware.c...
3,237,379
public Object construct() { try { phoneClient = new PhoneClient(con); // Add BaseListener phoneClient.addEventListener(new PhoneListener()); } catch (Exception e) { // Ignore because the ...
Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); publicLog.error(e); ObjectLog.error(e); construct()Log.error(e); {Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Log.error(e); Lo...
3,237,380
public void actionPerformed(ActionEvent e) { String s = (String) e.getActionCommand(); try { int index = Integer.parseInt(s); switch (index) { case DM_VISIBLE: abstraction.activate(); break; case PROJECT_ITEM: createProject(); break; case DATASET_ITEM: createDataset();...
public void actionPerformed(ActionEvent e) { String s = (String) e.getActionCommand(); try { int index = Integer.parseInt(s); switch (index) { case DM_VISIBLE: abstraction.activate(); break; case PROJECT_ITEM: createProject(); break; case DATASET_ITEM: createDataset();...
3,237,381
public List<AccountItem> getAccounts() { List<AccountItem> list = new ArrayList<AccountItem>(); for (Transport transport : TransportManager.getTransports()) { if (TransportManager.isRegistered(SparkManager.getConnection(), transport)) { AccountItem item = new AccountItem(tran...
public List<AccountItem> getAccounts() { List<AccountItem> list = new ArrayList<AccountItem>(); for (Transport transport : TransportManager.getTransports()) { if (TransportManager.isRegistered(SparkManager.getConnection(), transport)) { AccountItem item = new AccountItem(tran...
3,237,383
public void onDataObjectSave(DataObject data, int operation) { int state = model.getState(); if (operation == REMOVE_OBJECT && state != SAVE) throw new IllegalStateException("This method can only be " + "invoked in the SAVE state"); switch (state) { c...
public void onDataObjectSave(DataObject data, int operation) { int state = model.getState(); if (operation == REMOVE_OBJECT && state != SAVE) throw new IllegalStateException("This method can only be " + "invoked in the SAVE state"); switch (state) { c...
3,237,384
public void start() { super.start(); try { final PipedInputStream pipeIn = new PipedInputStream(); final PipedOutputStream out = new PipedOutputStream(pipeIn); final PipedInputStream in = new PipedInputStream(); final PipedOutputStream pipeOut = new PipedOut...
public void start() { super.start(); try { final PipedInputStream pipeIn = new PipedInputStream(); final PipedOutputStream out = new PipedOutputStream(pipeIn); final PipedInputStream in = new PipedInputStream(); final PipedOutputStream pipeOut = new PipedOut...
3,237,386
public void run() { byte[] buffer = new byte[256]; try { while (true) { int len = in.read(buffer); text.append(new String(buffer, 0, len)); text.setCaretPosition(...
public void run() { byte[] buffer = new byte[256]; try { while (true) { int len = in.read(buffer); text.append(new String(buffer, 0, len)); text.setCaretPosition(...
3,237,387
private DatasetsAddTableModel() { DatasetData ds; for (int i = 0; i < datasets.length; i++) { ds = (DatasetData) datasets[i]; data[i][0] = ds.getName(); data[i][1] = new Boolean(dats.contains(ds)); } }
private DatasetsAddTableModel() { DatasetData ds; for (int i = 0; i < datasets.length; i++) { ds = (DatasetData) datasets[i]; data[i][0] = ds.getName(); data[i][1] = new Boolean(dats.contains(ds)); } }
3,237,388
public void mouseDragged(MouseEvent evt) { if (dragging == false) return; int x = Math.min(evt.getX(), getSize().width - 1); x = Math.max(x, 0); int y = Math.min(evt.getY(), getSize().height - 1); y = Math.max(y, 0); paintComponent(g); Rectangle r = new Rectangle(Math.min(prevX, x), Math.min(prevY, y), Mat...
public void mouseDragged(MouseEvent evt) { if (dragging == false) return; int x = Math.min(evt.getX(), getSize().width - 1); x = Math.max(x, 0); int y = Math.min(evt.getY(), getSize().height - 1); y = Math.max(y, 0); paintComponent(g); Rectangle r = new Rectangle(Math.min(prevX, x), Math.min(prevY, y), Mat...
3,237,391
public void mouseReleased(MouseEvent evt) { if (dragging == false) return; dragging = false; g.dispose(); g = null; rectangles.add(rect); rect = null; }
public void mouseReleased(MouseEvent evt) { if (dragging == false) return; dragging = false; g.dispose(); g = null; rectangles.add(rect); rect = null; }
3,237,392
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //...
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //...
3,237,393
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //...
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //...
3,237,394
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //...
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was...
3,237,395
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //...
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //...
3,237,396
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //...
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //...
3,237,397
public void update(Observable p, Object arg1) { constraints = ((QPRectanglePlacement) p).constraintGenerator.getConstraints(); paintComponent(getGraphics()); }
public void update(Observable p, Object arg1) { constraints = ((QPRectanglePlacement) p).constraintGenerator.getConstraints(); paintComponent(getGraphics()); }
3,237,398
private MainWindow(String title, ImageIcon icon) { // Initialize and dock the menus configureMenu(); // Add Workspace Container getContentPane().setLayout(new BorderLayout()); // Add menubar this.setJMenuBar(mainWindowBar); this.getContentPane().add(topBar, BorderLay...
private MainWindow(String title, ImageIcon icon) { // Initialize and dock the menus buildMenu(); // Add Workspace Container getContentPane().setLayout(new BorderLayout()); // Add menubar this.setJMenuBar(mainWindowBar); this.getContentPane().add(topBar, BorderLayout....
3,237,399
public void run() { checkUpdate(false); }
public void run() { checkForUpdates(false); }
3,237,400
public void actionPerformed(ActionEvent actionEvent) { checkUpdate(true); }
public void actionPerformed(ActionEvent actionEvent) { checkForUpdates(true); }
3,237,401
public void logout(boolean sendStatus) { final XMPPConnection con = SparkManager.getConnection(); if (con.isConnected() && sendStatus) { final InputTextAreaDialog inputTextDialog = new InputTextAreaDialog(); String status = inputTextDialog.getInput("Status Message", "Let others k...
public void logout(boolean sendStatus) { final XMPPConnection con = SparkManager.getConnection(); if (con.isConnected() && sendStatus) { final InputTextAreaDialog inputTextDialog = new InputTextAreaDialog(); String status = inputTextDialog.getInput(Res.getString("title.status.mes...
3,237,402
public void create() { super.create(); delegate = (IPixels) applicationContext.getBean( IPixels.class.getName()); }
public void create() { super.create(); delegate = (IPixels) applicationContext.getBean( IPixels.class.getName()); }
3,237,404
public Object invoke( InvocationContext context ) throws Exception { return wrap( context, "&pixelsService" ); }
public Object invoke( InvocationContext context ) throws Exception { return wrap( context, IPixels.class ); }
3,237,405
void createUI() { createWheel(); createHSVSlider(); createAlphaSlider(); createAlphaTextbox(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); //setLayout(new FlowLayout()); container.add(wheel); container.add(UIUtilities.buildComponen...
void createUI() { createWheel(); createHSVSlider(); createAlphaSlider(); createAlphaTextbox(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); //setLayout(new FlowLayout()); container.add(wheel); container.add(UIUtilities.buildComponen...
3,237,407
void createUI() { createWheel(); createHSVSlider(); createAlphaSlider(); createAlphaTextbox(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); //setLayout(new FlowLayout()); container.add(wheel); container.add(UIUtilities.buildComponen...
void createUI() { createWheel(); createHSVSlider(); createAlphaSlider(); createAlphaTextbox(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); //setLayout(new FlowLayout()); container.add(wheel); container.add(UIUtilities.buildComponen...
3,237,408
public static IRubyObject new_float(IRubyObject recv, IRubyObject object) { return object.callMethod(recv.getRuntime().getCurrentContext(), "to_f"); }
public static IRubyObject new_float(IRubyObject recv, IRubyObject object) { if(object instanceof RubyString) { return RubyNumeric.str2fnum(recv.getRuntime(),(RubyString)object,true); } else { return object.callMethod(recv.getRuntime().getCurrentContext(), "to_f"); } }
3,237,409
public static IRubyObject new_integer(IRubyObject recv, IRubyObject object) { ThreadContext context = recv.getRuntime().getCurrentContext(); if(object instanceof RubyString) { String val = object.toString(); if(val.length() > 0 && val.charAt(0) == '0') { if...
public static IRubyObject new_integer(IRubyObject recv, IRubyObject object) { ThreadContext context = recv.getRuntime().getCurrentContext(); if(object instanceof RubyString) { String val = object.toString(); if(val.length() > 0 && val.charAt(0) == '0') { if...
3,237,410
public static IRubyObject new_integer(IRubyObject recv, IRubyObject object) { ThreadContext context = recv.getRuntime().getCurrentContext(); if(object instanceof RubyString) { String val = object.toString(); if(val.length() > 0 && val.charAt(0) == '0') { if...
public static IRubyObject new_integer(IRubyObject recv, IRubyObject object) { ThreadContext context = recv.getRuntime().getCurrentContext(); if(object instanceof RubyString) { String val = object.toString(); if(val.length() > 0 && val.charAt(0) == '0') { if...
3,237,411
public static IRubyObject new_integer(IRubyObject recv, IRubyObject object) { ThreadContext context = recv.getRuntime().getCurrentContext(); if(object instanceof RubyString) { String val = object.toString(); if(val.length() > 0 && val.charAt(0) == '0') { if...
public static IRubyObject new_integer(IRubyObject recv, IRubyObject object) { ThreadContext context = recv.getRuntime().getCurrentContext(); if(object instanceof RubyString) { String val = object.toString(); if(val.length() > 0 && val.charAt(0) == '0') { if...
3,237,412
public static IRubyObject new_integer(IRubyObject recv, IRubyObject object) { ThreadContext context = recv.getRuntime().getCurrentContext(); if(object instanceof RubyString) { String val = object.toString(); if(val.length() > 0 && val.charAt(0) == '0') { if...
public static IRubyObject new_integer(IRubyObject recv, IRubyObject object) { ThreadContext context = recv.getRuntime().getCurrentContext(); if(object instanceof RubyString) { String val = object.toString(); if(val.length() > 0 && val.charAt(0) == '0') { if...
3,237,413
public void destroy(StopStrategy stopStrategy) throws IllegalServiceStateException, UnsatisfiedConditionsException { // if we are not restartable, we need to stop try { if (!stop(stopStrategy)) { throw new IllegalServiceStateException("Service did not stop", serviceName); ...
public void destroy(StopStrategy stopStrategy) throws IllegalServiceStateException, UnsatisfiedConditionsException { // if we are not restartable, we need to stop try { if (!stop(stopStrategy)) { throw new IllegalServiceStateException("Service did not stop", serviceName); ...
3,237,414
private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ...
private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ...
3,237,415
private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ...
private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ...
3,237,416
private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ...
private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ...
3,237,417
private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ...
private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ...
3,237,418
public void initialize() throws IllegalServiceStateException, UnsatisfiedConditionsException, Exception { if (!serviceFactory.isRestartable() && !serviceFactory.isEnabled()) { throw new IllegalServiceStateException("A disabled non-restartable service factory can not be initalized", serviceName); ...
public void initialize() throws IllegalServiceStateException, UnsatisfiedConditionsException, Exception { if (!serviceFactory.isRestartable() && !serviceFactory.isEnabled()) { throw new IllegalServiceStateException("A disabled non-restartable service factory can not be initalized", serviceName); ...
3,237,419
public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))...
public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))...
3,237,420
public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))...
public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))...
3,237,421
public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))...
public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))...
3,237,422
public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))...
public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))...
3,237,423
public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"...
public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"...
3,237,424
public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"...
public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"...
3,237,425
public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"...
public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"...
3,237,426
public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"...
public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"...
3,237,427
public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"...
public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"...
3,237,428
public ObjectSpaceIterator(RubyModule rubyClass) { this.rubyClass = rubyClass; this.iterator = new ArrayList(references).iterator(); prefetch(); }
public ObjectSpaceIterator(RubyModule rubyClass) { this.rubyClass = rubyClass; this.iterator = new ArrayList(references).iterator(); prefetch(); }
3,237,429
public String toString(){ return "Project"+(projectId==null ? ":Hash"+this.hashCode() : ":"+projectId); }
public String toString(){ return "Project"+(projectId==null ? ":Hash_"+this.hashCode() : ":Id_"+projectId); }
3,237,430
public void clearThumbnails() { thumbnailSet.clear(); for(Iterator iter = groupModels.iterator(); iter.hasNext();) { GroupModel group = (GroupModel)iter.next(); group.clearThumbnails(); } updateModelListeners(); }
public void clearThumbnails() { thumbnailSet.clear(); GroupModel[] models = groupingMethod.getGroups(); for(int i=0;i<models.length;i++) { GroupModel group = (GroupModel)iter.next(); group.clearThumbnails(); } updateModelListeners(); }
3,237,431
public void clearThumbnails() { thumbnailSet.clear(); for(Iterator iter = groupModels.iterator(); iter.hasNext();) { GroupModel group = (GroupModel)iter.next(); group.clearThumbnails(); } updateModelListeners(); }
public void clearThumbnails() { thumbnailSet.clear(); for(Iterator iter = groupModels.iterator(); iter.hasNext();) { GroupModel group = (GroupModel)iter.next(); group.clearThumbnails(); } updateModelListeners(); }
3,237,432
private void init() { env = BrowserEnvironment.getInstance(); progressListeners = new HashSet(); modelListeners = new HashSet(); selectedThumbnails = new HashSet(); attributeMap = new AttributeMap(); groupingMethod = new SingleGroupingMethod(); groupModels = Array...
private void init() { env = BrowserEnvironment.getInstance(); progressListeners = new HashSet(); modelListeners = new HashSet(); selectedThumbnails = new HashSet(); attributeMap = new AttributeMap(); groupingMethod = new SingleGroupingMethod(); defaultGroupingMeth...
3,237,433
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case T_FIELD_CMD: tFieldActionHandler(); break; case Z_FIELD_CMD: zFieldActionHandler(); break; case RENDER_CMD: control.showRendering(); break; case INSPECTOR_CMD: ...
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case T_FIELD_CMD: tFieldActionHandler(); break; case Z_FIELD_CMD: zFieldActionHandler(); break; case RENDER_CMD: control.showRendering(); break; case INSPECTOR_CMD: ...
3,237,436
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case T_FIELD_CMD: tFieldActionHandler(); break; case Z_FIELD_CMD: zFieldActionHandler(); break; case RENDER_CMD: control.showRendering(); break; case INSPECTOR_CMD: ...
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case T_FIELD_CMD: tFieldActionHandler(); break; case Z_FIELD_CMD: zFieldActionHandler(); break; case RENDER_CMD: control.showRendering(); break; case INSPECTOR_CMD: ...
3,237,437
public void focusLost(FocusEvent e) { String tVal = view.getTField().getText(), t = ""+curT; String zVal = view.getZField().getText(), z = ""+curZ; if (tVal == null || !tVal.equals(t)) view.getTField().setText(t); if (zVal == null || !zVal.equals(z)) view.getZField().setText(z); }
public void focusLost(FocusEvent e) { String tVal = view.getTField().getText(), t = ""+curT; String zVal = view.getZField().getText(), z = ""+curZ; if (tVal == null || !tVal.equals(t)) view.getTField().setText(t); if (zVal == null || !zVal.equals(z)) view.getZField().setText(z); }
3,237,438
private void tFieldActionHandler() { boolean valid = false; int val = 0; try { val = Integer.parseInt(view.getTField().getText()); if (0 <= val && val <= maxT) valid = true; } catch(NumberFormatException nfe) {} if (valid) { curT = val; control.onTChange(curZ, curT); } else { view.getTField().selectA...
private void tFieldActionHandler() { boolean valid = false; int val = 0; try { val = Integer.parseInt(view.getTField().getText()); if (0 <= val && val <= maxT) valid = true; } catch(NumberFormatException nfe) {} if (valid) { curT = val; control.onTChange(curZ, curT); } else { view.getTField().selectA...
3,237,439
private void zFieldActionHandler() { boolean valid = false; int val = 0; try { val = Integer.parseInt(view.getZField().getText()); if (0 <= val && val <= maxZ) valid = true; } catch(NumberFormatException nfe) {} if (valid) { curZ = val; control.onZChange(curZ, curT); } else { view.getZField().selectAl...
private void zFieldActionHandler() { boolean valid = false; int val = 0; try { val = Integer.parseInt(view.getZField().getText()); if (0 <= val && val <= maxZ) valid = true; } catch(NumberFormatException nfe) {} if (valid) { curZ = val; control.onZChange(curZ, curT); } else { view.getZField().selectAl...
3,237,440
public LineGeometry(SpotsTrajectory t,Extents extents) { super(t.getLength(),GeometryArray.COORDINATES,new int[] {t.getLength()}); this.traj=t; this.extents = extents; // set coordinates pts = new Point3d[t.getLength()]; for (int i = 0; i < t.getLength(); i++) { SpotsTrajec...
public LineGeometry(SpotsTrajectory t,Extents extents) { super(t.getLength(),GeometryArray.COORDINATES,new int[] {t.getLength()}); this.traj=t; this.extents = extents; // set coordinates pts = new Point3d[t.getLength()]; for (int i = 0; i < t.getLength(); i++) { SpotsTrajec...
3,237,441
public void mousePressed(MouseEvent e) { Point p = new Point(e.getPoint()); view.resetLens(); if (!dragging && onOff && drawingArea.contains(p)) { dragging = true; drawLens(p); } }
public void mousePressed(MouseEvent e) { Point p = new Point(e.getPoint()); view.resetLens(); if (!dragging && onOff && drawingArea.contains(p)) { dragging = true; drawLens(p); } }
3,237,442
public ImageInspectorManager(ImageInspector view, ViewerCtrl control, double magFactor) { this.view = view; this.control = control; curZoomLevel = magFactor; attachListener(); }
public ImageInspectorManager(ImageInspector view, ViewerCtrl control, double magFactor) { this.view = view; this.control = control; curZoomLevel = magFactor; attachListener(); }
3,237,443
public ImageInspectorManager(ImageInspector view, ViewerCtrl control, double magFactor) { this.view = view; this.control = control; curZoomLevel = magFactor; attachListener(); }
public ImageInspectorManager(ImageInspector view, ViewerCtrl control, double magFactor) { this.view = view; this.control = control; curZoomLevel = magFactor; attachListener(); }
3,237,444
private void attachListener() { view.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { onClosing(); } }); }
private void attachListener() { view.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { onClosing(); } }); }
3,237,445
private void onClosing() { control.setMagFactor(curZoomLevel); view.dispose(); }
private void onClosing() { canvas.resetLens(); canvas.repaint(); view.dispose(); }
3,237,446
void setImageDimension(int width, int height) { imageWidth = width; imageHeight = height; }
void setImageDimension(int width, int height) { imageWidth = width; imageHeight = height; }
3,237,447
public void setZoomLevel(double level) { if (curZoomLevel != level) { zoom(level); curZoomLevel = level; } }
public void setZoomLevel(double level) { if (curZoomLevel != level) { zoom(level); curZoomLevel = level; } }
3,237,448
private void zoom(double level) { ZoomBar zoomBar = view.toolBar.getZoomBar(); zoomBar.getManager().setText(level); ZoomMenu zoomMenu = view.menuBar.getZoomMenu(); zoomMenu.getManager().setItemSelected(level); int w = (int) (imageWidth*level)+2*ViewerUIF.START; int h = (int) (imageHeight*level)+2*ViewerUIF...
private void zoom(double level) { ZoomBar zoomBar = view.toolBar.getZoomBar(); zoomBar.getManager().setText(level); ZoomMenu zoomMenu = view.menuBar.getZoomMenu(); zoomMenu.getManager().setItemSelected(level); int w = (int) (imageWidth*level)+2*ViewerUIF.START; int h = (int) (imageHeight*level)+2*ViewerUIF...
3,237,449
private void zoom(double level) { ZoomBar zoomBar = view.toolBar.getZoomBar(); zoomBar.getManager().setText(level); ZoomMenu zoomMenu = view.menuBar.getZoomMenu(); zoomMenu.getManager().setItemSelected(level); int w = (int) (imageWidth*level)+2*ViewerUIF.START; int h = (int) (imageHeight*level)+2*ViewerUIF...
private void zoom(double level) { ZoomBar zoomBar = view.toolBar.getZoomBar(); zoomBar.getManager().setText(level); ZoomMenu zoomMenu = view.menuBar.getZoomMenu(); zoomMenu.getManager().setItemSelected(level); int w = (int) (imageWidth*level)+2*ViewerUIF.START; int h = (int) (imageHeight*level)+2*ViewerUIF...
3,237,450
public static String summary(Object a) { Map count = new HashMap(); StringBuffer sb = new StringBuffer(summary(a, "\n", count)); sb.append("-----------------------------\n"); for (Iterator i = count.keySet().iterator(); i.hasNext();) { Class c = (Class) i.next(); Se...
public static String summary(Object a) { Map count = new HashMap(); StringBuffer sb = new StringBuffer(summary(a, "\n", count)); sb.append("\n-----------------------------\n"); for (Iterator i = count.keySet().iterator(); i.hasNext();) { Class c = (Class) i.next(); ...
3,237,451
private void handleRaise(JumpException je) { RaiseException re = (RaiseException)je; RubyException raisedException = re.getException(); setResult(raisedException); // TODO: Rubicon TestKernel dies without this line. A cursory glance implies we // falsely set $! to nil and this se...
private void handleRaise(JumpException je) { RaiseException re = (RaiseException)je; RubyException raisedException = re.getException(); flushResults(); // TODO: Rubicon TestKernel dies without this line. A cursory glance implies we // falsely set $! to nil and this sets it bac...
3,237,454
public void initLoad(ArrayList ioAdditionalDirectory) { // don't know what this is used for in MRI, it holds the handle of all loaded libs // ruby_dln_librefs = rb_ary_new(); //in MRI the ruby installation path is determined from the place where the ruby lib is found //of course we can'...
public void initLoad(ArrayList ioAdditionalDirectory) { // don't know what this is used for in MRI, it holds the handle of all loaded libs // ruby_dln_librefs = rb_ary_new(); //in MRI the ruby installation path is determined from the place where the ruby lib is found //of course we can'...
3,237,455
public void initLoad(ArrayList ioAdditionalDirectory) { // don't know what this is used for in MRI, it holds the handle of all loaded libs // ruby_dln_librefs = rb_ary_new(); //in MRI the ruby installation path is determined from the place where the ruby lib is found //of course we can'...
public void initLoad(ArrayList ioAdditionalDirectory) { // don't know what this is used for in MRI, it holds the handle of all loaded libs // ruby_dln_librefs = rb_ary_new(); //in MRI the ruby installation path is determined from the place where the ruby lib is found //of course we can'...
3,237,456
private void addContactListToWorkspace() { Workspace workspace = SparkManager.getWorkspace(); workspace.getWorkspacePane().addTab("Contacts", SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); //NOTRANS // Add To Contacts Menu final JMenu contactsMenu = SparkManager.getMainWin...
private void addContactListToWorkspace() { Workspace workspace = SparkManager.getWorkspace(); workspace.getWorkspacePane().addTab(Res.getString("tab.contacts"), SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); //NOTRANS // Add To Contacts Menu final JMenu contactsMenu = Spar...
3,237,460
private void addContactListToWorkspace() { Workspace workspace = SparkManager.getWorkspace(); workspace.getWorkspacePane().addTab("Contacts", SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); //NOTRANS // Add To Contacts Menu final JMenu contactsMenu = SparkManager.getMainWin...
private void addContactListToWorkspace() { Workspace workspace = SparkManager.getWorkspace(); workspace.getWorkspacePane().addTab("Contacts", SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); //NOTRANS // Add To Contacts Menu final JMenu contactsMenu = SparkManager.getMainWin...
3,237,461
private void addContactListToWorkspace() { Workspace workspace = SparkManager.getWorkspace(); workspace.getWorkspacePane().addTab("Contacts", SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); //NOTRANS // Add To Contacts Menu final JMenu contactsMenu = SparkManager.getMainWin...
private void addContactListToWorkspace() { Workspace workspace = SparkManager.getWorkspace(); workspace.getWorkspacePane().addTab("Contacts", SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); //NOTRANS // Add To Contacts Menu final JMenu contactsMenu = SparkManager.getMainWin...
3,237,462
private void attachListeners(JMenu menu) { menu.addMenuListener(new MenuListener() { /** Adds menu items when selected. */ public void menuSelected(MenuEvent e) { Object source = e.getSource(); if (source instanceof JMenu) ...
privatevoidattachListeners(JMenumenu){menu.addMenuListener(newMenuListener(){/**Addsmenuitemswhenselected.*/publicvoidmenuSelected(MenuEvente){Objectsource=e.getSource();if(sourceinstanceofJMenu)createWindowsMenuItems((JMenu)source);}/***RequiredbyI/Fbutnotactuallyneededinourcase,*noopimplementation.*@seeMenuListener#m...
3,237,463
void initialize(HiViewerWin view) { if (view == null) throw new NullPointerException("No view."); this.view = view; historyState = -1; model.addChangeListener(this); if (!HiViewerFactory.isWindowMenuAttachedToTaskBar()) { attachListeners(HiViewerFactory.getWindowMen...
void initialize(HiViewerWin view) { if (view == null) throw new NullPointerException("No view."); this.view = view; historyState = -1; model.addChangeListener(this); if (!HiViewerFactory.isWindowMenuAttachedToTaskBar()) { attachListeners(HiViewerFactory.getWindowMen...
3,237,464
static public ProjectData go(Project p, Map cache) { if (!ok(cache)) throw new IllegalArgumentException(cacheError); if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.g...
static public ProjectData go(Project p, Map cache) { if (!ok(cache)) throw new IllegalArgumentException(cacheError); if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.g...
3,237,465
static void to(Map cache, Object key, Object value) { // FIXME Why are there NULLs in the Cache!!!! cache.put(key, value); // TODO return either original value or a new one -- tough. Not when all // inherit from a single DataObject!!?? }
staticvoidto(Mapcache,Objectkey,Objectvalue){//FIXMEWhyarethereNULLsintheCache!!!!cache.put(key,value);//TODOreturneitheroriginalvalueoranewone--tough.Notwhenall//inheritfromasingleDataObject!!??}
3,237,466
static void to(Map cache, Object key, Object value) { // FIXME Why are there NULLs in the Cache!!!! cache.put(key, value); // TODO return either original value or a new one -- tough. Not when all // inherit from a single DataObject!!?? }
static void to(Map cache, Object key, Object value) {// FIXME Why are there NULLs in the Cache!!!!cache.put(key, value);// TODO return either original value or a new one -- tough. Not when all// inherit from a single DataObject!!??}
3,237,467
public String getChannelFamily(int w) { return rndDef.getChannel(w).getFamily(); //return servant.getChannelFamily(w).getValue(); }
publicStringgetChannelFamily(intw){returnrndDef.getChannel(w).getFamily();//returnservant.getChannelFamily(w).getValue();}
3,237,468
public String getModel() { return rndDef.getColorModel(); //return servant.getModel().getValue(); }
publicStringgetModel(){returnrndDef.getColorModel();//returnservant.getModel().getValue();}
3,237,469
public SoundPanel() { setLayout(new GridBagLayout()); // Add ResourceUtils ResourceUtils.resButton(incomingMessageBox, "&Play sound when new message arrives"); ResourceUtils.resButton(outgoingMessageBox, "&Play sound when a message is sent"); ResourceUtils....
public SoundPanel() { setLayout(new GridBagLayout()); // Add ResourceUtils ResourceUtils.resButton(incomingMessageBox, "&Play sound when new message arrives"); ResourceUtils.resButton(outgoingMessageBox, "&Play sound when a message is sent"); ResourceUtils....
3,237,470
public RubyClass getArgumentError() { return argumentError; }
public RubyClass getArgumentError() { return argumentError; }
3,237,471
public RubyClass getFatal() { return fatal; }
public RubyClass getFatal() { return fatal; }
3,237,472
public RubyClass getIndexError() { return indexError; }
public RubyClass getIndexError() { return indexError; }
3,237,473
public RubyClass getInterrupt() { return interrupt; }
public RubyClass getInterrupt() { return interrupt; }
3,237,474
public RubyClass getLoadError() { return loadError; }
public RubyClass getLoadError() { return loadError; }
3,237,475
public RubyClass getNameError() { return nameError; }
public RubyClass getNameError() { return nameError; }
3,237,476
public RubyClass getNoMemError() { return noMemError; }
public RubyClass getNoMemError() { return noMemError; }
3,237,477