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.
Winsys configuration is separated to module folder (where winsys configuration defined by modules is stored - read only) and local folder where modified or current winsys configuration is stored. When TopComponent stays at the same mode as defined by module wstcref file is present both in module and local folder in the same mode folder. This handled by loading only from local folder when wstref file is present in boh. When TopComponent is moved to another mode it is necessary to avoid loading wstcref file from module folder in original mode. Deleting wstcref file in module folder would create _hidden file and it would break handling of disabling/enabling module. So I choosed to handle it in code: When wstcref (every TopComponent and wstcref has unique ID) is present in local folder AND in different mode in module folder => wstcref in module folder is ignored. It is necessary to update handling of disabling/enabling module to ensure proper cleaning of local wstcref files when module is disabled.
Masking is already implemented. Cleaning of files from local folder must be checked when wstcref is already in different mode in local folder.
Done.