Java源码示例:org.jboss.forge.addon.ui.util.Metadata
示例1
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": New Integration Test Build")
.description("Create a new integration test build configuration");
}
示例2
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(getClass())
.category(Categories.create(AbstractDevOpsCommand.CATEGORY))
.name(AbstractDevOpsCommand.CATEGORY + ": Edit")
.description("Edit the DevOps configuration for this project");
}
示例3
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": New Integration Test Class")
.description("Create a new integration test class and adds any extra required dependencies to the pom.xml");
}
示例4
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(getClass())
.category(Categories.create(AbstractDevOpsCommand.CATEGORY))
.name(AbstractDevOpsCommand.CATEGORY + ": Pipeline")
.description("Configures the pipeline for this project");
}
示例5
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(getClass())
.category(Categories.create(AbstractDevOpsCommand.CATEGORY))
.name(AbstractDevOpsCommand.CATEGORY + ": Configure Optional")
.description("Configure the Project options for the new project");
}
示例6
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(getClass())
.category(Categories.create(AbstractDevOpsCommand.CATEGORY))
.name(AbstractDevOpsCommand.CATEGORY + ": Configure Pipeline")
.description("Configure the Pipeline for the new project");
}
示例7
@Override
public UICommandMetadata getMetadata(UIContext context)
{
return Metadata.from(super.getMetadata(context), getClass()).name("Thorntail: Run")
.description("Run the project using the 'thorntail:run' maven plugin")
.category(Categories.create("Thorntail"));
}
示例8
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": New Build")
.description("Create a new build configuration");
}
示例9
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": Service List")
.description("Lists the services in a kubernetes cloud");
}
示例10
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": Pod Delete")
.description("Deletes the given pod from the kubernetes cloud");
}
示例11
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": Service Delete")
.description("Deletes the given service from the kubernetes cloud");
}
示例12
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": Pod List")
.description("Lists the pods in a kubernetes cloud");
}
示例13
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": Replication Controller List")
.description("Lists the replication controllers in a kubernetes cloud");
}
示例14
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": Namespace Get")
.description("Displays the current namespace");
}
示例15
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": Apply")
.description("Applies the given JSON configuration to kubernetes to create pods, replication controllers or services");
}
示例16
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": Replication Controller Delete")
.description("Deletes the given replication controller from the kubernetes cloud");
}
示例17
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.from(super.getMetadata(context), getClass())
.category(Categories.create(CATEGORY))
.name(CATEGORY + ": Pod Info")
.description("Shows detailed information for the given pod in the kubernetes cloud");
}
示例18
@Override
public UICommandMetadata getMetadata(UIContext context)
{
return Metadata.from(super.getMetadata(context), getClass()).name("Thorntail: Detect Fractions")
.description("Detect the needed fractions for the current project")
.category(Categories.create("Thorntail"));
}
示例19
@Override
public UICommandMetadata getMetadata(UIContext context)
{
return Metadata
.forCommand(getClass())
.name("Introspector: Scan classes")
.description("Find/filter available classes in the project")
.category(Categories.create("Introspector"));
}
示例20
@Override
public UICommandMetadata getMetadata(UIContext context)
{
return Metadata
.forCommand(getClass())
.name("Introspector: Get properties")
.description("Get the properties of a Java object")
.category(Categories.create("Introspector"));
}
示例21
@Override
public NavigationResult next(UINavigationContext context) throws Exception
{
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(Metadata.forCommand(SetupCommand.class).name("Thorntail: Setup")
.description("Setup Thorntail in your web application"),
Arrays.asList(SetupCommand.class, AddFractionCommand.class));
builder.add(SetupFractionsStep.class);
return builder.build();
}
示例22
@Override
public UICommandMetadata getMetadata(UIContext context)
{
return Metadata.from(super.getMetadata(context), getClass()).name("Thorntail: Setup")
.description("Setup Thorntail in your web application")
.category(Categories.create("Thorntail"));
}
示例23
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(GetOverviewCommand.class).name(
"Funktion: Get Overview").category(Categories.create(CATEGORY))
.description("Gets the overview of the funktion project");
}
示例24
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(getClass()).name("Funktion: Choose Archetype")
.description("Choose a Funktion archetype for your project");
}
示例25
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(Fabric8SetupStep.class).name(
"Fabric8: Setup").category(Categories.create(CATEGORY))
.description("Configure the Fabric8 options for the project");
}
示例26
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(Fabric8SetupCommand.class).name(
"Fabric8: Setup").category(Categories.create(CATEGORY))
.description("Setup Fabric8 and Docker in your project");
}
示例27
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(GetOverviewCommand.class).name(
"DevOps: Get Overview").category(Categories.create(CATEGORY))
.description("Gets the overview of the builders and perspectives for this project");
}
示例28
@Override
public UICommandMetadata getMetadata(UIContext context)
{
return Metadata.from(super.getMetadata(context), getClass()).name("Thorntail: Add Fraction")
.description("Add one or more fractions. Installed fractions have been filtered out.");
}
示例29
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(CamelGetComponentsCommand.class).name(
"Camel: Get Components").category(Categories.create(CATEGORY))
.description("Gets the components available in the camel catalog and/or in the current project");
}
示例30
@Override
public UICommandMetadata getMetadata(UIContext context) {
return Metadata.forCommand(ConfigureComponentPropertiesStep.class).name(
"Camel: Component options").category(Categories.create(CATEGORY))
.description(String.format("Configure %s options (%s of %s)", group, index, total));
}