blob: a94334e61184769ebcf056e139702a9e8b29d542 [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.dropdown.demo.scripts;
import org.eclipse.rap.clientscripting.Script;
import org.eclipse.rap.rwt.SingletonUtil;
public class CustomDataBindingScript extends Script {
public static CustomDataBindingScript getInstance() {
return SingletonUtil.getSessionInstance( CustomDataBindingScript.class );
}
private CustomDataBindingScript() {
super( getText() );
}
private static String getText() {
String path = "org/eclipse/rap/addons/dropdown/demo/scripts/CustomDataBinding.js";
return ResourceLoaderUtil.readTextContent( path );
}
}