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

(-)openide/src/org/openide/loaders/DataNode.java (+22 lines)
Lines 361-366 Link Here
361
          }
361
          }
362
    });
362
    });
363
        */
363
        */
364
        // Size property
365
        try {
366
            p = new PropertySupport.Reflection(
367
            obj.getPrimaryFile(), Boolean.TYPE, "getSize", null );//NOI18N
368
            p.setName("size");
369
            p.setDisplayName("size");
370
            p.setShortDescription("size");
371
            ss.put(p);
372
        } catch (Exception ex) {
373
            throw new InternalError();
374
        }
375
        // Last Modified Property
376
        try {
377
            p = new PropertySupport.Reflection(
378
            obj.getPrimaryFile(), java.util.Date.class, "lastModified", null );//NOI18N
379
            p.setName("lastModified");
380
            p.setDisplayName("lastModified");
381
            p.setShortDescription("lastModified");
382
            ss.put(p);
383
        } catch (Exception ex) {
384
            throw new InternalError();
385
        }        
364
386
365
        return s;
387
        return s;
366
    }
388
    }

Return to bug 26667