This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 59336
Collapse All | Expand All

(-)a/debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/ToolTipAnnotation.java (-4 / +19 lines)
Lines 41-49 Link Here
41
41
42
package org.netbeans.modules.debugger.jpda.projects;
42
package org.netbeans.modules.debugger.jpda.projects;
43
43
44
import com.sun.source.tree.Tree;
45
import com.sun.source.tree.Tree.Kind;
46
import com.sun.source.util.TreePath;
44
import com.sun.source.util.TreePath;
45
import java.awt.Color;
47
import java.io.IOException;
46
import java.io.IOException;
48
import java.util.Arrays;
47
import java.util.Arrays;
49
import java.util.Collections;
48
import java.util.Collections;
Lines 51-57 Link Here
51
import java.util.List;
50
import java.util.List;
52
import java.util.Set;
51
import java.util.Set;
53
import javax.lang.model.element.ElementKind;
52
import javax.lang.model.element.ElementKind;
53
import javax.swing.BoxLayout;
54
import javax.swing.JEditorPane;
54
import javax.swing.JEditorPane;
55
import javax.swing.JLabel;
56
import javax.swing.JPanel;
57
import javax.swing.JTextArea;
58
import javax.swing.border.LineBorder;
55
import javax.swing.text.BadLocationException;
59
import javax.swing.text.BadLocationException;
56
import javax.swing.text.Document;
60
import javax.swing.text.Document;
57
import javax.swing.text.Element;
61
import javax.swing.text.Element;
Lines 75-80 Link Here
75
import org.netbeans.api.debugger.jpda.Variable;
79
import org.netbeans.api.debugger.jpda.Variable;
76
import org.netbeans.api.java.source.CompilationController;
80
import org.netbeans.api.java.source.CompilationController;
77
import org.netbeans.api.java.source.JavaSource.Phase;
81
import org.netbeans.api.java.source.JavaSource.Phase;
82
import org.netbeans.editor.Utilities;
78
import org.netbeans.modules.parsing.api.ParserManager;
83
import org.netbeans.modules.parsing.api.ParserManager;
79
import org.netbeans.modules.parsing.api.ResultIterator;
84
import org.netbeans.modules.parsing.api.ResultIterator;
80
import org.netbeans.modules.parsing.api.Source;
85
import org.netbeans.modules.parsing.api.Source;
Lines 133-140 Link Here
133
            // Debugger is likely finishing...
138
            // Debugger is likely finishing...
134
            rp = RequestProcessor.getDefault();
139
            rp = RequestProcessor.getDefault();
135
        }
140
        }
141
136
        rp.post (this);
142
        rp.post (this);
137
        return null;
143
        return "";
138
    }
144
    }
139
145
140
    public void run () {
146
    public void run () {
Lines 230-236 Link Here
230
                toolTipText = expression + " = >" + e.getMessage () + "<";
236
                toolTipText = expression + " = >" + e.getMessage () + "<";
231
            }
237
            }
232
        }
238
        }
233
        firePropertyChange (PROP_SHORT_DESCRIPTION, null, toolTipText);
239
240
        JPanel panel = new JPanel();
241
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
242
        panel.setBorder(new LineBorder(Color.black, 1));
243
        panel.add(new JLabel("And the tooltip is..."));
244
        panel.add(new JTextArea(toolTipText));
245
246
        Utilities.getEditorUI(ep).getToolTipSupport().setToolTip(panel);
247
248
        //firePropertyChange (PROP_SHORT_DESCRIPTION, null, toolTipText);
234
    }
249
    }
235
250
236
    public String getAnnotationType () {
251
    public String getAnnotationType () {

Return to bug 59336