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

(-)ContextBindings.java (-18 / +17 lines)
Line 46 Link Here
46
    // used to distinguish _binding_ changes done in this class and outside of
46
the core/registry
47
the core/registry
48
    static FileSystem.AtomicAction referenceAction = new RegistryAtomicAction
49
        public void run() throws IOException {
50
        }
51
    };
Lines 52-54 Link Here
52
    // used to distinguish _binding_ changes done in this class and outside of
53
the core/registry
58
the core/registry
54
    private FileSystem.AtomicAction lastAtomicAction = null;
Lines 162-168 Link Here
162
    public FileSystem.AtomicAction getLastAtomicAction() {
163
        return lastAtomicAction;
164
    }
Line 180 Link Here
180
            folder.getFileSystem().runAtomicAction(lastAtomicAction = new File
176
            folder.getFileSystem().runAtomicAction(new RegistryAtomicAction ()
181
--
182
{
177
{
Lines 189-192 Link Here
189
        } finally {
185
        }
190
            // reset it to null - events should be processed now
191
            lastAtomicAction = null;
192
        }
193
--
Line 324 Link Here
324
            folder.getFileSystem().runAtomicAction(lastAtomicAction = new File
317
            folder.getFileSystem().runAtomicAction(new RegistryAtomicAction ()
325
--
326
{
318
{
Lines 333-335 Link Here
333
        } finally {
326
        }
334
            lastAtomicAction = null;
335
        }
336
--
Line 399 Link Here
390
    }
391
    private static abstract class RegistryAtomicAction implements FileSystem.A
392
        public boolean equals(Object obj) {
393
            return (obj instanceof RegistryAtomicAction);
394
        }
395
        public int hashCode() {
396
            return RegistryAtomicAction.class.hashCode();
397
        }
(-)FileSystemListener.java (-6 / +3 lines)
Line 94 Link Here
94
        if(fe.firedFrom(ctx.getContextBindings().getLastAtomicAction())) {
94
        if(fe.firedFrom(ContextBindings.referenceAction)) {
95
--
Line 116 Link Here
116
            if(fe.firedFrom(ctx.getContextBindings().getLastAtomicAction())) {
116
            if(fe.firedFrom(ContextBindings.referenceAction)) {
117
--
Line 140 Link Here
140
            if(fe.firedFrom(ctx.getContextBindings().getLastAtomicAction())) {
140
            if(fe.firedFrom(ContextBindings.referenceAction)) {
141
--

Return to bug 40498