private void stackToCLBD(List<JPDAThread> threads) { StringBuffer frameStr = new StringBuffer(512); for (JPDAThread t : threads) { if (frameStr.length() > 0) { frameStr.append('\n'); } frameStr.append("\""); frameStr.append(t.getName()); frameStr.append("\"\n"); appendStackInfo(frameStr, t); } Clipboard systemClipboard = getClipboard(); Transferable transferableText = new StringSelection(frameStr.toString()); systemClipboard.setContents( transferableText, null); }
private void stackToCLBD(List<JPDAThread> threads) { StringBuffer frameStr = new StringBuffer(512); for (JPDAThread t : threads) { if (frameStr.length() > 0) { frameStr.append('\n'); } frameStr.append("\""); frameStr.append(t.getName()); frameStr.append("\"\n"); appendStackInfo(frameStr, t); } Clipboard systemClipboard = getClipboard(); Transferable transferableText = new StringSelection(frameStr.toString()); systemClipboard.setContents( transferableText, null); }
public String getShortDescription () { if (type == EditorContext.CURRENT_LINE_ANNOTATION_TYPE) return NbBundle.getMessage (DebuggerAnnotation.class, "TOOLTIP_CURRENT_PC"); // NOI18N if (type == EditorContext.CURRENT_EXPRESSION_CURRENT_LINE_ANNOTATION_TYPE) return NbBundle.getMessage (DebuggerAnnotation.class, "TOOLTIP_CURRENT_EXP_LINE"); // NOI18N else if (type == EditorContext.CALL_STACK_FRAME_ANNOTATION_TYPE) return NbBundle.getBundle (DebuggerAnnotation.class).getString ("TOOLTIP_CALLSITE"); // NOI18N if (type == EditorContext.OTHER_THREAD_ANNOTATION_TYPE) { return NbBundle.getMessage(DebuggerAnnotation.class, "TOOLTIP_OTHER_THREAD", thread.getName()); } ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, new IllegalStateException("Unknown annotation type '"+type+"'.")); return null; }
@Override public String getShortDescription () { if (type == EditorContext.CURRENT_LINE_ANNOTATION_TYPE) { return NbBundle.getMessage (DebuggerAnnotation.class, "TOOLTIP_CURRENT_PC"); // NOI18N } if (type == EditorContext.CURRENT_EXPRESSION_CURRENT_LINE_ANNOTATION_TYPE) { return NbBundle.getMessage (DebuggerAnnotation.class, "TOOLTIP_CURRENT_EXP_LINE"); // NOI18N } else if (type == EditorContext.CALL_STACK_FRAME_ANNOTATION_TYPE) { return NbBundle.getBundle (DebuggerAnnotation.class).getString ("TOOLTIP_CALLSITE"); // NOI18N } if (type == EditorContext.OTHER_THREAD_ANNOTATION_TYPE) { return NbBundle.getMessage(DebuggerAnnotation.class, "TOOLTIP_OTHER_THREAD", thread.getName()); } ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, new IllegalStateException("Unknown annotation type '"+type+"'.")); return null; }
@Override public String getShortDescription () { if (type == EditorContext.CURRENT_LINE_ANNOTATION_TYPE) { return NbBundle.getMessage (DebuggerAnnotation.class, "TOOLTIP_CURRENT_PC"); // NOI18N } if (type == EditorContext.CURRENT_EXPRESSION_CURRENT_LINE_ANNOTATION_TYPE) { return NbBundle.getMessage (DebuggerAnnotation.class, "TOOLTIP_CURRENT_EXP_LINE"); // NOI18N } else if (type == EditorContext.CALL_STACK_FRAME_ANNOTATION_TYPE) { return NbBundle.getBundle (DebuggerAnnotation.class).getString ("TOOLTIP_CALLSITE"); // NOI18N } if (type == EditorContext.OTHER_THREAD_ANNOTATION_TYPE) { return NbBundle.getMessage(DebuggerAnnotation.class, "TOOLTIP_OTHER_THREAD", thread.getName()); } ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, new IllegalStateException("Unknown annotation type '"+type+"'.")); return null; }