本文整理汇总了Java中org.jboss.forge.addon.ui.UIProvider类的典型用法代码示例。如果您正苦于以下问题:Java UIProvider类的具体用法?Java UIProvider怎么用?Java UIProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UIProvider类属于org.jboss.forge.addon.ui包,在下文中一共展示了UIProvider类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import org.jboss.forge.addon.ui.UIProvider; //导入依赖的package包/类
@Override
public Result execute(UIExecutionContext executionContext) throws Exception
{
UIProvider provider = executionContext.getUIContext().getProvider();
UIOutput output = provider.getOutput();
PrintStream out = output.out();
for (FractionDescriptor fraction : WildFlySwarmFacet.getAllFractionDescriptors())
{
if (!fraction.isInternal())
{
String msg = String.format("%s: %s (%s)", fraction.getArtifactId(), fraction.getName(),
fraction.getDescription());
out.println(msg);
}
}
return Results.success();
}
示例2: execute
import org.jboss.forge.addon.ui.UIProvider; //导入依赖的package包/类
@Override
public Result execute(UIExecutionContext executionContext) throws Exception {
UIProvider provider = executionContext.getUIContext().getProvider();
UIOutput output = provider.getOutput();
PrintStream out = output.out();
for (VertxDependency dep : VertxMavenFacet.getAllDependencies()) {
String msg = String.format("%s: %s (%s)", dep.getArtifactId(), dep.getName(), dep.getDescription());
out.println(msg);
}
return Results.success();
}
示例3: UIContextImpl
import org.jboss.forge.addon.ui.UIProvider; //导入依赖的package包/类
UIContextImpl(Project project, UISelection<?> initialSelection, UIProvider provider)
{
this.project = project;
this.initialSelection = initialSelection;
this.provider = provider;
initialize();
}
示例4: getOutput
import org.jboss.forge.addon.ui.UIProvider; //导入依赖的package包/类
public UIOutput getOutput() {
UIProvider provider = getUiProvider();
return provider != null ? provider.getOutput() : null;
}
示例5: getUiProvider
import org.jboss.forge.addon.ui.UIProvider; //导入依赖的package包/类
public UIProvider getUiProvider() {
return uiProvider;
}
示例6: setUiProvider
import org.jboss.forge.addon.ui.UIProvider; //导入依赖的package包/类
public void setUiProvider(UIProvider uiProvider) {
this.uiProvider = uiProvider;
}
示例7: setUiProvider
import org.jboss.forge.addon.ui.UIProvider; //导入依赖的package包/类
public void setUiProvider(UIProvider uiProvider) {
this.uiProvider = uiProvider;
}
示例8: isEnabled
import org.jboss.forge.addon.ui.UIProvider; //导入依赖的package包/类
@Override
public boolean isEnabled(UIContext context)
{
UIProvider provider = context.getProvider();
return super.isEnabled(context) && !provider.isGUI() && !provider.isEmbedded();
}
示例9: create
import org.jboss.forge.addon.ui.UIProvider; //导入依赖的package包/类
public static UIContext create(Project project, Editor editor, VirtualFile[] files)
{
UIProvider provider = new UIProviderImpl();
UISelection<?> initialSelection = getSelection(editor, files);
return new UIContextImpl(project, initialSelection, provider);
}
示例10: getProvider
import org.jboss.forge.addon.ui.UIProvider; //导入依赖的package包/类
@Override
public UIProvider getProvider()
{
return provider;
}
示例11: getProvider
import org.jboss.forge.addon.ui.UIProvider; //导入依赖的package包/类
@Override
public UIProvider getProvider()
{
return IDEUIProvider.INSTANCE;
}