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 177636
Collapse All | Expand All

(-)a/xml.axi/src/org/netbeans/modules/xml/axi/impl/ModelAccessImpl.java (-1 / +1 lines)
Lines 114-120 Link Here
114
            SchemaGeneratorFactory sgf = SchemaGeneratorFactory.getDefault();			
114
            SchemaGeneratorFactory sgf = SchemaGeneratorFactory.getDefault();			
115
            sgf.updateSchema(model.getSchemaModel(), model.getSchemaDesignPattern());
115
            sgf.updateSchema(model.getSchemaModel(), model.getSchemaDesignPattern());
116
        } catch (Exception ex) {
116
        } catch (Exception ex) {
117
            throw new IllegalArgumentException("Exception during flush: ",ex); //NOI18N
117
            throw new IllegalStateException("Exception during flush: ",ex); //NOI18N
118
        } finally {
118
        } finally {
119
            model.getPropertyChangeListener().clearEvents();
119
            model.getPropertyChangeListener().clearEvents();
120
        }
120
        }
(-)a/xml.xam/src/org/netbeans/modules/xml/xam/AbstractModel.java (-1 / +10 lines)
Lines 343-350 Link Here
343
        return transaction != null;
343
        return transaction != null;
344
    }
344
    }
345
345
346
    /**
347
     * Ends the transaction and commits changes to the document.
348
     * The operation may throw {@link IllegalStateException} if it is not possible to 
349
     * flush changes, because e.g. file is read-only, deleted or the document is changed
350
     * in an incompatible way during the transaction.
351
     * 
352
     * @throws IllegalStateException when the backing file/document is read-only or the document
353
     * changed in a way that prevent application of changes.
354
     */
346
    @Override
355
    @Override
347
    public synchronized void endTransaction() {
356
    public synchronized void endTransaction() throws IllegalStateException {
348
        endTransaction(false);
357
        endTransaction(false);
349
    }
358
    }
350
    
359
    

Return to bug 177636