1 package net.sf.openrocket.gui.main;
3 import net.sf.openrocket.document.Simulation;
4 import net.sf.openrocket.rocketcomponent.RocketComponent;
6 public class OpenRocketClipboard {
8 private static Object clipboard = null;
10 private OpenRocketClipboard() {
11 // Disallow instantiation
16 * Return the <code>RocketComponent</code> contained in the clipboard, or
19 * @return the rocket component contained in the clipboard, or <code>null</code>
20 * if the clipboard does not currently contain a rocket component.
22 public static RocketComponent getComponent() {
23 if (clipboard instanceof RocketComponent) {
24 return (RocketComponent) clipboard;
30 public static Simulation[] getSimulations() {