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 26128 - methodvalue attribute works strange on MultiFileSystem
Summary: methodvalue attribute works strange on MultiFileSystem
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: rmatous
Depends on: 29382
  Show dependency tree
Reported: 2002-07-30 17:24 UTC by Svata Dedic
Modified: 2008-12-22 20:10 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2002-07-30 17:24:23 UTC
When there are some layers merged in the
MultiFileSystem and a FileObject on a layer has
the "methodvalue" attribute, the method referenced
by that attribute gets passed the FileObject
instance from the layer, rather than the one from
the MultiFileSystem.
Comment 1 Svata Dedic 2002-08-05 09:35:18 UTC
Any clues when this issue may be fixed ? It does not allow to register
a context-aware service (context == the filesystem/fileobject used to
create the InstanceCookie) through a layer or a XMLFS/MultiFS. 
One must use .settings XML files instead (note the inconsistency b/w
.settings file and instanceCreate attribute), but the handler attempts
to autosave modified instances.
Comment 2 Vitezslav Stejskal 2002-10-13 23:31:00 UTC
Fixed, using package private static ThreadLocal variable to remeber
MultiFileObject which is asked for attribute's value, this MFO is then
passed to the method specified in methodvalue attribute.

This fix is crutial for Looks and Projects., 1.105, 1.65
Comment 3 Jesse Glick 2003-03-26 23:08:07 UTC
What is the use case for this please?
Comment 4 rmatous 2003-03-27 09:39:28 UTC
Use case for the method referenced by the methodValue attribute, that
gets passed FileObject ? FileObject can have more attributes than this
one methodValue. If method referenced by the methodValue gets passed
FileObject it gets also its attributes, which may be convenient for
parametrization of instantiation.  

Comment 5 Vitezslav Stejskal 2003-03-27 10:32:24 UTC
The original usecase as far as I can remember is that the method which
gets FO as parameter sometimes need to obtain the Project for it. E.g.
when method creates instance of some service in the project, this
service has to know what is the project. Projects infrastructure
allows to find the project for FileObjects laying on the
ProjectFileSystem, however, this is the layered MFS and the FO usually
comes from one of its layers. If the method gets FO from the layer and
not the appropriate MultiFileObject which getFileSystem() is
instanceof ProjectFileSystem then the method can't find the project.
Comment 6 Marian Mirilovic 2005-07-15 07:49:25 UTC