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

(-)src/org/netbeans/modules/openfile/OpenFile.java (-2 / +10 lines)
Lines 111-127 Link Here
111
     * @param port port to send reply to, valid only if wait set
111
     * @param port port to send reply to, valid only if wait set
112
     * @param line line number to try to open to (starting at zero), or <code>-1</code> to ignore
112
     * @param line line number to try to open to (starting at zero), or <code>-1</code> to ignore
113
     */
113
     */
114
    static void open (final File file, final boolean wait, InetAddress address, int port, int line) {
114
    static void open (File file, final boolean wait, InetAddress address, int port, int line) {
115
        try {
116
            file = file.getCanonicalFile();
117
        } catch (IOException exc) {
118
            // ignore it
119
            em.log (exc.getMessage());
120
        }
121
115
        em.log ("    file: " + file);
122
        em.log ("    file: " + file);
116
        em.log ("    file.exists: " + file.exists());
123
        em.log ("    file.exists: " + file.exists());
117
        em.log ("    file.isFile: " + file.isFile());
124
        em.log ("    file.isFile: " + file.isFile());
118
125
119
        if ( ( file.exists() == false ) ||
126
        if ( ( file.exists() == false ) ||
120
             ( file.isFile() == false ) ) {
127
             ( file.isFile() == false ) ) {
128
            final String fileName = file.toString();
121
            new Thread (new Runnable () {
129
            new Thread (new Runnable () {
122
                    public void run () {
130
                    public void run () {
123
                        TopManager.getDefault().notify (new NotifyDescriptor.Message
131
                        TopManager.getDefault().notify (new NotifyDescriptor.Message
124
                            (SettingsBeanInfo.getString ("MSG_fileNotFound", file.toString())));
132
                            (SettingsBeanInfo.getString ("MSG_fileNotFound", fileName)));
125
                    }
133
                    }
126
                }).start();
134
                }).start();
127
            return;
135
            return;

Return to bug 25954