@Override
public void start(BundleContext context) throws Exception
{
- setup(); // TODO: useful?
+ setup();
}
@Override
return;
IndirectGUIComponentCreator.registerResourceLoader(new Am2900ResourceLoader(), "Am2900Loader");
IndirectGUIComponentCreator.loadStandardComponentIDs(Am2900Loader.class.getResourceAsStream("standardComponentIDMapping.json"));
- System.out.println("SETUP DONE");
- }
-
- static
- {
- setup();
+// System.out.println("SETUP DONE"); // TODO: Debug
}
/**
net.mograsim.plugin.asm.editor,
net.mograsim.plugin.asm.editor.rules,
net.mograsim.plugin.nature,
+ net.mograsim.plugin.tables,
+ net.mograsim.plugin.tables.memory,
+ net.mograsim.plugin.tables.mi,
+ net.mograsim.plugin.util,
net.mograsim.plugin.views
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.ui,
Bundle-RequiredExecutionEnvironment: JavaSE-11
Automatic-Module-Name: net.mograsim.plugin.core
Bundle-Vendor: %Bundle-Vendor.0
+Bundle-Activator: net.mograsim.plugin.MograsimActivator
+Bundle-ActivationPolicy: lazy
--- /dev/null
+package net.mograsim.plugin;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+import net.mograsim.machine.MachineRegistry;
+
+public final class MograsimActivator extends AbstractUIPlugin
+{
+
+ public MograsimActivator()
+ {
+ MachineRegistry.reload();
+ }
+}
// set preferences
Preferences.setPreferences(new ThemePreferences(PlatformUI.getWorkbench().getThemeManager().getCurrentTheme()));
- Optional<MachineDefinition> mdo = MachineRegistry.getinstalledMachines().stream().findFirst();
+ Optional<MachineDefinition> mdo = MachineRegistry.getinstalledMachines().values().stream().findFirst();
MachineDefinition md = mdo.orElseThrow(IllegalStateException::new);
Machine m = md.createNew();