From b001e8c841df98df2ecda79ad2576759fbfb8803 Mon Sep 17 00:00:00 2001 From: Timotei Dolean Date: Thu, 8 Jul 2010 22:07:16 +0000 Subject: [PATCH] eclipse plugin: schema-based wizards - load schema at startup --- .../src/wesnoth_eclipse_plugin/Activator.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/Activator.java b/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/Activator.java index 37b6db84614..7ffb17b0ec7 100644 --- a/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/Activator.java +++ b/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/Activator.java @@ -12,6 +12,7 @@ import wesnoth_eclipse_plugin.preferences.PreferenceConstants; import wesnoth_eclipse_plugin.preferences.PreferenceInitializer; import wesnoth_eclipse_plugin.utils.GUIUtils; import wesnoth_eclipse_plugin.utils.WorkspaceUtils; +import wesnoth_eclipse_plugin.wizards.generator.SchemaParser; /** * The activator class controls the plug-in life cycle @@ -38,6 +39,7 @@ public class Activator extends AbstractUIPlugin plugin = this; checkConditions(); + SchemaParser.getInstance().parseSchema(false); } @Override @@ -49,7 +51,7 @@ public class Activator extends AbstractUIPlugin /** * Returns the shared instance - * + * * @return the shared instance */ public static Activator getDefault() @@ -60,7 +62,7 @@ public class Activator extends AbstractUIPlugin /** * Returns an image descriptor for the image file at the given plug-in * relative path - * + * * @param path the path * @return the image descriptor */ @@ -71,6 +73,7 @@ public class Activator extends AbstractUIPlugin /** * Returns the plugin's shell + * * @return */ public static Shell getShell() @@ -100,7 +103,7 @@ public class Activator extends AbstractUIPlugin { GUIUtils.showMessageBox(WorkspaceUtils.getWorkbenchWindow(), "Please setup the workspace before using the plugin. Go to \"Wesnoth\" menu," + - " and then click on the \"Setup Workspace\" entry following the instructions on the screen."); + " and then click on the \"Setup Workspace\" entry following the instructions on the screen."); } }