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.
*/
public CppEditorSupport(SourceDataObject obj, Node nodeDelegate) {
super(obj, null, new Environment(obj));
new Exception("For " + obj).printStackTrace();
this.ic = obj.getInstanceContent();
if (nodeDelegate != null) {
this.ic.add(nodeDelegate);
}
static class CppEditorSupportFactory implements Convertor<SourceDataObject, CppEditorSupport> {
// FIXUP for IZ 202681, if we do not keep a reference to CppEditorSupport it will
// be released and a new instance will be created due to MultiView peer deserialization
private final Map<DataObject, CppEditorSupport> cache = new WeakHashMap<DataObject, CppEditorSupport>();
public CppEditorSupportFactory() {
@Override
public synchronized CppEditorSupport convert(SourceDataObject obj) {
CppEditorSupport res = cache.get(obj);
if (obj.es != null) {
if (res == null) {
return obj.es;
Node nodeDelegate = null;
if (obj.isValid()) {
nodeDelegate = obj.getNodeDelegate();
res = new CppEditorSupport(obj, nodeDelegate);
cache.put(obj, res);
return res;
return obj.es = new CppEditorSupport(obj, nodeDelegate);
return id(obj);
private synchronized void notifyClosed(DataObject dobj) {
private void notifyClosed(DataObject dobj) {
cache.remove(dobj);
static final long serialVersionUID = -6788084224129713370L;
private InstanceContent ic;
private Lookup myLookup;
CppEditorSupport es;
public SourceDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException {