9101112131415161718
public class FormatHandler extends AbstractHandler { @Override public Object execute(ExecutionEvent event) throws ExecutionException { FeatureEditor editor = (FeatureEditor) HandlerUtil.getActiveEditor(event); editor.format(); return null; }