/*******************************************************************************
 * Copyright (c) 2014 Codenvy, S.A.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Codenvy, S.A. - initial API and implementation
 *******************************************************************************/
package com.codenvy.ide.editor.codemirror.client.jso.hints;

import com.codenvy.ide.editor.codemirror.client.jso.CMPositionOverlay;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArrayMixed;

public class CMHintResultsOverlay extends JavaScriptObject {

    protected CMHintResultsOverlay() {
    }

    public final native CMPositionOverlay getFrom() /*-{
        return this.from;
    }-*/;

    public final native CMPositionOverlay getTo() /*-{
        return this.to;
    }-*/;

    public final native JsArrayMixed getList() /*-{
        return this.list;
    }-*/;

    public final native boolean completionItemIsString(int i) /*-{
        return (this.list[i] instanceof String);
    }-*/;

    public final native String getCompletionItemAsString(int i) /*-{
        return this.list[i];
    }-*/;

    public final native CMCompletionOverlay getCompletionItemAsObject(int i) /*-{
        return this.list[i];
    }-*/;

}

@@ -973,146 +973,442 @@
 ive 
-CMPositionOverlay getTo() /*-%7B%0A        return this.to;%0A    %7D-*/;%0A%0A    public final native JsArrayMixed getList() /*-%7B%0A        return this.
+void setFrom(CMPositionOverlay from) /*-%7B%0A        this.from = from;%0A    %7D-*/;%0A%0A    public final native CMPositionOverlay getTo() /*-%7B%0A        return this.to;%0A    %7D-*/;%0A%0A    public final native void setTo(CMPositionOverlay to) /*-%7B%0A        this.to = to;%0A    %7D-*/;%0A%0A    public final native JsArrayMixed getList() /*-%7B%0A        return this.list;%0A    %7D-*/;%0A%0A    public final native void setList(JsArrayMixed list) /*-%7B%0A        this.list = 
 list

Add setters ont hint result overlay