public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int rowIndex, int column) { TableSorter sorter = (TableSorter)list.getModel(); boolean selected = SUtil.arrayContains(description.getBreakpoints(), breakpoints.get(sorter.modelIndex(rowIndex))); JPanel ret = new JPanel(new BorderLayout()); JCheckBox but = new JCheckBox((String)null, selected); ret.add(but, BorderLayout.CENTER); ret.setToolTipText("Enable/disable breakpoint."); return ret; }
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int rowIndex, int column) { TableSorter sorter = (TableSorter)list.getModel(); boolean selected = SUtil.arrayContains(description.getBreakpoints(), breakpoints.get(sorter.modelIndex(rowIndex))); JPanel ret = new JPanel(new BorderLayout()); JCheckBox but = new JCheckBox((String)null, selected); ret.add(but, BorderLayout.CENTER); ret.setToolTipText("Enable/disable breakpoint."); return ret; }
public void actionPerformed(java.awt.event.ActionEvent e) { final List bps = new ArrayList(Arrays.asList(description.getBreakpoints())); if(but.isSelected()) { bps.add(breakpoints.get(sorter.modelIndex(rowIndex))); } else { bps.remove(breakpoints.get(sorter.modelIndex(rowIndex))); } SServiceProvider.getService(access, IComponentManagementService.class, RequiredServiceInfo.SCOPE_PLATFORM) .addResultListener(new SwingDefaultResultListener(BreakpointPanel.this) { public void customResultAvailable(Object result) { ((IComponentManagementService)result).setComponentBreakpoints( description.getName(), (String[])bps.toArray(new String[bps.size()])); } }); } });
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, final int rowIndex, int column) boolean selected = SUtil.arrayContains(description.getBreakpoints(), breakpoints.get(sorter.modelIndex(rowIndex))); JPanel ret = new JPanel(new BorderLayout()); final JCheckBox but = new JCheckBox((String)null, selected);
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, final int rowIndex, int column) boolean selected = SUtil.arrayContains(description.getBreakpoints(), breakpoints.get(sorter.modelIndex(rowIndex))); JPanel ret = new JPanel(new BorderLayout()); final JCheckBox but = new JCheckBox((String)null, selected);
public void actionPerformed(java.awt.event.ActionEvent e) { final List bps = new ArrayList(Arrays.asList(description.getBreakpoints())); if(but.isSelected()) { bps.add(breakpoints.get(sorter.modelIndex(rowIndex))); } else { bps.remove(breakpoints.get(sorter.modelIndex(rowIndex))); } SServiceProvider.getService(access.getServiceProvider(), IComponentManagementService.class, RequiredServiceInfo.SCOPE_PLATFORM) .addResultListener(new SwingDefaultResultListener(BreakpointPanel.this) { public void customResultAvailable(Object result) { ((IComponentManagementService)result).setComponentBreakpoints( description.getName(), (String[])bps.toArray(new String[bps.size()])); } }); } });
final List<String> abps = SUtil.arrayToList(desc.getBreakpoints()); SwingUtilities.invokeLater(new Runnable()
if(!dostep && !IComponentDescription.STATE_SUSPENDED.equals(desc.getState())) if(component.isAtBreakpoint(desc.getBreakpoints())) if(component.isAtBreakpoint(desc.getBreakpoints()))
if(!dostep && !IComponentDescription.STATE_SUSPENDED.equals(desc.getState())) if(component.isAtBreakpoint(desc.getBreakpoints())) if(component.isAtBreakpoint(desc.getBreakpoints()))
&& getComponent().getComponentDescription().getBreakpoints().length>0) if(isAtBreakpoint(getComponent().getComponentDescription().getBreakpoints()))