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 47825
Collapse All | Expand All

(-)EditorSupportLineSet.java (-2 / +12 lines)
Lines 13-21 Link Here
13
13
14
package org.openide.text;
14
package org.openide.text;
15
15
16
import org.openide.util.WeakListeners;
17
import java.io.*;
18
import java.util.*;
16
import java.util.*;
17
import javax.swing.JFrame;
19
import javax.swing.event.*;
18
import javax.swing.event.*;
20
import javax.swing.text.StyledDocument;
19
import javax.swing.text.StyledDocument;
21
import javax.swing.text.Position;
20
import javax.swing.text.Position;
Lines 78-83 Link Here
78
            CloneableEditorSupport.Pane editor = support.openAt(pos, column);
77
            CloneableEditorSupport.Pane editor = support.openAt(pos, column);
79
78
80
            if (kind == SHOW_GOTO) {
79
            if (kind == SHOW_GOTO) {
80
                java.awt.Window w = javax.swing.SwingUtilities.getWindowAncestor(editor.getComponent());
81
                 // be defensive, although w probably will always be non-null here
82
                 if (w != null) {
83
                    if( w instanceof JFrame ) {
84
                        JFrame frame = (JFrame)w;
85
                        int state = frame.getExtendedState();
86
                        if( (state & JFrame.ICONIFIED) > 0 )
87
                            frame.setExtendedState( state-JFrame.ICONIFIED );
88
                    }
89
                    w.toFront();
90
                }                
81
                editor.getComponent ().requestActive();
91
                editor.getComponent ().requestActive();
82
            }
92
            }
83
        }
93
        }

Return to bug 47825