From: Daniel Kirschten <daniel.kirschten@gmx.de>
Date: Thu, 15 Oct 2020 15:08:26 +0000 (+0200)
Subject: Introduced a wizard for new MPROMs
X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=e0efed041f09a7ec985a1cd80670711344887472;p=Mograsim.git

Introduced a wizard for new MPROMs
---

diff --git a/plugins/net.mograsim.plugin.core.nl_de/OSGI-INF/l10n/bundle_de.properties b/plugins/net.mograsim.plugin.core.nl_de/OSGI-INF/l10n/bundle_de.properties
index e69d3c45..9286b1d3 100644
--- a/plugins/net.mograsim.plugin.core.nl_de/OSGI-INF/l10n/bundle_de.properties
+++ b/plugins/net.mograsim.plugin.core.nl_de/OSGI-INF/l10n/bundle_de.properties
@@ -44,6 +44,8 @@ wizards.newWizards.mpm.name = Microprogram Memory
 wizards.newWizards.mpm.desc = Erstelle eine neue Mikroprogrammspeicherdatei
 wizards.newWizards.mem.name = Hauptspeicher
 wizards.newWizards.mem.desc = Erstelle eine neue Hauptspeicherdatei
+wizards.newWizards.mprom.name = Mapping-PROM
+wizards.newWizards.mprom.desc = Erstelle ein neues Mapping-PROM
 wizards.newWizards.project.name = Mograsim Project
 wizards.newWizards.project.desc = Erstelle ein neues Mograsimprojekt mit einer benutzerdefinierten Maschine
 Bundle-Vendor.0 = Mograsim Team
\ No newline at end of file
diff --git a/plugins/net.mograsim.plugin.core/OSGI-INF/l10n/bundle.properties b/plugins/net.mograsim.plugin.core/OSGI-INF/l10n/bundle.properties
index 3628250b..aa940d17 100644
--- a/plugins/net.mograsim.plugin.core/OSGI-INF/l10n/bundle.properties
+++ b/plugins/net.mograsim.plugin.core/OSGI-INF/l10n/bundle.properties
@@ -44,6 +44,8 @@ wizards.newWizards.mpm.name = Microprogram Memory
 wizards.newWizards.mpm.desc = Creates a default new Microprogram Memory
 wizards.newWizards.mem.name = Main Memory
 wizards.newWizards.mem.desc = Creates a default new Main Memory
+wizards.newWizards.mprom.name = Mapping PROM
+wizards.newWizards.mprom.desc = Creates a default new Mapping PROM
 wizards.newWizards.project.name = Mograsim Project
 wizards.newWizards.project.desc = Creates a new Mograsim Project using a machine selected by the user
 Bundle-Vendor.0 = Mograsim Team
\ No newline at end of file
diff --git a/plugins/net.mograsim.plugin.core/plugin.xml b/plugins/net.mograsim.plugin.core/plugin.xml
index 9e8b8cf7..2663a055 100644
--- a/plugins/net.mograsim.plugin.core/plugin.xml
+++ b/plugins/net.mograsim.plugin.core/plugin.xml
@@ -436,6 +436,15 @@
 			<description>%wizards.newWizards.mem.desc</description>
 	   		<selection class="org.eclipse.core.resources.IResource"/>
 		</wizard>
+		<wizard
+			id="net.mograsim.plugin.wizards.newWizards.NewWizardMPROM"
+	   		name="%wizards.newWizards.mprom.name"
+			class="net.mograsim.plugin.wizards.newWizards.NewWizardMPROM"
+			category="net.mograsim.plugin.wizards.newWizards.category"
+			icon="icons/mograsim/blue-orange/icon_blue-orange_16.png">
+			<description>%wizards.newWizards.mprom.desc</description>
+	   		<selection class="org.eclipse.core.resources.IResource"/>
+		</wizard>
   <wizard
         category="net.mograsim.plugin.wizards.newWizards.category"
         class="net.mograsim.plugin.wizards.newWizards.NewMograsimProject"
diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/wizards/newWizards/NewWizardMPROM.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/wizards/newWizards/NewWizardMPROM.java
new file mode 100644
index 00000000..8d108cbe
--- /dev/null
+++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/wizards/newWizards/NewWizardMPROM.java
@@ -0,0 +1,17 @@
+package net.mograsim.plugin.wizards.newWizards;
+
+public class NewWizardMPROM extends BasicNewWizard
+{
+	@Override
+	public boolean performFinish()
+	{
+		setFileExtension("mprom");
+		return super.performFinish();
+	}
+
+	@Override
+	public String getWindowTitle()
+	{
+		return "Create new Mapping PROM";
+	}
+}