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.

View | Details | Raw Unified | Return to bug 15756
Collapse All | Expand All

(-)core/src/org/netbeans/modules/xml/core/text/TextEditorSupport.java (-1 / +5 lines)
Lines 228-237 Link Here
228
228
229
229
230
    /**
230
    /**
231
     * It simply calls super.notifyClosed() for all instances except
232
     * TextEditorSupport.class == this.getClass().
231
     */
233
     */
232
    protected void notifyClosed () {
234
    protected void notifyClosed () {
233
        super.notifyClosed();
235
        super.notifyClosed();
234
236
237
        // #15756 following code handles synchronization on text editor closing only!
238
        if (this.getClass() != TextEditorSupport.class) return;
239
        
235
        XMLDataObjectLook dobj = (XMLDataObjectLook) getDataObject();
240
        XMLDataObjectLook dobj = (XMLDataObjectLook) getDataObject();
236
        Synchronizator sync = dobj.getSyncInterface();
241
        Synchronizator sync = dobj.getSyncInterface();
237
        Representation oldRep = rep;
242
        Representation oldRep = rep;
Lines 246-252 Link Here
246
//          }
251
//          }
247
    }
252
    }
248
    
253
    
249
250
    /**
254
    /**
251
     */
255
     */
252
    Env getEnv () {
256
    Env getEnv () {

Return to bug 15756