bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public ReceiveMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); titleLabel.setFont(new Font("Dialog", Font.BOLD, 11)); titleLabel.setForeground(new Color(211, 174, 102)); add(fileLabel, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); add(acceptLabel, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); add(declineLabel, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); ResourceUtils.resButton(acceptLabel, Res.getString("accept")); ResourceUtils.resButton(declineLabel, Res.getString("reject")); // Decorate Cancel Button decorateCancelButton(); acceptLabel.setForeground(new Color(73, 113, 196)); declineLabel.setForeground(new Color(73, 113, 196)); declineLabel.setFont(new Font("Dialog", Font.BOLD, 10)); acceptLabel.setFont(new Font("Dialog", Font.BOLD, 10)); acceptLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); declineLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.white)); acceptLabel.addMouseListener(new MouseAdapter() { public void mouseEntered(MouseEvent e) { acceptLabel.setCursor(new Cursor(Cursor.HAND_CURSOR)); } public void mouseExited(MouseEvent e) { acceptLabel.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } }); declineLabel.addMouseListener(new MouseAdapter() { public void mouseEntered(MouseEvent e) { declineLabel.setCursor(new Cursor(Cursor.HAND_CURSOR)); } public void mouseExited(MouseEvent e) { declineLabel.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } }); }
public ReceiveMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); titleLabel.setFont(new Font("Dialog", Font.BOLD, 11)); titleLabel.setForeground(new Color(211, 174, 102)); add(fileLabel, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); add(acceptLabel, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); add(declineLabel, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); ResourceUtils.resButton(acceptLabel, Res.getString("accept")); ResourceUtils.resButton(declineLabel, Res.getString("reject")); // Decorate Cancel Button decorateCancelButton(); acceptLabel.setForeground(new Color(73, 113, 196)); declineLabel.setForeground(new Color(73, 113, 196)); declineLabel.setFont(new Font("Dialog", Font.BOLD, 10)); acceptLabel.setFont(new Font("Dialog", Font.BOLD, 10)); acceptLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); declineLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.white)); acceptLabel.addMouseListener(new MouseAdapter() { public void mouseEntered(MouseEvent e) { acceptLabel.setCursor(new Cursor(Cursor.HAND_CURSOR)); } public void mouseExited(MouseEvent e) { acceptLabel.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } }); declineLabel.addMouseListener(new MouseAdapter() { public void mouseEntered(MouseEvent e) { declineLabel.setCursor(new Cursor(Cursor.HAND_CURSOR)); } public void mouseExited(MouseEvent e) { declineLabel.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } }); }
3,232,117
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); titleLabel.setFont(new Font("Dialog", Font.BOLD, 11)); titleLabel.setForeground(new Color(211, 174, 102)); add(fileLabel, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); cancelButton.setText(Res.getString("cancel")); retryButton.setText(Res.getString("retry")); add(cancelButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); add(retryButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); retryButton.setVisible(false); retryButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { File file = new File(transfer.getFilePath()); transfer = transferManager.createOutgoingFileTransfer(fullJID); transfer.sendFile(file, "Sending"); } catch (XMPPException e1) { e1.printStackTrace(); } sendFile(transfer, transferManager, fullJID, nickname); } }); cancelButton.setForeground(new Color(73, 113, 196)); cancelButton.setFont(new Font("Dialog", Font.BOLD, 10)); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); retryButton.setForeground(new Color(73, 113, 196)); retryButton.setFont(new Font("Dialog", Font.BOLD, 10)); retryButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.white)); }
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); titleLabel.setFont(new Font("Dialog", Font.BOLD, 11)); titleLabel.setForeground(new Color(211, 174, 102)); add(fileLabel, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); cancelButton.setText(Res.getString("cancel")); retryButton.setText(Res.getString("retry")); add(cancelButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); add(retryButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); retryButton.setVisible(false); retryButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { File file = new File(transfer.getFilePath()); transfer = transferManager.createOutgoingFileTransfer(fullJID); transfer.sendFile(file, "Sending"); } catch (XMPPException e1) { Log.error(e1); } sendFile(transfer, transferManager, fullJID, nickname); } }); cancelButton.setForeground(new Color(73, 113, 196)); cancelButton.setFont(new Font("Dialog", Font.BOLD, 10)); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); retryButton.setForeground(new Color(73, 113, 196)); retryButton.setFont(new Font("Dialog", Font.BOLD, 10)); retryButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.white)); }
3,232,118
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); titleLabel.setFont(new Font("Dialog", Font.BOLD, 11)); titleLabel.setForeground(new Color(211, 174, 102)); add(fileLabel, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); cancelButton.setText(Res.getString("cancel")); retryButton.setText(Res.getString("retry")); add(cancelButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); add(retryButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); retryButton.setVisible(false); retryButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { File file = new File(transfer.getFilePath()); transfer = transferManager.createOutgoingFileTransfer(fullJID); transfer.sendFile(file, "Sending"); } catch (XMPPException e1) { e1.printStackTrace(); } sendFile(transfer, transferManager, fullJID, nickname); } }); cancelButton.setForeground(new Color(73, 113, 196)); cancelButton.setFont(new Font("Dialog", Font.BOLD, 10)); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); retryButton.setForeground(new Color(73, 113, 196)); retryButton.setFont(new Font("Dialog", Font.BOLD, 10)); retryButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.white)); }
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); titleLabel.setFont(new Font("Dialog", Font.BOLD, 11)); titleLabel.setForeground(new Color(211, 174, 102)); add(fileLabel, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); cancelButton.setText(Res.getString("cancel")); retryButton.setText(Res.getString("retry")); add(cancelButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); add(retryButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); retryButton.setVisible(false); retryButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { File file = new File(transfer.getFilePath()); transfer = transferManager.createOutgoingFileTransfer(fullJID); transfer.sendFile(file, "Sending"); } catch (XMPPException e1) { e1.printStackTrace(); } sendFile(transfer, transferManager, fullJID, nickname); } }); cancelButton.setForeground(new Color(73, 113, 196)); cancelButton.setFont(new Font("Dialog", Font.BOLD, 11)); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); retryButton.setForeground(new Color(73, 113, 196)); retryButton.setFont(new Font("Dialog", Font.BOLD, 10)); retryButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.white)); }
3,232,119
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); titleLabel.setFont(new Font("Dialog", Font.BOLD, 11)); titleLabel.setForeground(new Color(211, 174, 102)); add(fileLabel, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); cancelButton.setText(Res.getString("cancel")); retryButton.setText(Res.getString("retry")); add(cancelButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); add(retryButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); retryButton.setVisible(false); retryButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { File file = new File(transfer.getFilePath()); transfer = transferManager.createOutgoingFileTransfer(fullJID); transfer.sendFile(file, "Sending"); } catch (XMPPException e1) { e1.printStackTrace(); } sendFile(transfer, transferManager, fullJID, nickname); } }); cancelButton.setForeground(new Color(73, 113, 196)); cancelButton.setFont(new Font("Dialog", Font.BOLD, 10)); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); retryButton.setForeground(new Color(73, 113, 196)); retryButton.setFont(new Font("Dialog", Font.BOLD, 10)); retryButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.white)); }
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); titleLabel.setFont(new Font("Dialog", Font.BOLD, 11)); titleLabel.setForeground(new Color(211, 174, 102)); add(fileLabel, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); cancelButton.setText(Res.getString("cancel")); retryButton.setText(Res.getString("retry")); add(cancelButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); add(retryButton, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); retryButton.setVisible(false); retryButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { File file = new File(transfer.getFilePath()); transfer = transferManager.createOutgoingFileTransfer(fullJID); transfer.sendFile(file, "Sending"); } catch (XMPPException e1) { e1.printStackTrace(); } sendFile(transfer, transferManager, fullJID, nickname); } }); cancelButton.setForeground(new Color(73, 113, 196)); cancelButton.setFont(new Font("Dialog", Font.BOLD, 10)); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); retryButton.setForeground(new Color(73, 113, 196)); retryButton.setFont(new Font("Dialog", Font.BOLD, 11)); retryButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.white)); }
3,232,120
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { return "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
3,232,121
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
3,232,122
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
3,232,123
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
3,232,124
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
3,232,125
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
3,232,126
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
3,232,127
private String getArgumentsString(MethodInvocation mi) { String arguments; Object[] args = mi.getArguments(); if (args == null || args.length < 1) { arguments = "()"; } else { Object[] allAnnotations = AnnotationUtils.findParameterAnnotations( mi.getThis().getClass(), mi.getMethod()); for (int j = 0; j < allAnnotations.length; j++) { Annotation[][] anns = (Annotation[][]) allAnnotations[j]; if (anns == null) continue; for (int i = 0; i < args.length; i++) { Annotation[] annotations = anns[i]; for (Annotation annotation : annotations) { if (Hidden.class.equals(annotation.annotationType())) { args[i] = "********"; } } } } arguments = Arrays.asList(mi.getArguments()).toString(); } return arguments; }
arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); private arguments = Arrays.asList(prnt).toString(); String arguments = Arrays.asList(prnt).toString(); getArgumentsString(MethodInvocation arguments = Arrays.asList(prnt).toString(); mi) arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); { arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); String arguments = Arrays.asList(prnt).toString(); arguments; arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); Object[] arguments = Arrays.asList(prnt).toString(); args arguments = Arrays.asList(prnt).toString(); = arguments = Arrays.asList(prnt).toString(); mi.getArguments(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); if arguments = Arrays.asList(prnt).toString(); (args arguments = Arrays.asList(prnt).toString(); == arguments = Arrays.asList(prnt).toString(); null arguments = Arrays.asList(prnt).toString(); || arguments = Arrays.asList(prnt).toString(); args.length arguments = Arrays.asList(prnt).toString(); < arguments = Arrays.asList(prnt).toString(); 1) arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); { arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments arguments = Arrays.asList(prnt).toString(); = arguments = Arrays.asList(prnt).toString(); "()"; arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); } arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); else arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); { arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); Object[] arguments = Arrays.asList(prnt).toString(); allAnnotations arguments = Arrays.asList(prnt).toString(); = arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); AnnotationUtils.findParameterAnnotations( arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); mi.getThis().getClass(), arguments = Arrays.asList(prnt).toString(); mi.getMethod()); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); for arguments = Arrays.asList(prnt).toString(); (int arguments = Arrays.asList(prnt).toString(); j arguments = Arrays.asList(prnt).toString(); = arguments = Arrays.asList(prnt).toString(); 0; arguments = Arrays.asList(prnt).toString(); j arguments = Arrays.asList(prnt).toString(); < arguments = Arrays.asList(prnt).toString(); allAnnotations.length; arguments = Arrays.asList(prnt).toString(); j++) arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); { arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); Annotation[][] arguments = Arrays.asList(prnt).toString(); anns arguments = Arrays.asList(prnt).toString(); = arguments = Arrays.asList(prnt).toString(); (Annotation[][]) arguments = Arrays.asList(prnt).toString(); allAnnotations[j]; arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); if arguments = Arrays.asList(prnt).toString(); (anns arguments = Arrays.asList(prnt).toString(); == arguments = Arrays.asList(prnt).toString(); null) arguments = Arrays.asList(prnt).toString(); continue; arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); for arguments = Arrays.asList(prnt).toString(); (int arguments = Arrays.asList(prnt).toString(); i arguments = Arrays.asList(prnt).toString(); = arguments = Arrays.asList(prnt).toString(); 0; arguments = Arrays.asList(prnt).toString(); i arguments = Arrays.asList(prnt).toString(); < arguments = Arrays.asList(prnt).toString(); args.length; arguments = Arrays.asList(prnt).toString(); i++) arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); { arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); Annotation[] arguments = Arrays.asList(prnt).toString(); annotations arguments = Arrays.asList(prnt).toString(); = arguments = Arrays.asList(prnt).toString(); anns[i]; arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); for arguments = Arrays.asList(prnt).toString(); (Annotation arguments = Arrays.asList(prnt).toString(); annotation arguments = Arrays.asList(prnt).toString(); : arguments = Arrays.asList(prnt).toString(); annotations) arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); { arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); if arguments = Arrays.asList(prnt).toString(); (Hidden.class.equals(annotation.annotationType())) arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); { arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); args[i] arguments = Arrays.asList(prnt).toString(); = arguments = Arrays.asList(prnt).toString(); "********"; arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); } arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); } arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); } arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); } arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments arguments = Arrays.asList(prnt).toString(); = arguments = Arrays.asList(prnt).toString(); Arrays.asList(mi.getArguments()).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); } arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); return arguments = Arrays.asList(prnt).toString(); arguments; arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); arguments = Arrays.asList(prnt).toString(); }
3,232,128
BottomBar(StatsResultsPaneMng mng, Registry reg) { initComponents(IconManager.getInstance(reg)); new BottomBarMng(this, mng); buildGUI(); }
BottomBar(StatsResultsPaneMng mng, Registry reg, int length) { initComponents(IconManager.getInstance(reg)); new BottomBarMng(this, mng); buildGUI(); }
3,232,129
BottomBar(StatsResultsPaneMng mng, Registry reg) { initComponents(IconManager.getInstance(reg)); new BottomBarMng(this, mng); buildGUI(); }
BottomBar(StatsResultsPaneMng mng, Registry reg) { initComponents(IconManager.getInstance(reg), length); new BottomBarMng(this, mng); buildGUI(); }
3,232,130
void initComponents(IconManager im) { save = new JButton(im.getIcon(IconManager.SAVE)); save.setToolTipText( UIUtilities.formatToolTipText("Save the result as a " + "Text file.")); graphic = new JButton(im.getIcon(IconManager.GRAPHIC)); graphic.setToolTipText( UIUtilities.formatToolTipText("Present results in a " + "graphical form.")); back = new JButton(im.getIcon(IconManager.BACK)); back.setToolTipText( UIUtilities.formatToolTipText("Back to the table.")); back.setEnabled(false); forward = new JButton(im.getIcon(IconManager.FORWARD)); forward.setToolTipText( UIUtilities.formatToolTipText("Back to the graphic.")); forward.setEnabled(false); ratio = new JButton(im.getIcon(IconManager.RATIO)); ratio.setToolTipText( UIUtilities.formatToolTipText("Calculate the ratio " + "of the results of 2 different ROIs.")); background = new JButton(im.getIcon(IconManager.BACKGROUND)); background.setToolTipText( UIUtilities.formatToolTipText("Subtract background.")); initial = new JButton(im.getIcon(IconManager.INITIAL)); initial.setToolTipText( UIUtilities.formatToolTipText("Display the original results.")); }
void initComponents(IconManager im, int length) { save = new JButton(im.getIcon(IconManager.SAVE)); save.setToolTipText( UIUtilities.formatToolTipText("Save the result as a " + "Text file.")); graphic = new JButton(im.getIcon(IconManager.GRAPHIC)); graphic.setToolTipText( UIUtilities.formatToolTipText("Present results in a " + "graphical form.")); back = new JButton(im.getIcon(IconManager.BACK)); back.setToolTipText( UIUtilities.formatToolTipText("Back to the table.")); back.setEnabled(false); forward = new JButton(im.getIcon(IconManager.FORWARD)); forward.setToolTipText( UIUtilities.formatToolTipText("Back to the graphic.")); forward.setEnabled(false); ratio = new JButton(im.getIcon(IconManager.RATIO)); ratio.setToolTipText( UIUtilities.formatToolTipText("Calculate the ratio " + "of the results of 2 different ROIs.")); background = new JButton(im.getIcon(IconManager.BACKGROUND)); background.setToolTipText( UIUtilities.formatToolTipText("Subtract background.")); initial = new JButton(im.getIcon(IconManager.INITIAL)); initial.setToolTipText( UIUtilities.formatToolTipText("Display the original results.")); }
3,232,131
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
3,232,133
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block = block.prev; if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
3,232,134
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
3,232,135
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
3,232,136
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
3,232,137
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (block == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); RubyScope oldScope = getScope(); setScope(tmpBlock.scope); block.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); while (true) { try { if (node == null) { result = getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } result = ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { result = node.eval(this, self); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); setScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
3,232,138
private void buildGUI(int l) { JPanel panel = new JPanel(); panel.add(scrollPane); Container container = getContentPane(); ReferenceFramePanel rfp = new ReferenceFramePanel("t", "z", "0"); rfp.setBackground(Color.white); TitlePanel tp = new TitlePanel("ROI selection Assistant", MSG, rfp); container.setLayout(new BoxLayout(container, BoxLayout.Y_AXIS)); container.add(tp); container.add(Box.createRigidArea(VBOX)); container.add(scrollPane); container.add(Box.createRigidArea(VBOX)); container.add(buildMain(l)); }
private void buildGUI(int l) { JPanel panel = new JPanel(); panel.add(scrollPane); Container container = getContentPane(); ReferenceFramePanel rfp = new ReferenceFramePanel("t", "z", "0"); rfp.setBackground(Color.white); TitlePanel tp = new TitlePanel("ROI selection Assistant", MSG, rfp); container.setLayout(new BoxLayout(container, BoxLayout.Y_AXIS)); container.add(tp); container.add(Box.createRigidArea(VBOX)); container.add(setScrollPaneSize()); container.add(Box.createRigidArea(VBOX)); container.add(buildMain(l)); }
3,232,139
private void initComponents(IconManager im, int numRows, int numColumns, ScreenROI roi) { moveResizeBox = new JCheckBox("Apply op to the stack"); moveResizeBox.setToolTipText( UIUtilities.formatToolTipText("Apply the Move/Resize action " + "to all 2D-selections drawn on planes " + "within the stack")); allTimepoints = new JRadioButton("Fill from start to end"); finalTimepoints = new JRadioButton("Copy start to end timepoints"); allTimepoints.setSelected(true); ButtonGroup group = new ButtonGroup(); group.add(allTimepoints); group.add(finalTimepoints); copyStack = new JButton(im.getIcon(IconManager.COPY_STACK)); copyStack.setToolTipText( UIUtilities.formatToolTipText("Copy the selected stack " + "across time.")); //TextField startT = new JTextField(""+0, (""+numColumns).length()); endT = new JTextField(""+(numColumns-1), (""+numColumns).length()); initTxtWidth(startT); //Initialize the table table = new ColoredCellTable(numRows, numColumns, roi.getLogicalROI()); JList rowHeader = new JList(new HeaderListModel(numRows)); if (numRows > MAX) rowHeader.setFixedCellWidth(WIDTH_MAX); else rowHeader.setFixedCellWidth(WIDTH_MIN); rowHeader.setFixedCellHeight(table.getRowHeight()); rowHeader.setCellRenderer(new RowHeaderRenderer(table)); scrollPane = new JScrollPane(table); scrollPane.setRowHeaderView(rowHeader); scrollPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 10)); }
private void initComponents(IconManager im, int numRows, int numColumns, ScreenROI roi) { moveResizeBox = new JCheckBox("Apply move/resize to the stack"); moveResizeBox.setToolTipText( UIUtilities.formatToolTipText("Apply the Move/Resize action " + "to all 2D-selections drawn on planes " + "within the stack")); allTimepoints = new JRadioButton("Fill from start to end"); finalTimepoints = new JRadioButton("Copy start to end timepoints"); allTimepoints.setSelected(true); ButtonGroup group = new ButtonGroup(); group.add(allTimepoints); group.add(finalTimepoints); copyStack = new JButton(im.getIcon(IconManager.COPY_STACK)); copyStack.setToolTipText( UIUtilities.formatToolTipText("Copy the selected stack " + "across time.")); //TextField startT = new JTextField(""+0, (""+numColumns).length()); endT = new JTextField(""+(numColumns-1), (""+numColumns).length()); initTxtWidth(startT); //Initialize the table table = new ColoredCellTable(numRows, numColumns, roi.getLogicalROI()); JList rowHeader = new JList(new HeaderListModel(numRows)); if (numRows > MAX) rowHeader.setFixedCellWidth(WIDTH_MAX); else rowHeader.setFixedCellWidth(WIDTH_MIN); rowHeader.setFixedCellHeight(table.getRowHeight()); rowHeader.setCellRenderer(new RowHeaderRenderer(table)); scrollPane = new JScrollPane(table); scrollPane.setRowHeaderView(rowHeader); scrollPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 10)); }
3,232,140
public Controls(ROIAgtCtrl control, Registry registry) { this.control = control; pressedBorder = BorderFactory.createLoweredBevelBorder(); initButtons(IconManager.getInstance(registry)); initBoxes(); manager = new ControlsManager(this, control); buildGUI(); }
public Controls(ROIAgtCtrl control, Registry registry) { this.control = control; pressedBorder = BorderFactory.createLoweredBevelBorder(); initButtons(IconManager.getInstance(registry)); initBoxes(); manager.attachListeners(); buildGUI(); }
3,232,142
private JToolBar buildButtonsBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.putClientProperty("JToolBar.isRollover", Boolean.TRUE); bar.add(rectangle); bar.add(Box.createRigidArea(HBOX)); bar.add(ellipse); bar.add(Box.createRigidArea(HBOX)); bar.add(moveROI); bar.add(Box.createRigidArea(HBOX)); bar.add(sizeROI); bar.add(Box.createRigidArea(HBOX)); bar.add(erase); bar.add(Box.createRigidArea(HBOX)); bar.add(eraseAll); bar.add(Box.createRigidArea(HBOX)); bar.add(undoErase); bar.add(Box.createRigidArea(HBOX)); bar.add(analyse); return bar; }
private JToolBar buildButtonsBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.putClientProperty("JToolBar.isRollover", Boolean.TRUE); bar.add(rectangle); bar.add(Box.createRigidArea(HBOX)); bar.add(ellipse); bar.add(Box.createRigidArea(HBOX)); bar.add(moveROI); bar.add(Box.createRigidArea(HBOX)); bar.add(sizeROI); bar.add(Box.createRigidArea(HBOX)); bar.add(erase); bar.add(Box.createRigidArea(HBOX)); bar.add(eraseAll); bar.add(Box.createRigidArea(HBOX)); bar.add(undoErase); bar.add(Box.createRigidArea(HBOX)); bar.add(analyse); return bar; }
3,232,143
public JPanel buildControlsPanel() { JPanel p = new JPanel(), bp = new JPanel(); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); p.setLayout(gridbag); JLabel l = new JLabel(" Selection Color"); bp = UIUtilities.buildComponentPanel(colors); c.gridx = 0; c.gridy = 0; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(l, c); p.add(l); c.gridx = 1; gridbag.setConstraints(bp, c); p.add(bp); c.gridx = 0; c.gridy = 1; l = new JLabel(" Channel"); bp = UIUtilities.buildComponentPanel(channels); gridbag.setConstraints(l, c); p.add(l); c.gridx = 1; gridbag.setConstraints(bp, c); p.add(bp); //c.gridx = 0; //c.gridy = 2; //l = new JLabel(" Draw"); //bp = UIUtilities.buildComponentPanel(drawOnOff); //gridbag.setConstraints(l, c); //p.add(l); //c.gridx = 1; //gridbag.setConstraints(bp, c); //p.add(bp); c.gridx = 0; c.gridy = 2; l = new JLabel(" Label"); bp = UIUtilities.buildComponentPanel(textOnOff); gridbag.setConstraints(l, c); p.add(l); c.gridx = 1; gridbag.setConstraints(bp, c); p.add(bp); c.gridx = 0; c.gridy = 3; l = new JLabel(" Annotate"); bp = UIUtilities.buildComponentPanel(annotationOnOff); gridbag.setConstraints(l, c); p.add(l); c.gridx = 1; gridbag.setConstraints(bp, c); p.add(bp); return p; }
public JPanel buildControlsPanel() { JPanel p = new JPanel(), bp = new JPanel(); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); p.setLayout(gridbag); JLabel l = new JLabel(" Selection Color"); bp = UIUtilities.buildComponentPanel(colors); c.gridx = 0; c.gridy = 0; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(l, c); p.add(l); c.gridx = 1; gridbag.setConstraints(bp, c); p.add(bp); c.gridx = 0; c.gridy = 1; l = new JLabel(" Channel"); bp = UIUtilities.buildComponentPanel(channels); gridbag.setConstraints(l, c); p.add(l); c.gridx = 1; gridbag.setConstraints(bp, c); p.add(bp); //c.gridx = 0; //c.gridy = 2; //l = new JLabel(" Draw"); //bp = UIUtilities.buildComponentPanel(drawOnOff); //gridbag.setConstraints(l, c); //p.add(l); //c.gridx = 1; //gridbag.setConstraints(bp, c); //p.add(bp); c.gridx = 0; c.gridy = 2; l = new JLabel(" Label"); bp = UIUtilities.buildComponentPanel(textOnOff); gridbag.setConstraints(l, c); p.add(l); c.gridx = 1; gridbag.setConstraints(bp, c); p.add(bp); c.gridx = 0; c.gridy = 3; l = new JLabel(" Annotate"); bp = UIUtilities.buildComponentPanel(annotationOnOff); gridbag.setConstraints(l, c); p.add(l); c.gridx = 1; gridbag.setConstraints(bp, c); p.add(bp); return p; }
3,232,144
private void initBoxes() { channels = new JComboBox(control.getChannels()); channels.setToolTipText( UIUtilities.formatToolTipText("Select a wavelength.")); colors = new JComboBox(selection); colors.setToolTipText( UIUtilities.formatToolTipText("Pick a color for this ROI.")); drawOnOff = new JCheckBox(); drawOnOff.setToolTipText( UIUtilities.formatToolTipText("Display the selections.")); drawOnOff.setSelected(true); textOnOff = new JCheckBox(); textOnOff.setToolTipText( UIUtilities.formatToolTipText("Display the ROI #.")); textOnOff.setSelected(false); annotationOnOff = new JCheckBox(); annotationOnOff.setToolTipText( UIUtilities.formatToolTipText("Display the annotated ROI.")); annotationOnOff.setSelected(false); }
private void initBoxes() { channels = new JComboBox(control.getChannels()); channels.setToolTipText( UIUtilities.formatToolTipText("Select a wavelength.")); colors = new JComboBox(selection); colors.setToolTipText( UIUtilities.formatToolTipText("Pick a color for this ROI.")); drawOnOff = new JCheckBox(); drawOnOff.setToolTipText( UIUtilities.formatToolTipText("Display the selections.")); drawOnOff.setSelected(true); textOnOff = new JCheckBox(); textOnOff.setToolTipText( UIUtilities.formatToolTipText("Display the ROI #.")); textOnOff.setSelected(false); annotationOnOff = new JCheckBox(); annotationOnOff.setToolTipText( UIUtilities.formatToolTipText("Display the annotated ROI.")); annotationOnOff.setSelected(false); }
3,232,145
private void initButtons(IconManager im) { rectangle = new JButton(im.getIcon(IconManager.RECTANGLE)); rectangle.setToolTipText( UIUtilities.formatToolTipText("Draw a rectangle.")); setButtonBorder(rectangle, true); ellipse = new JButton(im.getIcon(IconManager.ELLIPSE)); ellipse.setToolTipText( UIUtilities.formatToolTipText("Draw an ellipse.")); setButtonBorder(ellipse, false); erase = new JButton(im.getIcon(IconManager.ERASE)); erase.setToolTipText( UIUtilities.formatToolTipText("Erase the current shape.")); setButtonBorder(erase, false); eraseAll = new JButton(im.getIcon(IconManager.ERASE_ALL)); eraseAll.setToolTipText( UIUtilities.formatToolTipText("Erase all shapes.")); setButtonBorder(eraseAll, false); analyse = new JButton(im.getIcon(IconManager.ANALYSE)); analyse.setToolTipText( UIUtilities.formatToolTipText("Analyse data.")); setButtonBorder(analyse, false); moveROI = new JButton(im.getIcon(IconManager.MOVE_ROI)); moveROI.setToolTipText( UIUtilities.formatToolTipText("Move the selected selection.")); setButtonBorder(moveROI, false); sizeROI = new JButton(im.getIcon(IconManager.SIZE_ROI)); sizeROI.setToolTipText( UIUtilities.formatToolTipText("Resize the selected " + "selection.")); setButtonBorder(sizeROI, false); undoErase = new JButton(im.getIcon(IconManager.UNDO_ERASE)); undoErase.setToolTipText( UIUtilities.formatToolTipText("Restore the last erased " + "selection.")); setButtonBorder(undoErase, false); }
private void initButtons(IconManager im) { rectangle = new JButton(im.getIcon(IconManager.RECTANGLE)); rectangle.setToolTipText( UIUtilities.formatToolTipText("Draw a rectangle.")); setButtonBorder(rectangle, true); ellipse = new JButton(im.getIcon(IconManager.ELLIPSE)); ellipse.setToolTipText( UIUtilities.formatToolTipText("Draw an ellipse.")); setButtonBorder(ellipse, false); erase = new JButton(im.getIcon(IconManager.ERASE)); erase.setToolTipText( UIUtilities.formatToolTipText("Erase the current shape.")); setButtonBorder(erase, false); eraseAll = new JButton(im.getIcon(IconManager.ERASE_ALL)); eraseAll.setToolTipText( UIUtilities.formatToolTipText("Erase all shapes.")); setButtonBorder(eraseAll, false); analyse = new JButton(im.getIcon(IconManager.ANALYSE)); analyse.setToolTipText( UIUtilities.formatToolTipText("Analyse data.")); setButtonBorder(analyse, false); moveROI = new JButton(im.getIcon(IconManager.MOVE_ROI)); moveROI.setToolTipText( UIUtilities.formatToolTipText("Move the selected selection.")); setButtonBorder(moveROI, false); sizeROI = new JButton(im.getIcon(IconManager.SIZE_ROI)); sizeROI.setToolTipText( UIUtilities.formatToolTipText("Resize the selected " + "selection.")); setButtonBorder(sizeROI, false); undoErase = new JButton(im.getIcon(IconManager.UNDO_ERASE)); undoErase.setToolTipText( UIUtilities.formatToolTipText("Restore the last erased " + "selection.")); setButtonBorder(undoErase, false); }
3,232,146
private void initButtons(IconManager im) { rectangle = new JButton(im.getIcon(IconManager.RECTANGLE)); rectangle.setToolTipText( UIUtilities.formatToolTipText("Draw a rectangle.")); setButtonBorder(rectangle, true); ellipse = new JButton(im.getIcon(IconManager.ELLIPSE)); ellipse.setToolTipText( UIUtilities.formatToolTipText("Draw an ellipse.")); setButtonBorder(ellipse, false); erase = new JButton(im.getIcon(IconManager.ERASE)); erase.setToolTipText( UIUtilities.formatToolTipText("Erase the current shape.")); setButtonBorder(erase, false); eraseAll = new JButton(im.getIcon(IconManager.ERASE_ALL)); eraseAll.setToolTipText( UIUtilities.formatToolTipText("Erase all shapes.")); setButtonBorder(eraseAll, false); analyse = new JButton(im.getIcon(IconManager.ANALYSE)); analyse.setToolTipText( UIUtilities.formatToolTipText("Analyse data.")); setButtonBorder(analyse, false); moveROI = new JButton(im.getIcon(IconManager.MOVE_ROI)); moveROI.setToolTipText( UIUtilities.formatToolTipText("Move the selected selection.")); setButtonBorder(moveROI, false); sizeROI = new JButton(im.getIcon(IconManager.SIZE_ROI)); sizeROI.setToolTipText( UIUtilities.formatToolTipText("Resize the selected " + "selection.")); setButtonBorder(sizeROI, false); undoErase = new JButton(im.getIcon(IconManager.UNDO_ERASE)); undoErase.setToolTipText( UIUtilities.formatToolTipText("Restore the last erased " + "selection.")); setButtonBorder(undoErase, false); }
private void initButtons(IconManager im) { rectangle = new JButton(im.getIcon(IconManager.RECTANGLE)); rectangle.setToolTipText( UIUtilities.formatToolTipText("Draw a rectangle.")); setButtonBorder(rectangle, true); ellipse = new JButton(im.getIcon(IconManager.ELLIPSE)); ellipse.setToolTipText( UIUtilities.formatToolTipText("Draw an ellipse.")); setButtonBorder(ellipse, false); erase = new JButton(im.getIcon(IconManager.ERASE)); erase.setToolTipText( UIUtilities.formatToolTipText("Erase the current shape.")); setButtonBorder(erase, false); eraseAll = new JButton(im.getIcon(IconManager.ERASE_ALL)); eraseAll.setToolTipText( UIUtilities.formatToolTipText("Erase all shapes.")); setButtonBorder(eraseAll, false); analyse = new JButton(im.getIcon(IconManager.ANALYSE)); analyse.setToolTipText( UIUtilities.formatToolTipText("Analyse data.")); setButtonBorder(analyse, false); moveROI = new JButton(im.getIcon(IconManager.MOVE_ROI)); moveROI.setToolTipText( UIUtilities.formatToolTipText("Move the selected selection.")); setButtonBorder(moveROI, false); sizeROI = new JButton(im.getIcon(IconManager.SIZE_ROI)); sizeROI.setToolTipText( UIUtilities.formatToolTipText("Resize the selected " + "selection.")); setButtonBorder(sizeROI, false); undoErase = new JButton(im.getIcon(IconManager.UNDO_ERASE)); undoErase.setToolTipText( UIUtilities.formatToolTipText("Restore the last erased " + "selection.")); setButtonBorder(undoErase, false); }
3,232,147
ControlsManager(Controls view, ROIAgtCtrl control) { this.view = view; this.control = control; attachListeners(); }
ControlsManager(Controls view, ROIAgtCtrl control) { this.view = view; this.control = control; }
3,232,148
private void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
3,232,149
private void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
private void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
3,232,150
private void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
private void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
3,232,151
private void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
private void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
3,232,152
private void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
private void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
3,232,153
private void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
private void attachListeners() { JButton rectangle = view.getRectangle(), ellipse = view.getEllipse(), erase = view.getErase(), analyze = view.getAnalyse(), moveROI = view.getMoveROI(), sizeROI = view.getSizeROI(), eraseAll = view.getEraseAll(), undoErase = view.getUndoErase(); rectangle.setActionCommand(""+RECTANGLE); rectangle.addActionListener(this); ellipse.setActionCommand(""+ELLIPSE); ellipse.addActionListener(this); erase.setActionCommand(""+ERASE); erase.addActionListener(this); eraseAll.setActionCommand(""+ERASE_ALL); eraseAll.addActionListener(this); moveROI.setActionCommand(""+MOVE_ROI); moveROI.addActionListener(this); sizeROI.setActionCommand(""+SIZE_ROI); sizeROI.addActionListener(this); analyze.setActionCommand(""+ANALYSE); analyze.addActionListener(this); undoErase.setActionCommand(""+UNDO_ERASE); undoErase.addActionListener(this); //ComboBox JComboBox colorsBox = view.getColors(), channelsBox = view.getChannels(); colorsBox.addActionListener(this); colorsBox.setActionCommand(""+COLOR); channelsBox.addActionListener(this); channelsBox.setActionCommand(""+CHANNEL); //Box JCheckBox drawOnOff = view.getDrawOnOff(), textOnOff = view.getTextOnOff(), annotationOnOff = view.getAnnotationOnOff(); drawOnOff.addActionListener(this); drawOnOff.setActionCommand(""+DRAW_ON_OFF); textOnOff.addActionListener(this); textOnOff.setActionCommand(""+TEXT_ON_OFF); annotationOnOff.addActionListener(this); annotationOnOff.setActionCommand(""+ANNOTATION_ON_OFF); }
3,232,154
private void buildUI() { setLayout(new BorderLayout()); JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); treePanel.addListener(new HeatMapTreeListener() { public void nodeSelected(SemanticTypeTree.TreeNode node) { if(!(node instanceof SemanticTypeTree.ElementNode)) { gradPanel.setEnabled(false); } else gradPanel.setEnabled(true); } }); JScrollPane scrollPane = new JScrollPane(treePanel); scrollPane.setPreferredSize(new Dimension(250,200)); scrollPane.setSize(new Dimension(250,200)); mainPanel.add(scrollPane,BorderLayout.CENTER); JPanel controlPanel = new JPanel(); gradPanel.setPreferredSize(new Dimension(250,90)); gradPanel.setSize(new Dimension(250,90)); gradPanel.setEnabled(false); controlPanel.setLayout(new BorderLayout()); controlPanel.add(gradPanel,BorderLayout.CENTER); JPanel barPanel = new JPanel(); barPanel.setLayout(new BorderLayout()); barPanel.add(graphPanel,BorderLayout.NORTH); barPanel.add(modeBar,BorderLayout.CENTER); JPanel scalePanel = new JPanel(); scalePanel.add(scaleBar,BorderLayout.CENTER); controlPanel.add(barPanel,BorderLayout.NORTH); controlPanel.add(scalePanel,BorderLayout.SOUTH); mainPanel.add(controlPanel,BorderLayout.SOUTH); add(mainPanel,BorderLayout.CENTER); add(statusPanel,BorderLayout.SOUTH); statusPanel.showMessage("Dataset attributes loaded."); }
private void buildUI() { setLayout(new BorderLayout()); JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); treePanel.addListener(new HeatMapTreeListener() { public void nodeSelected(SemanticTypeTree.TreeNode node) { if(!(node instanceof SemanticTypeTree.ElementNode)) { gradPanel.setEnabled(false); } else { gradPanel.setEnabled(true); modeBar.setEnabled(true); } } }); JScrollPane scrollPane = new JScrollPane(treePanel); scrollPane.setPreferredSize(new Dimension(250,200)); scrollPane.setSize(new Dimension(250,200)); mainPanel.add(scrollPane,BorderLayout.CENTER); JPanel controlPanel = new JPanel(); gradPanel.setPreferredSize(new Dimension(250,90)); gradPanel.setSize(new Dimension(250,90)); gradPanel.setEnabled(false); controlPanel.setLayout(new BorderLayout()); controlPanel.add(gradPanel,BorderLayout.CENTER); JPanel barPanel = new JPanel(); barPanel.setLayout(new BorderLayout()); barPanel.add(graphPanel,BorderLayout.NORTH); barPanel.add(modeBar,BorderLayout.CENTER); JPanel scalePanel = new JPanel(); scalePanel.add(scaleBar,BorderLayout.CENTER); controlPanel.add(barPanel,BorderLayout.NORTH); controlPanel.add(scalePanel,BorderLayout.SOUTH); mainPanel.add(controlPanel,BorderLayout.SOUTH); add(mainPanel,BorderLayout.CENTER); add(statusPanel,BorderLayout.SOUTH); statusPanel.showMessage("Dataset attributes loaded."); }
3,232,155
public void nodeSelected(SemanticTypeTree.TreeNode node) { if(!(node instanceof SemanticTypeTree.ElementNode)) { gradPanel.setEnabled(false); } else gradPanel.setEnabled(true); }
public void nodeSelected(SemanticTypeTree.TreeNode node) { if(!(node instanceof SemanticTypeTree.ElementNode)) { gradPanel.setEnabled(false); } else { gradPanel.setEnabled(true); modeBar.setEnabled(true); } }
3,232,157
private void initializeCoreClasses() { RubyClass metaClass; objectClass = defineBootClass("Object", null); moduleClass = defineBootClass("Module", objectClass); classClass = defineBootClass("Class", moduleClass); metaClass = classClass.newSingletonClass(); objectClass.setRubyClass(metaClass); metaClass.attachSingletonClass(objectClass); metaClass = metaClass.newSingletonClass(); moduleClass.setRubyClass(metaClass); metaClass.attachSingletonClass(moduleClass); metaClass = metaClass.newSingletonClass(); classClass.setRubyClass(metaClass); metaClass.attachSingletonClass(classClass); RubyModule kernelModule = RBKernel.createKernelModule(this); objectClass.includeModule(kernelModule); objectClass.definePrivateMethod("initialize", DefaultCallbackMethods.getMethodNil()); classClass.definePrivateMethod("inherited", DefaultCallbackMethods.getMethodNil()); /* * * Ruby's Class Hierarchy Chart * * +------------------+ * | | * Object---->(Object) | * ^ ^ ^ ^ | * | | | | | * | | +-----+ +---------+ | * | | | | | * | +-----------+ | | * | | | | | * +------+ | Module--->(Module) | * | | ^ ^ | * OtherClass-->(OtherClass) | | | * | | | * Class---->(Class) | * ^ | * | | * +----------------+ * * + All metaclasses are instances of the class `Class'. */ RbObject.initObjectClass(objectClass); RbClass.initClassClass(classClass); nilClass = RbNilClass.createNilClass(this); falseClass = RbFalseClass.createFalseClass(this); trueClass = RbTrueClass.createTrueClass(this); RbComparable.createComparable(this); RbNumeric.createNumericClass(this); fixnumClass = RbFixnum.createFixnum(this); floatClass = RbFloat.createFloat(this); stringClass = RbString.createStringClass(this); }
private void initializeCoreClasses() { RubyClass metaClass; objectClass = defineBootClass("Object", null); moduleClass = defineBootClass("Module", objectClass); classClass = defineBootClass("Class", moduleClass); metaClass = classClass.newSingletonClass(); objectClass.setRubyClass(metaClass); metaClass.attachSingletonClass(objectClass); metaClass = metaClass.newSingletonClass(); moduleClass.setRubyClass(metaClass); metaClass.attachSingletonClass(moduleClass); metaClass = metaClass.newSingletonClass(); classClass.setRubyClass(metaClass); metaClass.attachSingletonClass(classClass); RubyModule kernelModule = RBKernel.createKernelModule(this); objectClass.includeModule(kernelModule); objectClass.definePrivateMethod("initialize", DefaultCallbackMethods.getMethodNil()); classClass.definePrivateMethod("inherited", DefaultCallbackMethods.getMethodNil()); /* * * Ruby's Class Hierarchy Chart * * +------------------+ * | | * Object---->(Object) | * ^ ^ ^ ^ | * | | | | | * | | +-----+ +---------+ | * | | | | | * | +-----------+ | | * | | | | | * +------+ | Module--->(Module) | * | | ^ ^ | * OtherClass-->(OtherClass) | | | * | | | * Class---->(Class) | * ^ | * | | * +----------------+ * * + All metaclasses are instances of the class `Class'. */ RbObject.initObjectClass(objectClass); RbClass.initClassClass(classClass); nilClass = RbNilClass.createNilClass(this); falseClass = RbFalseClass.createFalseClass(this); trueClass = RbTrueClass.createTrueClass(this); RbComparable.createComparable(this); numericClass = RbNumeric.createNumericClass(this); integerClass = RbInteger.createIntegerClass(this); fixnumClass = RbFixnum.createFixnum(this); floatClass = RbFloat.createFloat(this); stringClass = RbString.createStringClass(this); }
3,232,158
void createActionButtons() { ImageIcon addUserIcon = new ImageIcon("graphx/addUser_kusers_nuvola48_mod3.png"); ImageIcon removeUserIcon = new ImageIcon("graphx/removeUser_kusers_nuvola48_mod3.png"); ImageIcon addGroupIcon = new ImageIcon("graphx/1rightarrow_nuvola32.png"); ImageIcon removeGroupIcon = new ImageIcon("graphx/1leftarrow_nuvola32.png"); ImageIcon defaultGroupIcon = new ImageIcon("graphx/kgpg_identity_nuvola32.png"); saveBtn = new JButton("Save"); resetPasswordBtn = new JButton("Reset Password"); setSystemBtn = new JButton("Set System User"); addUserBtn = new JButton(addUserIcon); removeUserBtn = new JButton(removeUserIcon); addToGroupBtn = new JButton(addGroupIcon); removeFromGroupBtn = new JButton(removeGroupIcon); setDefaultBtn = new JButton(defaultGroupIcon); setDefaultBtn.setToolTipText("Set Default Group"); }
void createActionButtons() { ImageIcon addUserIcon = new ImageIcon("graphx/addUser_kusers_nuvola48_mod3.png"); ImageIcon removeUserIcon = new ImageIcon("graphx/removeUser_kusers_nuvola48_mod3.png"); ImageIcon addGroupIcon = new ImageIcon("graphx/1rightarrow_nuvola32.png"); ImageIcon removeGroupIcon = new ImageIcon("graphx/1leftarrow_nuvola32.png"); ImageIcon defaultGroupIcon = new ImageIcon("graphx/kgpg_identity_nuvola32.png"); saveBtn = new JButton("Save"); resetPasswordBtn = new JButton("Reset Password"); setSystemBtn = new JButton("Set System User"); addUserBtn = new JButton(addUserIcon); removeUserBtn = new JButton(removeUserIcon); addToGroupBtn = new JButton(addGroupIcon); removeFromGroupBtn = new JButton(removeGroupIcon); setDefaultBtn = new JButton(defaultGroupIcon); setDefaultBtn.setToolTipText("Set Default Group"); }
3,232,159
public String[] getNames() { try { getFiles(); } catch (PatternSyntaxException e) { System.out.println("BAD PATTERN: " + e.getPattern()); // This can happen if someone does Dir.glob("{") or similiar. return new String[] {}; } ArrayList allMatchedNames = new ArrayList(); for (Iterator iter = patterns.iterator(); iter.hasNext();) { GlobPattern pattern = (GlobPattern) iter.next(); allMatchedNames.addAll(pattern.getMatchedFiles()); } return (String[]) allMatchedNames.toArray(new String[allMatchedNames.size()]); }
public String[] getNames() { try { getFiles(); } catch (PatternSyntaxException e) { System.out.println("BAD PATTERN: " + e.getPattern()); // This can happen if someone does Dir.glob("{") or similiar. return new String[] {}; } ArrayList allMatchedNames = new ArrayList(); for (Iterator iter = patterns.iterator(); iter.hasNext();) { GlobPattern pattern = (GlobPattern) iter.next(); allMatchedNames.addAll(pattern.getMatchedFiles()); } return (String[]) allMatchedNames.toArray(new String[allMatchedNames.size()]); }
3,232,161
public void testIdentities() { RubyString o1 = runtime.newString("hey"); RubyString o2 = runtime.newString("ho"); long id1 = target.createId(o1); long id2 = target.createId(o2); assertEquals("id of normal objects must be even", 0, id1 % 2); assertEquals("id of normal objects must be even", 0, id2 % 2); assertTrue("normal ids must be bigger than reserved values", id1 > 4); assertTrue("normal ids must be bigger than reserved values", id2 > 4); assertSame(o1, target.id2ref(id1)); assertSame(o2, target.id2ref(id2)); assertNull(target.id2ref(4711)); }
public void testIdentities() { RubyString o1 = runtime.newString("hey"); RubyString o2 = runtime.newString("ho"); long id1 = target.createId(o1); long id2 = target.createId(o2); assertEquals("id of normal objects must be even", 0, id1 % 2); assertEquals("id of normal objects must be even", 0, id2 % 2); assertTrue("normal ids must be bigger than reserved values", id1 > 4); assertTrue("normal ids must be bigger than reserved values", id2 > 4); assertSame(o1, target.id2ref(id1)); assertSame(o2, target.id2ref(id2)); assertNull(target.id2ref(4711)); }
3,232,162
public void testObjectSpace() { IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); target.add(o1); target.add(o2); target.add(o3); target.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = target.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = target.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); }
public void testObjectSpace() { IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); target.add(o1); target.add(o2); target.add(o3); target.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = target.iterator(runtime.getString()); assertSame(o4, strings.next()); assertNull(strings.next()); Iterator numerics = target.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); }
3,232,163
public void testObjectSpace() { IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); target.add(o1); target.add(o2); target.add(o3); target.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = target.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = target.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); }
public void testObjectSpace() { IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); target.add(o1); target.add(o2); target.add(o3); target.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = target.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = target.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertNull(numerics.next()); }
3,232,164
public void setPosition(String file, int line) { setPosition(new DefaultLexerPosition(file, line, 0)); }
public void setPosition(String file, int line) { setPosition(new DefaultLexerPosition(file, line, 0)); }
3,232,165
private void drawCurves(Graphics2D g2D, int hFont) { Iterator j = ((values).keySet()).iterator(); Iterator k; Integer key; PlanePoint point; ArrayList list; int x0 = -1, x1 = -1, y0 = -1, y1 = -1; int c = 0; while (j.hasNext()) { key = (Integer) j.next(); g2D.setColor((Color) valuesRef.get(key)); drawLegend(g2D, key.intValue(), c, hFont/4); list = (ArrayList) values.get(key); k = list.iterator(); while (k.hasNext()) { point = (PlanePoint) k.next(); x1 = leftBorder+(int) Math.abs(hBinAxis*(point.x1-minX)); //y1 = TOP+height-(int) (vBinAxis*(int)(point.x2-minY)); y1 = TOP+height-Math.abs((vBinAxis*(int)(point.x2-minY))); if (x0 != -1 && y0 != -1) g2D.drawLine(x0, y0, x1, y1); x0 = x1; y0 = y1; } x0 = -1; y0 = -1; c++; } }
private void drawCurves(Graphics2D g2D, int hFont) { Iterator j = ((values).keySet()).iterator(); Iterator k; Integer key; PlanePoint point; ArrayList list; int x0 = -1, x1 = -1, y0 = -1, y1 = -1; int c = 0; while (j.hasNext()) { key = (Integer) j.next(); g2D.setColor((Color) valuesRef.get(key)); drawLegend(g2D, key.intValue(), c, hFont/4); list = (ArrayList) values.get(key); k = list.iterator(); while (k.hasNext()) { point = (PlanePoint) k.next(); x1 = leftBorder+(int) Math.abs(hBinAxis*(point.x1-minX)); //y1 = TOP+height-(int) (vBinAxis*(int)(point.x2-minY)); y1 = TOP+height-Math.abs((vBinAxis*(int)(point.x2-minY))); if (x0 != -1 && y0 != -1) g2D.drawLine(x0, y0, x1, y1); x0 = x1; y0 = y1; } x0 = -1; y0 = -1; c++; } }
3,232,167
public Object doInHibernate(Session session) throws HibernateException, SQLException { try { enableFilters(session); buildQuery(session); if ( _query == null && _criteria == null ) { throw new IllegalStateException( "buildQuery did not properly define a Query or " + "Criteria\n by calling setQuery() or setCriteria()." ); } boolean unique = params.getFilter().isUnique(); if ( _query != null ) { _query.setFirstResult( params.getFilter().firstResult() ); _query.setMaxResults( params.getFilter().maxResults() ); return unique ? _query.uniqueResult() : _query.list(); } else { _criteria.setFirstResult( params.getFilter().firstResult() ); _criteria.setMaxResults( params.getFilter().maxResults() ); return _criteria != null ? _criteria.list() : _criteria.list(); } } finally { disableFilters(session); } }
public Object doInHibernate(Session session) throws HibernateException, SQLException { try { enableFilters(session); buildQuery(session); if ( _query == null && _criteria == null ) { throw new IllegalStateException( "buildQuery did not properly define a Query or " + "Criteria\n by calling setQuery() or setCriteria()." ); } boolean unique = params.getFilter().isUnique(); if ( _query != null ) { _query.setFirstResult( params.getFilter().firstResult() ); _query.setMaxResults( params.getFilter().maxResults() ); return unique ? _query.uniqueResult() : _query.list(); } else { _criteria.setFirstResult( params.getFilter().firstResult() ); _criteria.setMaxResults( params.getFilter().maxResults() ); return _criteria != null ? _criteria.list() : _criteria.list(); } } finally { disableFilters(session); } }
3,232,168
protected PropertyDescriptor getPropertyDescriptor(String className, String localName) { BeanInfo beanInfo = getBeanInfo(className); if (beanInfo != null) { PropertyDescriptor[] descriptors = beanInfo.getPropertyDescriptors(); for (int i = 0; i < descriptors.length; i++) { PropertyDescriptor descriptor = descriptors[i]; if (descriptor.getWriteMethod() != null) { String name = descriptor.getName(); if (name.equals(localName)) { return descriptor; } } } } return null; }
protected PropertyDescriptor getPropertyDescriptor(String className, String localName) { BeanInfo beanInfo = getBeanInfo(className); if (beanInfo != null) { PropertyDescriptor[] descriptors = beanInfo.getPropertyDescriptors(); for (int i = 0; i < descriptors.length; i++) { PropertyDescriptor descriptor = descriptors[i]; if (descriptor.getWriteMethod() != null) { String name = descriptor.getName(); if (name.equals(localName)) { return descriptor; } } } } return null; }
3,232,169
public Object evalScript(String script, Class returnClass) { IRubyObject result = evalScript(script); return JavaUtil.convertRubyToJava(this, result.toRubyObject(), returnClass); }
public Object evalScript(String script, Class returnClass) { IRubyObject result = evalScript(script); return JavaUtil.convertRubyToJava(this, result, returnClass); }
3,232,170
private void init() { getIterStack().push(Iter.ITER_NOT); getFrameStack().push(); topFrame = getCurrentFrame(); getScope().push(); topScope = currentScope(); setCurrentMethodScope(Constants.SCOPE_PRIVATE); try { classes = new RubyClasses(this); classes.initCoreClasses(); RubyGlobal.createGlobals(this); exceptions = new RubyExceptions(this); exceptions.initDefaultExceptionClasses(); rubyTopSelf = new RubyObject(this, classes.getObjectClass()); classStack.push(getClasses().getObjectClass()); getCurrentFrame().setSelf(rubyTopSelf); topNamespace = new Namespace(getClasses().getObjectClass()); namespace = topNamespace; getCurrentFrame().setNamespace(namespace); } catch (Exception excptn) { excptn.printStackTrace(); } getScope().pop(); getScope().push(topScope); }
private void init() { getIterStack().push(Iter.ITER_NOT); getFrameStack().push(); topFrame = getCurrentFrame(); getScope().push(); topScope = currentScope(); setCurrentMethodScope(Constants.SCOPE_PRIVATE); try { classes = new RubyClasses(this); classes.initCoreClasses(); RubyGlobal.createGlobals(this); exceptions = new RubyExceptions(this); exceptions.initDefaultExceptionClasses(); rubyTopSelf = getFactory().newObject(classes.getObjectClass()); classStack.push(getClasses().getObjectClass()); getCurrentFrame().setSelf(rubyTopSelf); topNamespace = new Namespace(getClasses().getObjectClass()); namespace = topNamespace; getCurrentFrame().setNamespace(namespace); } catch (Exception excptn) { excptn.printStackTrace(); } getScope().pop(); getScope().push(topScope); }
3,232,171
public static RubyBoolean between_p(Ruby ruby, RubyObject recv, RubyObject arg1, RubyObject arg2) { RubyFixnum fn = (RubyFixnum) recv.funcall("<=>", arg1); if (fn.getValue() < 0) { return ruby.getFalse(); } fn = (RubyFixnum) recv.funcall("<=>", arg2); if (fn.getValue() > 0) { return ruby.getFalse(); } return ruby.getTrue(); }
public static RubyBoolean between_p(Ruby ruby, RubyObject recv, RubyObject arg1, RubyObject arg2) { RubyFixnum fn = (RubyFixnum) recv.funcall("<=>", arg1); if (fn.getValue() < 0) { return ruby.getFalse(); } fn = (RubyFixnum) recv.funcall("<=>", arg2); if (fn.getValue() > 0) { return ruby.getFalse(); } return ruby.getTrue(); }
3,232,172
public static RubyBoolean between_p(Ruby ruby, RubyObject recv, RubyObject arg1, RubyObject arg2) { RubyFixnum fn = (RubyFixnum) recv.funcall("<=>", arg1); if (fn.getValue() < 0) { return ruby.getFalse(); } fn = (RubyFixnum) recv.funcall("<=>", arg2); if (fn.getValue() > 0) { return ruby.getFalse(); } return ruby.getTrue(); }
public static RubyBoolean between_p(Ruby ruby, RubyObject recv, RubyObject arg1, RubyObject arg2) { RubyFixnum fn = (RubyFixnum) recv.funcall("<=>", arg1); if (fn.getValue() < 0) { return ruby.getFalse(); } fn = (RubyFixnum) recv.funcall("<=>", arg2); if (fn.getValue() > 0) { return ruby.getFalse(); } return ruby.getTrue(); }
3,232,173
public static RubyBoolean equal(Ruby ruby, RubyObject recv, RubyObject other) { if (recv == other) { return ruby.getTrue(); } else { try { RubyFixnum fn = (RubyFixnum) recv.funcall("<=>", other); return RubyBoolean.newBoolean(ruby, fn.getValue() == 0); } catch (NameError rnExcptn) { return ruby.getFalse(); } } }
public static RubyBoolean equal(Ruby ruby, RubyObject recv, RubyObject other) { if (recv == other) { return ruby.getTrue(); } else { try { RubyFixnum fn = (RubyFixnum) recv.funcall("<=>", other); return RubyBoolean.newBoolean(ruby, fn.getValue() == 0); } catch (NameError rnExcptn) { return ruby.getFalse(); } } }
3,232,174
public ChannelComponent(Integer attributeId, Integer index, String colorDomain, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ImagePixel imagePixel, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.index = index; this.colorDomain = colorDomain; this.image = image; this.imagePixel = imagePixel; this.moduleExecution = moduleExecution; }
public ChannelComponent(Integer attributeId, Integer index, String colorDomain, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ImagePixel imagePixel, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.index = index; this.colorDomain = colorDomain; this.image = image; this.imagePixel = imagePixel; this.moduleExecution = moduleExecution; }
3,232,176
public org.openmicroscopy.omero.model.Image getImage() { return this.image; }
public Image getImage() { return this.image; }
3,232,177
public org.openmicroscopy.omero.model.ImagePixel getImagePixel() { return this.imagePixel; }
public ImagePixel getImagePixel() { return this.imagePixel; }
3,232,178
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
public ModuleExecution getModuleExecution() { return this.moduleExecution; }
3,232,179
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; }
public void setImage(Image image) { this.image = image; }
3,232,180
public void setImagePixel(org.openmicroscopy.omero.model.ImagePixel imagePixel) { this.imagePixel = imagePixel; }
public void setImagePixel(ImagePixel imagePixel) { this.imagePixel = imagePixel; }
3,232,181
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
3,232,182
private void buildUI() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPanel progress = new JPanel(); progress.setLayout(new BoxLayout(progress, BoxLayout.X_AXIS)); progress.add(progressBar); IconManager icons = IconManager.getInstance(); progressLabel = new JLabel(icons.getIcon(IconManager.PROGRESS)); progress.add(progressLabel); add(UIUtilities.buildComponentPanelRight(progress)); }
private void buildUI() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPanel progress = new JPanel(); progress.setLayout(new BoxLayout(progress, BoxLayout.X_AXIS)); progress.add(progressBar); IconManager icons = IconManager.getInstance(); progressLabel = new JLabel(icons.getIcon(IconManager.PROGRESS)); progress.add(progressLabel); add(UIUtilities.buildComponentPanelRight(progress)); }
3,232,183
private void buildUI() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPanel progress = new JPanel(); progress.setLayout(new BoxLayout(progress, BoxLayout.X_AXIS)); progress.add(progressBar); IconManager icons = IconManager.getInstance(); progressLabel = new JLabel(icons.getIcon(IconManager.PROGRESS)); progress.add(progressLabel); add(UIUtilities.buildComponentPanelRight(progress)); }
private void buildUI() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPanel progress = new JPanel(); progress.setLayout(new BoxLayout(progress, BoxLayout.X_AXIS)); progress.add(progressBar); IconManager icons = IconManager.getInstance(); progressLabel = new JLabel(icons.getIcon(IconManager.PROGRESS)); progress.add(progressLabel); add(UIUtilities.buildComponentPanelRight(progress)); }
3,232,184
private void buildUI() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPanel progress = new JPanel(); progress.setLayout(new BoxLayout(progress, BoxLayout.X_AXIS)); progress.add(progressBar); IconManager icons = IconManager.getInstance(); progressLabel = new JLabel(icons.getIcon(IconManager.PROGRESS)); progress.add(progressLabel); add(UIUtilities.buildComponentPanelRight(progress)); }
private void buildUI() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPanel progress = new JPanel(); progress.setLayout(new BoxLayout(progress, BoxLayout.X_AXIS)); progress.add(progressBar); IconManager icons = IconManager.getInstance(); progressLabel = new JLabel(icons.getIcon(IconManager.PROGRESS)); progress.add(progressLabel); add(UIUtilities.buildComponentPanelRight(progress)); }
3,232,185
private void initComponents() { IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); progressBar.setVisible(false); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.INFO)); statusButton.setBorder(null); statusButton.setBorderPainted(false); statusButton.setFocusPainted(false); statusButton.setOpaque(false); }
private void initComponents() { IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); progressBar.setVisible(false); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.INFO)); statusButton.setBorder(null); statusButton.setBorderPainted(false); statusButton.setFocusPainted(false); statusButton.setOpaque(false); }
3,232,186
public RubyClass newSubClass(String name, SinglyLinkedList parentCRef) { RubyClass newClass = new RubyClass(runtime, runtime.getClass("Class"), this, parentCRef, name); newClass.makeMetaClass(getMetaClass(), newClass.getCRef()); newClass.inheritedBy(this); ((RubyModule)parentCRef.getValue()).setConstant(name, newClass); return newClass; }
public RubyClass newSubClass(String name, SinglyLinkedList parentCRef) { RubyClass classClass = runtime.getClass("Class"); if (this == classClass) { throw runtime.newTypeError("can't make subclass of Class"); } else if (this instanceof MetaClass) { throw runtime.newTypeError("can't make subclass of virtual class"); } RubyClass newClass = new RubyClass(runtime, classClass, this, parentCRef, name); newClass.makeMetaClass(getMetaClass(), newClass.getCRef()); newClass.inheritedBy(this); ((RubyModule)parentCRef.getValue()).setConstant(name, newClass); return newClass; }
3,232,187
public static IRubyObject chdir(IRubyObject recv, RubyString path) { System.setProperty("user.dir", getDir(recv.getRuntime(), path.toString()).toString()); return RubyFixnum.newFixnum(recv.getRuntime(), 0); }
public static IRubyObject chdir(IRubyObject recv, RubyString path) { File dir = getDir(recv.getRuntime(), path.toString()); String realPath = null; try { realPath = dir.getCanonicalPath(); } catch (IOException e) { realPath = dir.getAbsolutePath(); } System.setProperty("user.dir", realPath); return RubyFixnum.newFixnum(recv.getRuntime(), 0); }
3,232,188
public IRubyObject close() { // I don't think we need to close since we don't actually have // an open stream... return this; }
public IRubyObject close() { // I don't think we need to close since we don't actually have // an open stream... isOpen = false; return getRuntime().getNil(); }
3,232,189
public static RubyArray entries(IRubyObject recv, RubyString path) { if (".".equals(path.toString().trim())) { path = new RubyString(recv.getRuntime(), System.getProperty("user.dir")); } List fileList = getContents(new File(path.toString())); fileList.add(0,"."); fileList.add(1,".."); Object[] files = fileList.toArray(); return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); }
public static RubyArray entries(IRubyObject recv, RubyString path) { if (".".equals(path.toString().trim())) { path = new RubyString(recv.getRuntime(), System.getProperty("user.dir")); } List fileList = getContents(new File(path.toString())); fileList.add(0,"."); fileList.add(1,".."); Object[] files = fileList.toArray(); return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); }
3,232,190
protected static List getContents(File directory) { List result = new ArrayList(); String[] contents = directory.list(); for (int i=0; i<contents.length; i++) { result.add(contents[i]); } return result; }
protected static List getContents(File directory) { List result = new ArrayList(); for (int i=0; i<contents.length; i++) { result.add(contents[i]); } return result; }
3,232,192
protected static File getDir(Ruby ruby, String path) { File result = new File(path); if (!result.isDirectory()) { throw new IOError(ruby, path + " is not a directory"); } return result; }
protected static File getDir(Ruby ruby, String path) { File result = new File(path); if (!result.isDirectory()) { throw ErrnoError.getErrnoError(ruby, "ENOENT", path + " is not a directory"); } return result; }
3,232,193
public IRubyObject initialize(RubyString path) { path.checkSafeString(); dir = new File(path.getValue()); if (!dir.isDirectory()) { path = null; dir = null; throw new IOError(getRuntime(), path.getValue() + " is not a directory"); } List snapshotList = new ArrayList(); snapshotList.add("."); snapshotList.add(".."); snapshotList.addAll(getContents(dir)); snapshot = (String[]) snapshotList.toArray(new String[snapshotList.size()]); pos = 0; return this; }
public IRubyObject initialize(RubyString path) { path.checkSafeString(); dir = new File(path.getValue()); if (!dir.isDirectory()) { dir = null; throw new IOError(getRuntime(), path.getValue() + " is not a directory"); } List snapshotList = new ArrayList(); snapshotList.add("."); snapshotList.add(".."); snapshotList.addAll(getContents(dir)); snapshot = (String[]) snapshotList.toArray(new String[snapshotList.size()]); pos = 0; return this; }
3,232,194
public IRubyObject initialize(RubyString path) { path.checkSafeString(); dir = new File(path.getValue()); if (!dir.isDirectory()) { path = null; dir = null; throw new IOError(getRuntime(), path.getValue() + " is not a directory"); } List snapshotList = new ArrayList(); snapshotList.add("."); snapshotList.add(".."); snapshotList.addAll(getContents(dir)); snapshot = (String[]) snapshotList.toArray(new String[snapshotList.size()]); pos = 0; return this; }
public IRubyObject initialize(RubyString path) { path.checkSafeString(); dir = new File(path.getValue()); if (!dir.isDirectory()) { path = null; dir = null; throw ErrnoError.getErrnoError(getRuntime(), "ENOENT", path.getValue() + " is not a directory"); } List snapshotList = new ArrayList(); snapshotList.add("."); snapshotList.add(".."); snapshotList.addAll(getContents(dir)); snapshot = (String[]) snapshotList.toArray(new String[snapshotList.size()]); pos = 0; return this; }
3,232,195
public static IRubyObject mkdir(IRubyObject recv, IRubyObject[] args) { if (args.length < 1) { throw new ArgumentError(recv.getRuntime(), args.length, 1); } if (args.length > 2) { throw new ArgumentError(recv.getRuntime(), args.length, 2); } args[0].checkSafeString(); String path = args[0].toString(); File newDir = new File(path); if (newDir.exists()) { throw new IOError(recv.getRuntime(), path + " already exists"); } return RubyBoolean.newBoolean(recv.getRuntime(), newDir.mkdir()); }
public static IRubyObject mkdir(IRubyObject recv, IRubyObject[] args) { if (args.length < 1) { throw new ArgumentError(recv.getRuntime(), args.length, 1); } if (args.length > 2) { throw new ArgumentError(recv.getRuntime(), args.length, 2); } args[0].checkSafeString(); String path = args[0].toString(); File newDir = new File(path); if (newDir.exists()) { throw new IOError(recv.getRuntime(), path + " already exists"); } return newDir.mkdir() ? RubyFixnum.zero(recv.getRuntime()) : RubyFixnum.one(recv.getRuntime()); }
3,232,196
public static IRubyObject open(IRubyObject recv, RubyString path) { throw new NotImplementedError(recv.getRuntime()); }
public static IRubyObject open(IRubyObject recv, RubyString path) { RubyDir directory = (RubyDir) newInstance(recv.getRuntime().getClasses().getDirClass(), new IRubyObject[] { path }); if (recv.getRuntime().isBlockGiven()) { try { recv.getRuntime().yield(directory); } finally { directory.close(); } return recv.getRuntime().getNil(); } return directory; }
3,232,197
public static IRubyObject rmdir(IRubyObject recv, RubyString path) { new File(path.toString()).delete(); return RubyFixnum.newFixnum(recv.getRuntime(), 0); }
public static IRubyObject rmdir(IRubyObject recv, RubyString path) { File directory = new File(path.toString()); if (directory.delete() == false) { throw new SystemCallError(recv.getRuntime(), "No such directory"); } return RubyFixnum.newFixnum(recv.getRuntime(), 0); }
3,232,199
public IRubyObject seek(RubyFixnum pos) { this.pos = (int) pos.getLongValue(); return pos; }
public IRubyObject seek(RubyFixnum pos) { this.pos = (int) pos.getLongValue(); return this; }
3,232,200
public String getIWActionURIHandlerIdentifier() { return (new ArticleActionURIHandler()).getHandlerIdentifier(); }
public String getIWActionURIHandlerIdentifier() { return (new ArticleActionURIHandler()).getHandlerIdentifier(); }
3,232,201
public void open() { quickLaunchBtn.doClick(); }
public void open() { quickLaunchBtn.doClick(); }
3,232,202
public void postHandleDisplay() { }
public void postHandleDisplay() { }
3,232,203
public ManageableTopWindow(String s) { super(s); }
public ManageableTopWindow(String s) { super(s); }
3,232,204
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]); ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder(ContentUtil.ARTICLE_PATH).toArray(new ArticleItemBean[0]); int availableRows = articleItemBean.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = Math.min(start.intValue() + nrOfRows,availableRows); for (int i = start.intValue(); i < maxRow; i++) { //TODO we don't have published in the article item bean String id = articleItemBean[i].getFolderLocation()+"/"+articleItemBean[i].getHeadline()+".xml"; ListArticlesBean bean = new ListArticlesBean(id, articleItemBean[i].getHeadline(), ""); _dataModel.set(bean, i); } _dataModel.setRowCount(availableRows); } catch (XmlException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
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]); ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder(ContentUtil.ARTICLE_PATH).toArray(new ArticleItemBean[0]); int availableRows = articleItemBean.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = Math.min(start.intValue() + nrOfRows,availableRows); for (int i = start.intValue(); i < maxRow; i++) { //TODO we don't have published in the article item bean String id = articleItemBean[i].getFolderLocation()+"/"+articleItemBean[i].getHeadline()+".xml"; ListArticlesBean bean = new ListArticlesBean(id, articleItemBean[i].getHeadline(), ""); _dataModel.set(bean, i); } _dataModel.setRowCount(availableRows); } catch (XmlException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
3,232,205
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; RenderingModel model = PlaneFactory.getRenderingModel(iPixels, MODEL_GREYSCALE); List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext(). getPhotometricInterpretation().getValue() == PHOTOMETRIC_RGB) { active = true; model = PlaneFactory.getRenderingModel(iPixels, MODEL_RGB); } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); Color c = ColorsFactory.getColor(w, channel); setRGBA(w, c.getRed(), c.getGreen(), c.getBlue(), c.getAlpha()); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; RenderingModel model = PlaneFactory.getRenderingModel(iPixels, MODEL_GREYSCALE); List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext(). getPhotometricInterpretation().getValue() == PHOTOMETRIC_RGB) { active = true; model = PlaneFactory.getRenderingModel(iPixels, MODEL_RGB); } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); Color c = ColorsFactory.getColor(w, channel); setRGBA(w, c.getRed(), c.getGreen(), c.getBlue(), c.getAlpha()); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
3,232,206
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; RenderingModel model = PlaneFactory.getRenderingModel(iPixels, MODEL_GREYSCALE); List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext(). getPhotometricInterpretation().getValue() == PHOTOMETRIC_RGB) { active = true; model = PlaneFactory.getRenderingModel(iPixels, MODEL_RGB); } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); Color c = ColorsFactory.getColor(w, channel); setRGBA(w, c.getRed(), c.getGreen(), c.getBlue(), c.getAlpha()); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only the first channel. ChannelBinding[] cb = getChannelBindings(); boolean active = false; RenderingModel model = PlaneFactory.getRenderingModel(iPixels, MODEL_GREYSCALE); List channels = getMetadata().getChannels(); int w = 0; for (Iterator i = channels.iterator(); i.hasNext();) { // The channel we're operating on Channel channel = (Channel) i.next(); if (channel.getPixels().getAcquisitionContext(). getPhotometricInterpretation().getValue() == PHOTOMETRIC_RGB) { active = true; model = PlaneFactory.getRenderingModel(iPixels, MODEL_RGB); } cb[w].setActive(Boolean.valueOf(active)); double start = channel.getStatsInfo().getGlobalMin().doubleValue(); double end = channel.getStatsInfo().getGlobalMax().doubleValue(); setChannelWindow(w, start, end); Color c = ColorsFactory.getColor(w, channel); setRGBA(w, c.getRed(), c.getGreen(), c.getBlue(), c.getAlpha()); w++; } cb[0].setActive(Boolean.valueOf(active)); // Remove all the codomainMapCtx except the identity. getCodomainChain().remove(); // Fall back to the default strategy. setModel(model); }
3,232,207
public IRubyObject initialize(IRubyObject[] args) { IRubyObject input = args[0]; IRubyObject output = args[1]; InputStream inputStream = (InputStream) extractStream(input); OutputStream outputStream = (OutputStream) extractStream(output); bindStreams(inputStream, outputStream); return this; }
public IRubyObject initialize(IRubyObject[] args) { IRubyObject input = args[0]; IRubyObject output = args[1]; InputStream inputStream = (InputStream) extractStream(input); OutputStream outputStream = (OutputStream) extractStream(output); try { handler = new IOHandlerSocket(getRuntime(), inputStream, outputStream); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } registerIOHandler(handler); modes = handler.getModes(); return this; }
3,232,210
protected WikiPage createNewPage (WikiSystem wiki, WebContext wc, WikiUser user) throws Exception { // get the page elements from the request String editor = user.getIdentifier(); String text = wc.getForm ("TEXT"); boolean moderated = wc.getForm ("MODERATED") != null && wc.getForm("MODERATED").equals ("true"); String keywords = wc.getForm ("RELATED_TITLES"); String pageName = wc.getForm ("save"); // create the page WikiPage newPage = wiki.createPage (pageName, editor, text); newPage.setRelatedTitles (keywordsToStringArray(keywords)); newPage.setIsModerated(moderated); // make sure to save the page wiki.savePage (newPage); return newPage; }
protected WikiPage createNewPage (WikiSystem wiki, WebContext wc, WikiUser user) throws Exception { // get the page elements from the request String editor = user.getIdentifier(); String text = wc.getForm ("TEXT"); boolean moderated = wc.getForm ("MODERATED") != null && wc.getForm("MODERATED").equals ("true"); String keywords = wc.getForm ("RELATED_TITLES"); String pageName = getWikiPageName(wiki, wc); // create the page WikiPage newPage = wiki.createPage (pageName, editor, text); newPage.setRelatedTitles (keywordsToStringArray(keywords)); newPage.setIsModerated(moderated); // make sure to save the page wiki.savePage (newPage); return newPage; }
3,232,212
public String getWikiPageName(WikiSystem wiki, WebContext wc) { return wc.getForm ("save"); }
public String getWikiPageName(WikiSystem wiki, WebContext wc) { String pageName = wc.getForm ("save"); pageName = WikiUtil.formatAsWikiTitle(pageName); return pageName; }
3,232,213
private void dumpMethods(CoverageData instrumentation) { Iterator iter = instrumentation.getMethodNamesAndDescriptors() .iterator(); while (iter.hasNext()) { String methodNameAndSignature = (String)iter.next(); println("<method nameAndSignature=\"" + methodNameAndSignature + "\">"); increaseIndentation(); try { println("<line rate=\"" + instrumentation .getLineCoverageRate(methodNameAndSignature) + "\"/>"); println("<branch rate=\"" + instrumentation .getBranchCoverageRate(methodNameAndSignature) + "\"/>"); } catch (IllegalArgumentException ex) { logger.warn(ex); } decreaseIndentation(); println("</method>"); } }
private void dumpMethods(CoverageData instrumentation) { Iterator iter = instrumentation.getMethodNamesAndDescriptors() .iterator(); while (iter.hasNext()) { String methodNameAndSignature = (String)iter.next(); println("<method nameAndSignature=\"" + methodNameAndSignature + "\">"); increaseIndentation(); try { println("<line rate=\"" + instrumentation .getLineCoverageRate(methodNameAndSignature) + "\"/>"); println("<branch rate=\"" + instrumentation .getBranchCoverageRate(methodNameAndSignature) + "\"/>"); } catch (IllegalArgumentException ex) { logger.warn(ex); } decreaseIndentation(); println("</method>"); } }
3,232,214
final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); } catch (NullPointerException npe) { _log.warning ("TemplateProvider: Template not found: " + fileName, npe); } catch (Exception e) { // this probably occured b/c of a parsing error. // should throw some kind of ParseErrorException here instead _log.warning ("TemplateProvider: Error occured while getting " + fileName, e); } return t; }
final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); } catch (NullPointerException npe) { _log.warning ("TemplateProvider: Template not found: " + fileName, npe); } catch (Exception e) { // this probably occured b/c of a parsing error. // should throw some kind of ParseErrorException here instead _log.warning ("TemplateProvider: Error occured while getting " + fileName, e); } return null; }
3,232,215
public String getNickname() { return chatPreferences.getNickname(); }
public String getNickname() { LocalPreferences pref = SettingsManager.getLocalPreferences(); return pref.getNickname(); }
3,232,216
private void init() { setLayout(new GridBagLayout()); add(splitPane, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); add(notificationLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 2, 5, 0), 0, 0)); // Remove Default Beveled Borders splitPane.setBorder(null); verticalSplit.setBorder(null); splitPane.setLeftComponent(verticalSplit); // Load Preferences for this instance chatPreferences = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); textScroller.setAutoscrolls(true); // Speed up scrolling. It was way too slow. textScroller.getVerticalScrollBar().setBlockIncrement(50); textScroller.getVerticalScrollBar().setUnitIncrement(20); chatWindowPanel = new JPanel(); chatWindowPanel.setLayout(new GridBagLayout()); chatWindowPanel.add(textScroller, new GridBagConstraints(0, 10, 1, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); chatWindowPanel.setOpaque(false); // Layout Components chatPanel.add(chatWindowPanel, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); // Add edit buttons to Chat Room editorBar.setOpaque(false); chatPanel.setOpaque(false); editorBar.add(new JSeparator(JSeparator.VERTICAL)); bottomPanel.setOpaque(false); splitPane.setOpaque(false); bottomPanel.setLayout(new GridBagLayout()); bottomPanel.add(chatAreaButton, new GridBagConstraints(0, 1, 5, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 30)); bottomPanel.add(editorBar, new GridBagConstraints(0, 0, 5, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); verticalSplit.setOpaque(false); verticalSplit.setTopComponent(chatPanel); verticalSplit.setBottomComponent(bottomPanel); verticalSplit.setResizeWeight(1.0); verticalSplit.setDividerSize(2); // Add listener to send button chatAreaButton.getButton().addActionListener(this); // Add Key Listener to Send Field getChatInputEditor().getDocument().addDocumentListener(this); // Add Key Listener to Send Field getChatInputEditor().addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { checkForEnter(e); } }); getChatInputEditor().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("ctrl F4"), "closeTheRoom"); getChatInputEditor().getActionMap().put("closeTheRoom", new AbstractAction("closeTheRoom") { public void actionPerformed(ActionEvent evt) { final int ok = JOptionPane.showConfirmDialog(SparkManager.getMainWindow(), "Would you like to close this chat?", "Confirmation", JOptionPane.YES_NO_OPTION); if (ok == JOptionPane.OK_OPTION) { // Leave this chat. closeChatRoom(); } } }); }
private void init() { setLayout(new GridBagLayout()); add(splitPane, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); add(notificationLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 2, 5, 0), 0, 0)); // Remove Default Beveled Borders splitPane.setBorder(null); verticalSplit.setBorder(null); splitPane.setLeftComponent(verticalSplit); // Load Preferences for this instance textScroller.setAutoscrolls(true); // Speed up scrolling. It was way too slow. textScroller.getVerticalScrollBar().setBlockIncrement(50); textScroller.getVerticalScrollBar().setUnitIncrement(20); chatWindowPanel = new JPanel(); chatWindowPanel.setLayout(new GridBagLayout()); chatWindowPanel.add(textScroller, new GridBagConstraints(0, 10, 1, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); chatWindowPanel.setOpaque(false); // Layout Components chatPanel.add(chatWindowPanel, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); // Add edit buttons to Chat Room editorBar.setOpaque(false); chatPanel.setOpaque(false); editorBar.add(new JSeparator(JSeparator.VERTICAL)); bottomPanel.setOpaque(false); splitPane.setOpaque(false); bottomPanel.setLayout(new GridBagLayout()); bottomPanel.add(chatAreaButton, new GridBagConstraints(0, 1, 5, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 30)); bottomPanel.add(editorBar, new GridBagConstraints(0, 0, 5, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); verticalSplit.setOpaque(false); verticalSplit.setTopComponent(chatPanel); verticalSplit.setBottomComponent(bottomPanel); verticalSplit.setResizeWeight(1.0); verticalSplit.setDividerSize(2); // Add listener to send button chatAreaButton.getButton().addActionListener(this); // Add Key Listener to Send Field getChatInputEditor().getDocument().addDocumentListener(this); // Add Key Listener to Send Field getChatInputEditor().addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { checkForEnter(e); } }); getChatInputEditor().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("ctrl F4"), "closeTheRoom"); getChatInputEditor().getActionMap().put("closeTheRoom", new AbstractAction("closeTheRoom") { public void actionPerformed(ActionEvent evt) { final int ok = JOptionPane.showConfirmDialog(SparkManager.getMainWindow(), "Would you like to close this chat?", "Confirmation", JOptionPane.YES_NO_OPTION); if (ok == JOptionPane.OK_OPTION) { // Leave this chat. closeChatRoom(); } } }); }
3,232,217
public String toString(){ return "Image"+(imageId==null ? ":Hash"+this.hashCode() : ":"+imageId); }
public String toString(){ return "Image"+(imageId==null ? ":Hash_"+this.hashCode() : ":Id_"+imageId); }
3,232,218
public void copy(IObject model, ModelMapper mapper) { if (model instanceof Category) { Category c = (Category) model; super.copy(model,mapper); // Details Details details = c.getDetails(); if (details!=null){ this.setOwner((ExperimenterData) mapper.findTarget(details.getOwner())); } // Fields this.setName(c.getName()); this.setDescription(c.getDescription()); // Collections MapperBlock block = new MapperBlock( mapper ); setImages(new HashSet( c.eachLinkedImage( block ))); List cgs = c.eachLinkedCategoryGroup( block ); this.setGroup( cgs.size() > 0 ? (CategoryGroupData) cgs.get(0) : null); if ( cgs.size() > 1 ) { // FIXME and if size > 1 } } else { throw new IllegalArgumentException("CategoryData can only copy Category type."); } }
public void copy(IObject model, ModelMapper mapper) { if (model instanceof Category) { Category c = (Category) model; super.copy(model,mapper); // Details Details details = c.getDetails(); if (details!=null){ this.setOwner((ExperimenterData) mapper.findTarget(details.getOwner())); } // Fields this.setName(c.getName()); this.setDescription(c.getDescription()); // Collections MapperBlock block = new MapperBlock( mapper ); setImages( makeSet( c.sizeOfImageLinks(), c.eachLinkedImage( block ))); List cgs = c.eachLinkedCategoryGroup( block ); this.setGroup( cgs.size() > 0 ? (CategoryGroupData) cgs.get(0) : null); if ( cgs.size() > 1 ) { // FIXME and if size > 1 } } else { throw new IllegalArgumentException("CategoryData can only copy Category type."); } }
3,232,219
public void testHessian(){ log.info(getData()); Utils.structureSize(this.testFindCGCIHierarchies()); Utils.structureSize(this.testFindDatasetAnnotationsSet()); Utils.structureSize(this.testFindDatasetAnnotationsSetForExperimenter()); Utils.structureSize(this.testFindImageAnnotationsSet()); Utils.structureSize(this.testFindImageAnnotationsSetForExperimenter()); Utils.structureSize(this.testFindPDIHierarchies()); Utils.structureSize(this.testLoadCGCIHierarchyCategory()); Utils.structureSize(this.testLoadCGCIHierarchyCategoryGroup()); Utils.structureSize(this.testLoadPDIHierarchyDataset()); Utils.structureSize(this.testLoadPDIHierarchyProject()); }
public void testHessian(){ OMEData data = new OMEPerformanceData(); OMEData old = getData(); Set imgs = new HashSet(); imgs.add(new Integer(101)); imgs.add(new Integer(12)); imgs.add(new Integer(5393)); imgs.add(new Integer(4954)); imgs.add(new Integer(3919)); imgs.add(new Integer(1273)); data.imgsCGCI=imgs; setData(data); Object o = this.testFindCGCIHierarchies(); Utils.structureSize(o); setData(old); log.info(getData()); Utils.structureSize(this.testFindCGCIHierarchies()); Utils.structureSize(this.testFindDatasetAnnotationsSet()); Utils.structureSize(this.testFindDatasetAnnotationsSetForExperimenter()); Utils.structureSize(this.testFindImageAnnotationsSet()); Utils.structureSize(this.testFindImageAnnotationsSetForExperimenter()); Utils.structureSize(this.testFindPDIHierarchies()); Utils.structureSize(this.testLoadCGCIHierarchyCategory()); Utils.structureSize(this.testLoadCGCIHierarchyCategoryGroup()); Utils.structureSize(this.testLoadPDIHierarchyDataset()); Utils.structureSize(this.testLoadPDIHierarchyProject()); }
3,232,220
static public Timestamp convertDate(Date date){ if (null==date){ log.debug("Null date."); return null; } return new Timestamp(date.getTime()); }
static public Timestamp convertDate(Date date){ if (null==date){ return null; } return new Timestamp(date.getTime()); }
3,232,221
static public ProjectData go(Project p, Map cache) { if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.getProjectId()) { log.debug(nullId+p); } else { pd.setID(p.getProjectId().intValue()); } pd.setName(p.getName()); pd.setDescription(p.getDescription()); if (null==p.getExperimenter()){ log.debug(nullExp + p); } else { pd.setOwnerFirstName(p.getExperimenter().getFirstname()); } //TODO if (null==p.getDatasets()){ log.debug(nullDs + p); } else { Set set = new HashSet(); for (Iterator i = p.getDatasets().iterator(); i.hasNext();) { Dataset d = (Dataset) i.next(); set.add(go(d,cache)); } pd.setDatasets(new ArrayList(set)); } return pd; }
static public ProjectData go(Project p, Map cache) { if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.getProjectId()) { if (log.isDebugEnabled())log.debug(nullId+p); } else { pd.setID(p.getProjectId().intValue()); } pd.setName(p.getName()); pd.setDescription(p.getDescription()); if (null==p.getExperimenter()){ log.debug(nullExp + p); } else { pd.setOwnerFirstName(p.getExperimenter().getFirstname()); } //TODO if (null==p.getDatasets()){ log.debug(nullDs + p); } else { Set set = new HashSet(); for (Iterator i = p.getDatasets().iterator(); i.hasNext();) { Dataset d = (Dataset) i.next(); set.add(go(d,cache)); } pd.setDatasets(new ArrayList(set)); } return pd; }
3,232,222
static public ProjectData go(Project p, Map cache) { if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.getProjectId()) { log.debug(nullId+p); } else { pd.setID(p.getProjectId().intValue()); } pd.setName(p.getName()); pd.setDescription(p.getDescription()); if (null==p.getExperimenter()){ log.debug(nullExp + p); } else { pd.setOwnerFirstName(p.getExperimenter().getFirstname()); } //TODO if (null==p.getDatasets()){ log.debug(nullDs + p); } else { Set set = new HashSet(); for (Iterator i = p.getDatasets().iterator(); i.hasNext();) { Dataset d = (Dataset) i.next(); set.add(go(d,cache)); } pd.setDatasets(new ArrayList(set)); } return pd; }
static public ProjectData go(Project p, Map cache) { if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.getProjectId()) { log.debug(nullId+p); } else { pd.setID(p.getProjectId().intValue()); } pd.setName(p.getName()); pd.setDescription(p.getDescription()); if (null==p.getExperimenter()){ if (log.isDebugEnabled())log.debug(nullExp + p); } else { pd.setOwnerFirstName(p.getExperimenter().getFirstname()); } //TODO if (null==p.getDatasets()){ log.debug(nullDs + p); } else { Set set = new HashSet(); for (Iterator i = p.getDatasets().iterator(); i.hasNext();) { Dataset d = (Dataset) i.next(); set.add(go(d,cache)); } pd.setDatasets(new ArrayList(set)); } return pd; }
3,232,223
static public ProjectData go(Project p, Map cache) { if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.getProjectId()) { log.debug(nullId+p); } else { pd.setID(p.getProjectId().intValue()); } pd.setName(p.getName()); pd.setDescription(p.getDescription()); if (null==p.getExperimenter()){ log.debug(nullExp + p); } else { pd.setOwnerFirstName(p.getExperimenter().getFirstname()); } //TODO if (null==p.getDatasets()){ log.debug(nullDs + p); } else { Set set = new HashSet(); for (Iterator i = p.getDatasets().iterator(); i.hasNext();) { Dataset d = (Dataset) i.next(); set.add(go(d,cache)); } pd.setDatasets(new ArrayList(set)); } return pd; }
static public ProjectData go(Project p, Map cache) { if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.getProjectId()) { log.debug(nullId+p); } else { pd.setID(p.getProjectId().intValue()); } pd.setName(p.getName()); pd.setDescription(p.getDescription()); if (null==p.getExperimenter()){ log.debug(nullExp + p); } else { pd.setOwnerFirstName(p.getExperimenter().getFirstname()); } //TODO if (null==p.getDatasets()){ if (log.isDebugEnabled())log.debug(nullDs + p); } else { Set set = new HashSet(); for (Iterator i = p.getDatasets().iterator(); i.hasNext();) { Dataset d = (Dataset) i.next(); set.add(go(d,cache)); } pd.setDatasets(new ArrayList(set)); } return pd; }
3,232,224
private static File createJarFile() throws IOException { File file = new File("target/SpringLoaderTest.jar"); FileOutputStream out = new FileOutputStream(file); JarOutputStream jarOut = new JarOutputStream(out); jarOut.putNextEntry(new JarEntry(CLASS_NAME + ".class")); jarOut.write(createClass(CLASS_NAME)); jarOut.putNextEntry(new JarEntry(ENTRY_NAME)); jarOut.write(ENTRY_VALUE.getBytes()); jarOut.close(); out.close(); return file; }
private static File createJarFile() throws IOException { File file = new File(basedir, "target/SpringLoaderTest.jar"); FileOutputStream out = new FileOutputStream(file); JarOutputStream jarOut = new JarOutputStream(out); jarOut.putNextEntry(new JarEntry(CLASS_NAME + ".class")); jarOut.write(createClass(CLASS_NAME)); jarOut.putNextEntry(new JarEntry(ENTRY_NAME)); jarOut.write(ENTRY_VALUE.getBytes()); jarOut.close(); out.close(); return file; }
3,232,225
public void testLoad() throws Exception{ Kernel kernel = KernelFactory.newInstance().createKernel("test"); try { File baseDir = new File("src/test/org/xbean/server/spring/loader/").getAbsoluteFile(); System.setProperty("xbean.base.dir", baseDir.getAbsolutePath()); FileSystemRepository repository = new FileSystemRepository(new File(".").getAbsoluteFile()); ClassLoaderXmlPreprocessor classLoaderXmlPreprocessor = new ClassLoaderXmlPreprocessor(repository); List xmlPreprocessors = Collections.singletonList(classLoaderXmlPreprocessor); SpringLoader springLoader = new SpringLoader(); springLoader.setKernel(kernel); springLoader.setBaseDir(baseDir); springLoader.setXmlPreprocessors(xmlPreprocessors); ServiceName configurationName = springLoader.load("classpath-xbean"); kernel.startService(configurationName); Object testService = kernel.getService(new StringServiceName("test")); assertEquals("TestClass", testService.getClass().getName()); assertTrue(testService instanceof SortedSet); } finally { kernel.destroy(); } }
public void testLoad() throws Exception{ Kernel kernel = KernelFactory.newInstance().createKernel("test"); try { File baseDir = new File("src/test/org/xbean/server/spring/loader/").getAbsoluteFile(); System.setProperty("xbean.base.dir", baseDir.getAbsolutePath()); FileSystemRepository repository = new FileSystemRepository(new File(".").getAbsoluteFile()); ClassLoaderXmlPreprocessor classLoaderXmlPreprocessor = new ClassLoaderXmlPreprocessor(repository); List xmlPreprocessors = Collections.singletonList(classLoaderXmlPreprocessor); SpringLoader springLoader = new SpringLoader(); springLoader.setKernel(kernel); springLoader.setBaseDir(baseDir); springLoader.setXmlPreprocessors(xmlPreprocessors); ServiceName configurationName = springLoader.load("classpath-xbean"); kernel.startService(configurationName); Object testService = kernel.getService(new StringServiceName("test")); assertEquals("TestClass", testService.getClass().getName()); assertTrue(testService instanceof SortedSet); } finally { kernel.destroy(); } }
3,232,226
public void testLoad() throws Exception{ Kernel kernel = KernelFactory.newInstance().createKernel("test"); try { File baseDir = new File("src/test/org/xbean/server/spring/loader/").getAbsoluteFile(); System.setProperty("xbean.base.dir", baseDir.getAbsolutePath()); FileSystemRepository repository = new FileSystemRepository(new File(".").getAbsoluteFile()); ClassLoaderXmlPreprocessor classLoaderXmlPreprocessor = new ClassLoaderXmlPreprocessor(repository); List xmlPreprocessors = Collections.singletonList(classLoaderXmlPreprocessor); SpringLoader springLoader = new SpringLoader(); springLoader.setKernel(kernel); springLoader.setBaseDir(baseDir); springLoader.setXmlPreprocessors(xmlPreprocessors); ServiceName configurationName = springLoader.load("classpath-xbean"); kernel.startService(configurationName); Object testService = kernel.getService(new StringServiceName("test")); assertEquals("TestClass", testService.getClass().getName()); assertTrue(testService instanceof SortedSet); } finally { kernel.destroy(); } }
public void testLoad() throws Exception{ Kernel kernel = KernelFactory.newInstance().createKernel("test"); try { File baseDir = new File("src/test/org/xbean/server/spring/loader/").getAbsoluteFile(); System.setProperty("xbean.base.dir", baseDir.getAbsolutePath()); FileSystemRepository repository = new FileSystemRepository(new File(basedir).getAbsoluteFile()); ClassLoaderXmlPreprocessor classLoaderXmlPreprocessor = new ClassLoaderXmlPreprocessor(repository); List xmlPreprocessors = Collections.singletonList(classLoaderXmlPreprocessor); SpringLoader springLoader = new SpringLoader(); springLoader.setKernel(kernel); springLoader.setBaseDir(baseDir); springLoader.setXmlPreprocessors(xmlPreprocessors); ServiceName configurationName = springLoader.load("classpath-xbean"); kernel.startService(configurationName); Object testService = kernel.getService(new StringServiceName("test")); assertEquals("TestClass", testService.getClass().getName()); assertTrue(testService instanceof SortedSet); } finally { kernel.destroy(); } }
3,232,227