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.
Summary: | Simple way to run atomic action without having a fileobject | ||
---|---|---|---|
Product: | platform | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Filesystems | Assignee: | rmatous <rmatous> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | apireviews, mkubec |
Priority: | P3 | Keywords: | API_REVIEW_FAST |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 123832 | ||
Attachments: | Suggested patch |
Description
Jaroslav Tulach
2007-12-12 17:52:43 UTC
Radek, please implement this little enhancement for the benefit of everyone. Created attachment 54688 [details]
Suggested patch
Patch+API change+Test submitted as attachment. FileUtil.Executor not included, because I don't find it much handy. OK with me. Up to Milan to decide if this is acceptable API for him, as this means he will have to write the executor himself. Iff it was OK for Milan, someone else might require different impl. The simplest executor 1 - 3 lines of code for everyone I think that it's OK even without executor support. Will be integrated tomorrow Fixed: /cvs/openide/fs/src/org/openide/filesystems/FileUtil.java,v <-- FileUtil.java new revision: 1.50; previous revision: 1.49 /cvs/openide/fs/test/unit/src/org/openide/filesystems/FileUtilTestHidden.java,v <-- FileUtilTestHidden.java new revision: 1.6; previous revision: 1.5 /cvs/openide/fs/manifest.mf,v <-- manifest.mf new revision: 1.13; previous revision: 1.12 /cvs/openide/fs/apichanges.xml,v <-- apichanges.xml new revision: 1.17; previous revision: 1.16 |