Renamed method to its actual function
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / nature / AddMograsimNatureHandler.java
index f4d0357..aa5d5d6 100644 (file)
@@ -43,7 +43,7 @@ public class AddMograsimNatureHandler extends AbstractHandler
                                {
                                        try
                                        {
-                                               ms.add(toggleNature(project));
+                                               ms.add(addNature(project));
                                        }
                                        catch (CoreException e)
                                        {
@@ -63,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();