}
@Override
protected void editTemplates(final ResourceType type, final ViewPath viewPath) {
new PermissionsLoader().loadExplicitGlobalPermissions(new PermissionsLoadedListener() {
public void onPermissionsLoaded(Set<Permission> permissions) {
final Layout alertCanvas = getCanvas();
final TemplateAlertDefinitionsView defsView = new TemplateAlertDefinitionsView(type, permissions);
renderTemplateAlertView(alertCanvas, defsView, viewPath);