diff options
Diffstat (limited to 'bundles/org.eclipse.e4.tools.orion.editor/src/org/eclipse/e4/tools/orion/editor/builder/js/JSBuilder.java')
-rw-r--r-- | bundles/org.eclipse.e4.tools.orion.editor/src/org/eclipse/e4/tools/orion/editor/builder/js/JSBuilder.java | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.tools.orion.editor/src/org/eclipse/e4/tools/orion/editor/builder/js/JSBuilder.java b/bundles/org.eclipse.e4.tools.orion.editor/src/org/eclipse/e4/tools/orion/editor/builder/js/JSBuilder.java new file mode 100644 index 00000000..04c495c3 --- /dev/null +++ b/bundles/org.eclipse.e4.tools.orion.editor/src/org/eclipse/e4/tools/orion/editor/builder/js/JSBuilder.java @@ -0,0 +1,55 @@ +/******************************************************************************* + * Copyright (c) 2013 Angelo Zerr 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: + * Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation + *******************************************************************************/ +package org.eclipse.e4.tools.orion.editor.builder.js; + +import java.io.File; +import java.io.IOException; + +import org.eclipse.e4.tools.orion.editor.builder.AbstractHTMLBuilder; +import org.eclipse.e4.tools.orion.editor.builder.IHTMLBuilder; + +/** + * {@link IHTMLBuilder} to build the Orion HTML editor for JS mode. + * + */ +public class JSBuilder extends AbstractHTMLBuilder { + + /** + * Constructor with {@link JSOptions}. + * + * @param options + * the JS options. + */ + public JSBuilder(JSOptions options) { + super(options); + } + + /** + * Constructor with file base dir. + * + * @param baseDir + * base directory of the CSS and JS. + */ + public JSBuilder(File baseDir) { + this(new JSOptions(baseDir)); + } + + /** + * Constructor to use only on OSGi context. + * + * @throws IOException + * + */ + public JSBuilder() throws IOException { + this(new JSOptions()); + } + +} |