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.

Bug 158600 - extend MaterFS spi
Summary: extend MaterFS spi
Status: RESOLVED DUPLICATE of bug 158681
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 5.x
Hardware: Macintosh All
: P1 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-16 10:05 UTC by Tomas Stupka
Modified: 2009-02-17 16:05 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
masterfs patch. (3.72 KB, patch)
2009-02-17 12:10 UTC, Jiri Skrivanek
Details | Diff
patch extended (3.79 KB, text/plain)
2009-02-17 15:06 UTC, Tomas Stupka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Stupka 2009-02-16 10:05:18 UTC
To provide VCS specific info for particular files we need to intercept calls to FileObject.getAttribute() 

1.) The VCS FS extension shoud be able to register a set of supported attributes 
2.) the masterfs would then for those attributes forward the FileObject.getAttribute() call to the VCS interceptor
Comment 1 Jiri Skrivanek 2009-02-17 12:09:03 UTC
Please, look at attached diff. Attribute names have to start with "ProvidedExtensions" prefix to delegate gatAttribute call.
Comment 2 Jiri Skrivanek 2009-02-17 12:10:12 UTC
Created attachment 77064 [details]
masterfs patch.
Comment 3 Tomas Stupka 2009-02-17 15:06:04 UTC
Created attachment 77073 [details]
patch extended
Comment 4 Tomas Stupka 2009-02-17 15:11:28 UTC
two changes:

- added file parameter -> ProvidedExtensions.getAtrribute(File file, String atrName)
- the first value != null returned by a ProvidedExtensions provider should be returned

if there is no objection i will push the changes to hg.netbeans.org/cdev from where they will be later merged to
hg.netbeans.org/main
Comment 5 Tomas Stupka 2009-02-17 16:05:42 UTC

*** This issue has been marked as a duplicate of 158681 ***