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.
Blocks issue 32210: Right now the Line has constructor taking Lookup. If the creator of the line passed Lookup containing DataObject into its line, then DataEditorSupport.findDataObject(line) would work. Obvisously it does not do that and very likely there is no way to do it now. We need a way how CloneableEditorSupport subclass will pass a Lookup to all its lines. I suggest new constructor taking the Lookup. Then all lines will return this lookup.
Created attachment 9967 [details] Suggested change, is it useful for PropertiesES?
Patch seems to make sense to me. But for properties module, adding the DataObject to lookup will be useless - need the PresentableFileEntry and/or FileObject.
Fixed and some basic CES tests written - invitation for extenders ;-) Checking in openide-spec-vers.properties; /cvs/openide/openide-spec-vers.properties,v <-- openide-spec-vers.properties new revision: 1.113; previous revision: 1.112 done Processing log script arguments... More commits to come... Checking in api/doc/changes/apichanges.xml; /cvs/openide/api/doc/changes/apichanges.xml,v <-- apichanges.xml new revision: 1.153; previous revision: 1.152 done Processing log script arguments... More commits to come... Checking in loaders/src/org/openide/text/DataEditorSupport.java; /cvs/openide/loaders/src/org/openide/text/DataEditorSupport.java,v <-- DataEditorSupport.java new revision: 1.5; previous revision: 1.4 done Processing log script arguments... More commits to come... Checking in src/org/openide/text/CloneableEditorSupport.java; /cvs/openide/src/org/openide/text/CloneableEditorSupport.java,v <-- CloneableEditorSupport.java new revision: 1.86; previous revision: 1.85 done Checking in src/org/openide/text/EditorSupportLineSet.java; /cvs/openide/src/org/openide/text/EditorSupportLineSet.java,v <-- EditorSupportLineSet.java new revision: 1.33; previous revision: 1.32
verified, closed