Search in sources :

Example 1 with OrionCodeEditWidgetOverlay

use of org.eclipse.che.ide.editor.orion.client.jso.OrionCodeEditWidgetOverlay in project che by eclipse.

the class OrionCodeEditWidgetProvider method get.

@Override
public OrionCodeEditWidgetOverlay get() {
    if (orionCodeEditWidgetOverlay == null) {
        JsArrayString plugins = JavaScriptObject.createArray().cast();
        for (OrionPlugin orionPlugin : orionPlugins) {
            plugins.push(GWT.getModuleBaseURL() + orionPlugin.getRelPath());
        }
        OrionCodeEditWidgetOverlay codeEditWidgetModule = moduleHolder.getModule("CodeEditWidget").cast();
        orionCodeEditWidgetOverlay = codeEditWidgetModule.create(plugins);
    }
    return orionCodeEditWidgetOverlay;
}
Also used : JsArrayString(com.google.gwt.core.client.JsArrayString) OrionCodeEditWidgetOverlay(org.eclipse.che.ide.editor.orion.client.jso.OrionCodeEditWidgetOverlay)

Aggregations

JsArrayString (com.google.gwt.core.client.JsArrayString)1 OrionCodeEditWidgetOverlay (org.eclipse.che.ide.editor.orion.client.jso.OrionCodeEditWidgetOverlay)1