| 1 19 20 package org.netbeans.modules.junit.output; 21 import java.awt.event.ActionEvent ; 22 import java.io.File ; 23 import java.io.IOException ; 24 import javax.swing.AbstractAction ; 25 import javax.swing.Action ; 26 import org.netbeans.api.java.classpath.ClassPath; 27 import org.netbeans.api.project.FileOwnerQuery; 28 import org.netbeans.api.project.Project; 29 import org.netbeans.api.project.SourceGroup; 30 import org.netbeans.modules.junit.wizards.Utils; 31 import org.netbeans.spi.java.classpath.support.ClassPathSupport; 32 import org.openide.ErrorManager; 33 import org.openide.cookies.EditorCookie; 34 import org.openide.filesystems.FileObject; 35 import org.openide.filesystems.FileUtil; 36 import org.openide.loaders.DataObject; 37 import org.openide.loaders.DataObjectNotFoundException; 38 import org.openide.nodes.AbstractNode; 39 import org.openide.nodes.Children; 40 import org.openide.nodes.Node; 41 import org.openide.text.Line; 42 43 47 final class CallstackFrameNode extends AbstractNode { 48 49 50 private final String frameInfo; 51 52 53 public CallstackFrameNode(final String frameInfo) { 54 this(frameInfo, null); 55 } 56 57 65 public CallstackFrameNode(final String frameInfo, 66 final String displayName) { 67 super(Children.LEAF); 68 setDisplayName(displayName != null 69 ? displayName 70 : "at " + frameInfo); setIconBaseWithExtension( 72 "org/netbeans/modules/junit/output/res/empty.gif"); 74 this.frameInfo = frameInfo; 75 } 76 77 79 public Action getPreferredAction() { 80 return new JumpAction(this, frameInfo); 81 } 82 83 } 84 | Popular Tags |