Fixed the MograsimBuilder a bit, but it will likely get removed
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / nature / AddMograsimNatureHandler.java
index 3941b1d..aa5d5d6 100644 (file)
@@ -23,7 +23,6 @@ public class AddMograsimNatureHandler extends AbstractHandler
        public Object execute(ExecutionEvent event) throws ExecutionException
        {
                ISelection selection = HandlerUtil.getCurrentSelection(event);
-               //
 
                MultiStatus ms = new MultiStatus("net.mograsim.plugin.core", 42, "MograsimNature Conversion", null);
 
@@ -44,7 +43,7 @@ public class AddMograsimNatureHandler extends AbstractHandler
                                {
                                        try
                                        {
-                                               ms.add(toggleNature(project));
+                                               ms.add(addNature(project));
                                        }
                                        catch (CoreException e)
                                        {
@@ -64,7 +63,7 @@ public class AddMograsimNatureHandler extends AbstractHandler
         * @param project to have Mograsim nature
         * @return
         */
-       private IStatus toggleNature(IProject project) throws CoreException
+       public static IStatus addNature(IProject project) throws CoreException
        {
                IProjectDescription description = project.getDescription();
                String[] natures = description.getNatureIds();