Renamed method to its actual function
authorChristian Femers <femers@in.tum.de>
Tue, 24 Sep 2019 03:12:39 +0000 (05:12 +0200)
committerChristian Femers <femers@in.tum.de>
Tue, 24 Sep 2019 03:12:39 +0000 (05:12 +0200)
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();