org.jboss.forge.addon.ui.util.Metadata.forCommand()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中org.jboss.forge.addon.ui.util.Metadata.forCommand()方法的一些代码示例,展示了Metadata.forCommand()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Metadata.forCommand()方法的具体详情如下:
包路径:org.jboss.forge.addon.ui.util.Metadata
类名称:Metadata
方法名:forCommand

Metadata.forCommand介绍

[英]Create a new UICommandMetadata for the given UICommand type.
[中]为给定的UICommand类型创建新的UICommandMetadata。

代码示例

代码示例来源:origin: errai/errai

@Override
public UICommandMetadata getMetadata(UIContext context) {
 return Metadata.forCommand(ModuleSelect.class)
     .name("Select a GWT Module")
     .description("Select the GWT Module which will inherit all Errai GWT dependencies for your application.");
}

代码示例来源:origin: errai/errai

@Override
public UICommandMetadata getMetadata(UIContext context) {
 return Metadata
     .forCommand(NewModuleName.class)
     .name("Enter the logical name for your new GWT module")
     .description(
         "A module's logical name looks like fully qualified Java class name (for example: org.jboss.errai.App)."
             + " The module's package will be the root package of your GWT/Errai application.");
}

代码示例来源:origin: errai/errai

@Override
public UICommandMetadata getMetadata(UIContext context) {
 return Metadata.forCommand(ModuleRename.class)
     .name("Rename Module")
     .description("You can give your module a more convenient name (such as app)."
         + " Otherwise, the logical name will be used to reference the module in urls in the host page.");
}

代码示例来源:origin: errai/errai

@Override
public UICommandMetadata getMetadata(UIContext context) {
 return Metadata.forCommand(VersionSelect.class)
     .name("Select a version of Errai")
     .description("Note that the configuration used by this plugin is only compatible with Errai 3+.");
}

代码示例来源:origin: org.jboss.forge.addon/parser-java-api

@Override
public UICommandMetadata getMetadata(UIContext context)
{
 return Metadata.forCommand(getClass()).name("Java Project Type Setup")
      .description("Information setup for the Java project type");
}

代码示例来源:origin: org.jboss.forge.addon/database-tools-impl

@Override
public UICommandMetadata getMetadata(UIContext context)
{
 return Metadata.forCommand(getClass()).name("Connection Profile Details")
      .description("Edit the connection profile details");
}

代码示例来源:origin: org.jboss.forge.addon/scaffold-faces

@Override
public UICommandMetadata getMetadata(UIContext context)
{
 return Metadata.forCommand(getClass()).name("Select JPA entities")
      .description("Select the JPA entities to be used for scaffolding.");
}

代码示例来源:origin: org.jboss.forge.addon/scaffold-impl

@Override
public UICommandMetadata getMetadata(UIContext context)
{
 return Metadata.forCommand(getClass()).name("Scaffold: Setup")
      .description("Setup the scaffold");
}

代码示例来源:origin: org.jboss.forge.addon/maven-impl-projects

@Override
public UICommandMetadata getMetadata(UIContext context)
{
 return Metadata.forCommand(getClass()).name("Maven: Choose Archetype")
      .description("Choose a Maven archetype for your project");
}

代码示例来源:origin: org.jboss.forge.addon/maven-impl-projects

@Override
public UICommandMetadata getMetadata(UIContext context)
{
 return Metadata.forCommand(getClass()).name("Maven: Choose Archetype")
      .description("Enter a Maven archetype coordinate");
}

代码示例来源:origin: io.fabric8.forge/funktion

@Override
public UICommandMetadata getMetadata(UIContext context) {
  return Metadata.forCommand(getClass()).name("Funktion: Choose Archetype")
      .description("Choose a Funktion archetype for your project");
}

代码示例来源:origin: org.jboss.forge.addon/database-tools-impl

@Override
public UICommandMetadata getMetadata(UIContext context)
{
 return Metadata.forCommand(getClass()).name("Database Table Selection")
      .description("Select the database tables for which you want to generate entities");
}

代码示例来源:origin: org.bsc/dynjs-addon

@Override
public UICommandMetadata getMetadata(UIContext context) {
  return Metadata.forCommand(Eval.class)
          .name("Eval")
          .category(CATEGORY)
          .description("Evaluate a script")
          ;
}

代码示例来源:origin: org.jboss.forge.addon/shell-impl

@Override
public UICommandMetadata getMetadata(UIContext context)
{
 return Metadata.forCommand(getClass())
         .name("command-list")
         .description("List all available commands.")
         .longDescription(CMD_LIST_HELP_DESCRIPTION);
}

代码示例来源:origin: org.bsc/dynjs-addon

@Override
public UICommandMetadata getMetadata(UIContext context) {
  return Metadata.forCommand(InstallJSModule.class)
      .name("InstallModule")
      .category(CATEGORY)
      .description("Install a new common/shared module")
      ;
}

代码示例来源:origin: org.bsc/dynjs-addon

@Override
public UICommandMetadata getMetadata(UIContext context) {
  return Metadata.forCommand(NewDynjsAddonCommand.class)
      .name("addon-new-dynjs-command")
      .category(CATEGORY)
      .description("Create a addon from a script");
}

代码示例来源:origin: org.bsc/dynjs-addon

@Override
public UICommandMetadata getMetadata(UIContext context) {
  return Metadata.forCommand(EvalInProject.class)
          .name("EvalInProject")
          .category(CATEGORY)
          .description("Evaluate a script in project's scope")
          ;
}

代码示例来源:origin: org.jboss.forge.addon/addons-impl

@Override
public UICommandMetadata getMetadata(UIContext context)
{
 return Metadata.forCommand(getClass()).name("Furnace Addon Setup")
      .description("Enable Furnace Addon development in your project.")
      .category(Categories.create("Project", "Furnace"));
}

代码示例来源:origin: org.jboss.forge.addon/addons-impl

@Override
public UICommandMetadata getMetadata(UIContext context)
{
 return Metadata.forCommand(getClass()).name("Addon: Test Setup")
      .description("Add addon test setup to this project")
      .category(Categories.create("Forge", "Generate"));
}

代码示例来源:origin: org.jboss.forge.addon/projects-impl

@Override
  public UICommandMetadata getMetadata(UIContext context)
  {
   return Metadata.forCommand(getClass()).name("Project: List Stacks")
        .category(Categories.create("Project", "Stack"))
        .description("Lists the stacks associated with the current project");
  }
}

相关文章