X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.machine%2Fsrc%2Fnet%2Fmograsim%2Fmachine%2FMachineRegistry.java;h=089cf31c9fb9f69671211e0204a8a0afccbd23e9;hb=3278dbc72d3d3c803dc5ad2c0dfedc42b277a3d6;hp=ca52eaea1bc15150d423bb871a4e7f1bbe6e1159;hpb=4c2b7a2100e55b5e4bf59666b9684d5a996bd0fb;p=Mograsim.git diff --git a/plugins/net.mograsim.machine/src/net/mograsim/machine/MachineRegistry.java b/plugins/net.mograsim.machine/src/net/mograsim/machine/MachineRegistry.java index ca52eaea..089cf31c 100644 --- a/plugins/net.mograsim.machine/src/net/mograsim/machine/MachineRegistry.java +++ b/plugins/net.mograsim.machine/src/net/mograsim/machine/MachineRegistry.java @@ -16,10 +16,18 @@ import org.eclipse.core.runtime.IExtensionRegistry; import org.eclipse.core.runtime.IRegistryEventListener; import org.eclipse.core.runtime.Platform; +/** + * The MachineRegsitry is a static context registry for all {@link MachineDefinition}s known at any point during runtime. + *

+ * It is updated automatically as mograsim machine definition extension points ({@link #MACHINE_EXT_ID}) are added or removed. + * + * @author Christian Femers + * + */ public class MachineRegistry { - private static final String MACHINE_EXT_ID = "net.mograsim.machine.machine_definition"; + public static final String MACHINE_EXT_ID = "net.mograsim.machine.machine_definition"; private static final Map installedMachines = Collections.synchronizedMap(new HashMap<>()); private static final Set listeners = Collections.synchronizedSet(new HashSet<>());