org.jboss.forge.addon.ui.util.Metadata Java Examples

The following examples show how to use org.jboss.forge.addon.ui.util.Metadata. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SetupCommand.java    From thorntail-addon with Eclipse Public License 1.0 5 votes vote down vote up
@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"));
}
 
Example #2
Source File: DetectFractionsCommand.java    From thorntail-addon with Eclipse Public License 1.0 5 votes vote down vote up
@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"));
}
 
Example #3
Source File: PodInfo.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #4
Source File: ReplicationControllerDelete.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #5
Source File: Apply.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #6
Source File: NamespaceGet.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #7
Source File: ReplicationControllersList.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #8
Source File: PodsList.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #9
Source File: ServiceDelete.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #10
Source File: PodDelete.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #11
Source File: ServicesList.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #12
Source File: NewBuildCommand.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #13
Source File: DevOpsEditStep.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #14
Source File: NewIntegrationTestBuildCommand.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #15
Source File: DevOpsEditCommand.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #16
Source File: NewIntegrationTestClassCommand.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #17
Source File: ThorntailSetupFlow.java    From thorntail-addon with Eclipse Public License 1.0 5 votes vote down vote up
@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();
}
 
Example #18
Source File: GetPropertiesCommand.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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"));
}
 
Example #19
Source File: DevOpsPipelineCommand.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #20
Source File: ScanClassesCommand.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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"));
}
 
Example #21
Source File: DevOpsEditOptionalStep.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
@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");
}
 
Example #22
Source File: RunCommand.java    From thorntail-addon with Eclipse Public License 1.0 5 votes vote down vote up
@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"));
}
 
Example #23
Source File: RouteResetStatsCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
public UICommandMetadata getMetadata(UIContext context) {
    return Metadata.forCommand(ConnectCommand.class).name(
            "camel-route-reset-stats").category(Categories.create(CATEGORY))
            .description("Reset route performance stats from a CamelContext");
}
 
Example #24
Source File: EndpointListCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
public UICommandMetadata getMetadata(UIContext context) {
    return Metadata.forCommand(ConnectCommand.class).name(
            "camel-endpoint-list").category(Categories.create(CATEGORY))
            .description("List all endpoints available in a CamelContext");
}
 
Example #25
Source File: ComponentListCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
public UICommandMetadata getMetadata(UIContext context) {
    return Metadata.forCommand(ConnectCommand.class).name(
            "camel-component-list").category(Categories.create(CATEGORY))
            .description("Lists all Camel components that are used by a Camel context");
}
 
Example #26
Source File: EndpointExplainCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
public UICommandMetadata getMetadata(UIContext context) {
    return Metadata.forCommand(ConnectCommand.class).name(
            "camel-endpoint-explain").category(Categories.create(CATEGORY))
            .description("Explain all endpoints available in a CamelContext");
}
 
Example #27
Source File: ConnectCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
public UICommandMetadata getMetadata(UIContext context) {
    return Metadata.forCommand(ConnectCommand.class).name(
            "camel-connect").category(Categories.create(CATEGORY))
            .description("Connects to a Jolokia agent");
}
 
Example #28
Source File: RouteListCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
public UICommandMetadata getMetadata(UIContext context) {
    return Metadata.forCommand(ConnectCommand.class).name(
            "camel-route-list").category(Categories.create(CATEGORY))
            .description("List Camel routes");
}
 
Example #29
Source File: RouteInfoCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
public UICommandMetadata getMetadata(UIContext context) {
    return Metadata.forCommand(ConnectCommand.class).name(
            "camel-route-info").category(Categories.create(CATEGORY))
            .description("Display information about a Camel route.");
}
 
Example #30
Source File: RouteStartCommand.java    From fabric8-forge with Apache License 2.0 4 votes vote down vote up
@Override
public UICommandMetadata getMetadata(UIContext context) {
    return Metadata.forCommand(ConnectCommand.class).name(
            "camel-route-start").category(Categories.create(CATEGORY))
            .description("Start a Camel route");
}