~andre-dau/jhelioviewer/welcome

« back to all changes in this revision

Viewing changes to viewmodel/src/org/helioviewer/viewmodel/changeevent/ChangeEvent.java

  • Committer: Helge Dietert
  • Date: 2010-07-21 18:26:09 UTC
  • mfrom: (189.1.11 vsoIntegrated)
  • Revision ID: helge@clem.local-20100721182609-qfmi23gqm0wkmm7n
Integrated VSO Client

Show diffs side-by-side

added added

removed removed

Lines of Context:
252
252
 
253
253
        return outputList;
254
254
    }
 
255
    
 
256
    public synchronized void reinitialize() {
 
257
        history.clear();
 
258
        availableChangeReasons.clear();
 
259
        changeEventID = getNextID();
 
260
    }
 
261
    
 
262
    public synchronized boolean isEmpty() {
 
263
        return history.isEmpty() && availableChangeReasons.isEmpty();
 
264
        
 
265
    }
 
266
    
 
267
    public synchronized ChangeEvent clone() {
 
268
        ChangeEvent res = new ChangeEvent();
 
269
        res.history.addAll(history);
 
270
        res.availableChangeReasons.addAll(availableChangeReasons);
 
271
        res.changeEventID = changeEventID;
 
272
        return res;
 
273
    }
255
274
 
256
275
}