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.
Currently, the Projects' editor support, when creating the javax.swing.text.Document, inserts an instance Project as a property to the docuemnt. This is useful, because the EditorKit (which does all the coloring and completion and stuff) can then extract it and use it as context. It would be useful if extracting the property was supported by a utility method, e.g. public static Project getProject(Document doc) {...} This would be analogous to what currently the Editor module provides for DataObjects: Class org.netbeans.modules.editor.NbEditorUtilities contains method public static DataObject getDataObject(Document doc) {...}
See also issue 34815.
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped.
--> VERIFIED