blob: ed6b64a824702c483f3b87e798b68f07f5a78795 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 EclipseSource and others.
* 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:
* EclipseSource - initial API and implementation
******************************************************************************/
package org.eclipse.rap.addons.autosuggest.internal.resources;
import org.eclipse.rap.rwt.SingletonUtil;
import org.eclipse.rap.rwt.scripting.ClientListener;
public class AutoSuggestListener extends ClientListener {
public static AutoSuggestListener getInstance() {
return SingletonUtil.getSessionInstance( AutoSuggestListener.class );
}
private AutoSuggestListener() {
super( getText() );
}
private static String getText() {
String path = "org/eclipse/rap/addons/autosuggest/internal/resources/AutoSuggest.js";
return ResourceLoaderUtil.readTextContent( path );
}
}