public Object execute(ExecutionEvent event) throws ExecutionException
{
ISelection selection = HandlerUtil.getCurrentSelection(event);
- //
MultiStatus ms = new MultiStatus("net.mograsim.plugin.core", 42, "MograsimNature Conversion", null);
{
try
{
- ms.add(toggleNature(project));
+ ms.add(addNature(project));
}
catch (CoreException e)
{
* @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();