public class ToggleOCLNatureCommand extends AbstractHandler implements ToggleNatureCommand
Constructor and Description |
---|
ToggleOCLNatureCommand() |
Modifier and Type | Method and Description |
---|---|
Object |
execute(ExecutionEvent event) |
String |
getAddNatureDialogText(String projectName) |
String |
getAddNatureDialogTitle() |
String |
getAddNatureKey() |
boolean |
hasNature(IProject project) |
void |
toggleNature(IProject project) |
public Object execute(ExecutionEvent event) throws ExecutionException
ExecutionException
public String getAddNatureDialogText(String projectName)
getAddNatureDialogText
in interface ToggleNatureCommand
public String getAddNatureDialogTitle()
getAddNatureDialogTitle
in interface ToggleNatureCommand
public String getAddNatureKey()
getAddNatureKey
in interface ToggleNatureCommand
public boolean hasNature(IProject project)
hasNature
in interface ToggleNatureCommand
public void toggleNature(IProject project)
toggleNature
in interface ToggleNatureCommand
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.