use of edu.cmu.cs.hcii.cogtool.util.RcvrOutOfMemoryException in project cogtool by cogtool.
the class DesignEditorController method copyFrames.
protected void copyFrames(Frame[] frames) {
try {
// Passing the set of frames as part of purpose allows us
// to copy only those transitions that link those frames.
ObjectSaver s = CogToolClipboard.startClipboardSave(CogToolClipboard.CopyFrames, frames, CogToolClipboard.SAVE_TO_CLIPBOARD);
for (Frame frame : frames) {
s.saveObject(frame);
}
s.finish();
} catch (IOException e) {
throw new RcvrClipboardException(e);
} catch (IllegalStateException e) {
throw new RcvrClipboardException(e);
} catch (OutOfMemoryError error) {
throw new RcvrOutOfMemoryException("Copying Frames", error);
}
}
Aggregations