From 07a6b9ff15d40ac08175bf0d60dad3e7bbe10ecb Mon Sep 17 00:00:00 2001 From: Christian Femers Date: Tue, 24 Sep 2019 05:12:39 +0200 Subject: [PATCH] Renamed method to its actual function --- .../net/mograsim/plugin/nature/AddMograsimNatureHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/AddMograsimNatureHandler.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/AddMograsimNatureHandler.java index f4d03577..aa5d5d61 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/AddMograsimNatureHandler.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/AddMograsimNatureHandler.java @@ -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(); -- 2.17.1