Project

General

Profile

« Previous | Next » 

Revision ec23f5f4

Added by Cherian Mathew over 8 years ago

#5301 Fix null session issues, Add remoting session for feature tree editor

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/session/CdmEntitySessionManager.java
186 186
            setActiveSession(null);
187 187
        }
188 188
        ownerSessionMap.remove(owner);
189
        notifyObservers();
189 190

  
190 191
    }
191 192

  
......
198 199
        if(nullSession != null && nullSession.getOwner() == owner) {
199 200
            nullSession = null;
200 201
        }
201
        notifyObservers();
202
    }
203 202

  
204
    @Override
205
    public void disposeNullSession() {
206
        nullSession = null;
207
        notifyObservers();
208 203
    }
209 204

  
205

  
210 206
    @Override
211 207
    public void disposeAll() {
212 208
        Set<ICdmEntitySessionEnabled> owners =
......
217 213
                session.dispose();
218 214
            }
219 215
        }
220
        notifyObservers();
216

  
221 217
    }
222 218

  
223 219
    void addToOwnerSessionMap(ICdmEntitySessionEnabled owner, ICdmEntitySession session) {
224 220
        ownerSessionMap.put(owner, session);
221
        notifyObservers();
225 222
    }
226 223

  
227 224
    /* (non-Javadoc)

Also available in: Unified diff