Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
View | Details | Raw Unified | Return to bug 46483 | Differences between
and this patch

Collapse All | Expand All

(-)Actions.java (+19 lines)
 Lines 271-276    Link Here 
271
                    buf.append(f.getAbsolutePath());
271
                    buf.append(f.getAbsolutePath());
272
                } else if (format.equals("relative-path")) { // NOI18N
272
                } else if (format.equals("relative-path")) { // NOI18N
273
                    buf.append((String) entry.getKey());
273
                    buf.append((String) entry.getKey());
274
                } else if (format.equals("absolute-path-base")) { // NOI18N
275
                    File f = FileUtil.toFile((FileObject) entry.getValue());
276
                    if (f == null) {
277
                        // Not a disk file??
278
                        return;
279
                    }
280
                    String path = f.getAbsolutePath();
281
                    int dot = path.lastIndexOf('.');
282
                    if (dot > path.lastIndexOf('/')) {
283
                        path = path.substring(0, dot);
284
                    }
285
                    buf.append(path);
286
                } else if (format.equals("relative-path-base")) { // NOI18N
287
                    String path = (String) entry.getKey();
288
                    int dot = path.lastIndexOf('.');
289
                    if (dot > path.lastIndexOf('/')) {
290
                        path = path.substring(0, dot);
291
                    }
292
                    buf.append(path);
274
                } else {
293
                } else {
275
                    assert format.equals("java-name") : format;
294
                    assert format.equals("java-name") : format;
276
                    String path = (String) entry.getKey();
295
                    String path = (String) entry.getKey();

Return to bug 46483
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo