Search in sources :

Example 1 with ConsoleUtils

use of org.ovirt.engine.ui.uicommonweb.ConsoleUtils in project ovirt-engine by oVirt.

the class SpiceConsoleModel method initConsole.

/**
 * Performs initial configuration (different for WA/UP).
 */
public void initConsole() {
    ConsoleUtils consoleUtils = (ConsoleUtils) TypeResolver.getInstance().resolve(ConsoleUtils.class);
    setSpiceImpl((ConsoleClient) TypeResolver.getInstance().resolve(ISpiceNative.class));
    getConfigurator().configure(getSpiceImpl());
    if (getEntity() != null) {
        boolean isSpiceProxyDefined = consoleUtils.isSpiceProxyDefined(getEntity());
        getSpiceImpl().getOptions().setSpiceProxyEnabled(isSpiceProxyDefined);
    }
}
Also used : ConsoleUtils(org.ovirt.engine.ui.uicommonweb.ConsoleUtils)

Aggregations

ConsoleUtils (org.ovirt.engine.ui.uicommonweb.ConsoleUtils)1