public abstract class AbstractBaseDynjsUICommand extends org.jboss.forge.addon.projects.ui.AbstractProjectCommand implements AddonConstants
Modifier and Type | Field and Description |
---|---|
protected org.jboss.forge.addon.dependencies.DependencyResolver |
dependencyResolver |
CATEGORY, DEBUG
Constructor and Description |
---|
AbstractBaseDynjsUICommand() |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
copyFileToAssetDir(File resource,
Manifest mf,
boolean overwrite,
Functional.Fn<Void,T> onSuccess,
Functional.Fn<Exception,T> onError) |
protected void |
copyResourceToAssetDir(String resourceName,
Manifest mf) |
protected <T extends org.jboss.forge.addon.ui.context.UIContextProvider> |
executeFromClasspath(T ctx,
String resourceName,
org.dynjs.runtime.GlobalObjectFactory factory,
Manifest mf) |
protected <T extends org.jboss.forge.addon.ui.context.UIContextProvider> |
executeFromFile(T ctx,
org.jboss.forge.addon.resource.FileResource<?> js,
org.dynjs.runtime.GlobalObjectFactory factory,
Manifest mf) |
protected File |
getAssetDir(Manifest mf) |
static <C extends org.jboss.forge.addon.ui.context.UIContextProvider,T> |
getAttribute(C ctx,
String name) |
javax.enterprise.inject.spi.BeanManager |
getBeanManager() |
org.jboss.forge.addon.ui.input.InputComponentFactory |
getComponentFactory() |
org.jboss.forge.furnace.manager.maven.MavenContainer |
getContainer() |
org.jboss.forge.addon.dependencies.DependencyResolver |
getDependencyResolver() |
org.jboss.forge.addon.environment.Environment |
getEnvironment() |
protected Manifest |
getManifest() |
static <T extends org.jboss.forge.addon.ui.context.UIContextProvider> |
getOut(T context) |
protected String |
getVersion(Manifest mf) |
protected <T extends org.jboss.forge.addon.ui.context.UIContextProvider> |
newDynJS(T ctx,
org.dynjs.runtime.GlobalObjectFactory factory) |
static <C extends org.jboss.forge.addon.ui.context.UIContextProvider,T> |
putAttribute(C ctx,
String name,
T value) |
protected <T extends org.jboss.forge.addon.ui.context.UIContextProvider> |
runnerFromClasspath(T ctx,
String resourceName,
org.dynjs.runtime.GlobalObjectFactory factory,
Manifest mf) |
protected org.dynjs.runtime.Runner |
runnerFromFile(org.dynjs.runtime.DynJS dynjs,
org.jboss.forge.addon.resource.FileResource<?> js,
Manifest mf) |
containsProject, getProjectFactory, getSelectedProject, getSelectedProject, isEnabled, isProjectRequired
getMetadata, validate
@Inject protected org.jboss.forge.addon.dependencies.DependencyResolver dependencyResolver
public org.jboss.forge.furnace.manager.maven.MavenContainer getContainer()
public org.jboss.forge.addon.environment.Environment getEnvironment()
public org.jboss.forge.addon.dependencies.DependencyResolver getDependencyResolver()
public final org.jboss.forge.addon.ui.input.InputComponentFactory getComponentFactory()
public final javax.enterprise.inject.spi.BeanManager getBeanManager()
public static <T extends org.jboss.forge.addon.ui.context.UIContextProvider> org.jboss.forge.addon.ui.output.UIOutput getOut(T context)
context
- public static <C extends org.jboss.forge.addon.ui.context.UIContextProvider,T> T getAttribute(C ctx, String name)
public static <C extends org.jboss.forge.addon.ui.context.UIContextProvider,T> T putAttribute(C ctx, String name, T value)
protected Manifest getManifest() throws IOException
IOException
http://stackoverflow.com/questions/1272648/reading-my-own-jars-manifest
protected String getVersion(Manifest mf) throws IOException
mf
- IOException
protected final File getAssetDir(Manifest mf) throws IOException
IOException
protected final void copyResourceToAssetDir(String resourceName, Manifest mf) throws IOException
w
- IOException
protected final <T> T copyFileToAssetDir(File resource, Manifest mf, boolean overwrite, Functional.Fn<Void,T> onSuccess, Functional.Fn<Exception,T> onError)
w
- IOException
protected <T extends org.jboss.forge.addon.ui.context.UIContextProvider> org.dynjs.runtime.Runner runnerFromClasspath(T ctx, String resourceName, org.dynjs.runtime.GlobalObjectFactory factory, Manifest mf) throws Exception
Exception
protected <T extends org.jboss.forge.addon.ui.context.UIContextProvider> org.dynjs.runtime.DynJS newDynJS(T ctx, org.dynjs.runtime.GlobalObjectFactory factory)
ctx
- factory
- protected org.dynjs.runtime.Runner runnerFromFile(org.dynjs.runtime.DynJS dynjs, org.jboss.forge.addon.resource.FileResource<?> js, Manifest mf) throws Exception
ctx
- js
- factory
- mf
- Exception
protected <T extends org.jboss.forge.addon.ui.context.UIContextProvider> Object executeFromClasspath(T ctx, String resourceName, org.dynjs.runtime.GlobalObjectFactory factory, Manifest mf) throws Exception
js
- Exception
Copyright © 2008–2014 Sonatype, Inc.. All rights reserved.