Binds the specified flavor to the specified class.

@param flavor
@param editorClass
328703
@Override
    public void bind(String flavor, Class<? extends ConsoleEditor> editorClass) {
        flavorMap.put(flavor, editorClass);
    }
482586
public void bind(Class<?> type, Class<? extends SARLSemanticModification> modification) {
		this.modificationTypes.put(type, modification);
	}
1004282
public void setBinding(String binding) 
        throws JspException {
        if (binding!= null && !UIComponentTag.isValueReference(binding)) {
            // PENDING i18n
            throw new JspException("Invalid Expression:"+binding);
        }
        this.binding = binding;
    }
764214
@Override
    public ConsoleEditor create(String flavor, Terminal terminal) throws EditorInitializationException {
        return create(flavor, terminal, System.in, System.out);
    }
420986
public final void addInjectionBinding(InjectionBinding<A> injectionBinding)
    {
        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
        if (isTraceOn && tc.isDebugEnabled())
            Tr.debug(tc, "addInjectionBinding: " + injectionBinding);

        // jndi name not found in collection, simple add
        ivAllAnnotationsCollection.put(injectionBinding.getJndiName(), injectionBinding);
    }
1011381
public void addCompEnvBindings(Map<String, InjectionBinding<?>> newBindings) {
        if (!compLock.writeLock().isHeldByCurrentThread()) {
            throw new IllegalStateException();
        }

        if (compEnvBindings == null) {
            compEnvBindings = new JavaColonNamespaceBindings<InjectionBinding<?>>(NamingConstants.JavaColonNamespace.COMP_ENV, InjectionBindingClassNameProvider.instance);
        }

        for (Map.Entry<String, InjectionBinding<?>> entry : newBindings.entrySet()) {
            compEnvBindings.bind(entry.getKey(), entry.getValue());
        }
    }
213253
def show_flavor(self, flavor, **_params):
        """"""
        return self.get(self.flavor_path % (flavor), params=_params)
1037595
private static IAnnotationBinding getAnnotationBinding(
            IAnnotationBinding[] annotations, Class<?> annotationClass) {
        if (annotationClass == null) {
            throw new NullPointerException();
        }
        return getAnnotationBinding(annotations, annotationClass.getCanonicalName());
    }
455982
def flavor_extra_set(request, flavor_id, metadata):
    """"""
    flavor = _nova.novaclient(request).flavors.get(flavor_id)
    if (not metadata):  # not a way to delete keys
        return None
    return flavor.set_keys(metadata)
440368
public <D extends Dialog> void setTypeface(D dialog, String typefaceName, int style) {
		DialogUtils.setTypeface(this, dialog, typefaceName, style);
	}
366022
function toggleEditorClass(editor, enabled) {
	const view = atom.views.getView(editor);
	if (view) {
		view.classList.toggle('has-emmet-abbreviation', enabled);
	}
}
610667
@CheckReturnValue
  public static Builder fromJndi(final Context context, final String lookupKey, Flavor flavor) {
    Options options = new OptionsDefault(flavor);

    return new BuilderImpl(null, () -> {
      DataSource ds;
      try {
        ds = (DataSource) context.lookup(lookupKey);
      } catch (Exception e) {
        throw new DatabaseException("Unable to locate the DataSource in JNDI using key " + lookupKey, e);
      }
      try {
        return ds.getConnection();
      } catch (Exception e) {
        throw new DatabaseException("Unable to obtain a connection from JNDI DataSource " + lookupKey, e);
      }
    }, options);
  }
747007
public boolean isDataFlavorSupported(DataFlavor flavor)
    {
         return java.util.Arrays.asList(_flavors).contains(flavor);
    }
85310
public void setEditorModeInSession(final EditorMode editorMode) {

        CmsRpcAction<Void> action = new CmsRpcAction<Void>() {

            @Override
            public void execute() {

                getService().setEditorMode(editorMode, this);
            }

            @Override
            protected void onResponse(Void result) {

                // nothing to do

            }
        };
        action.execute();
    }
609343
def add_tenant_to_flavor(request, flavor, tenant):
    """"""
    return _nova.novaclient(request).flavor_access.add_tenant_access(
        flavor=flavor, tenant=tenant)
556895
function(editor, openWindowFn) {
  this.editor = editor;
  this.openWindowFn = openWindowFn;
  this.supportedEditors = this._getSupportedEditors();
  if (this.editor && !this._isSupportedEditor(this.editor)) {
    throw new Error(this.editor+' was not found in list of supported editors. Please check your global settings to ensure the self.editor path for '+this.editor+' is configured correctly.');
  }
}
141622
public static void setClassFinder(ClassFinder classFinder)
    {
        ClassFinderActivator.classFinder = classFinder;
        ClassServiceUtility classService = (ClassServiceUtility)ClassServiceUtility.getClassService();
        classService.setClassFinder(classFinder);
    }