Package org.apache.geronimo.gshell.layout.model

Examples of org.apache.geronimo.gshell.layout.model.Layout


  private String shell = "";
 
    public void register(final Command command, Map<String, ?> properties) {
      String shellName = (String) properties.get("shell");
      if( shellName!=null ) {
          Layout layout = getLayoutForShell(shellName);
       
          String id = command.getId();
          String alias = (String) properties.get("alias");
          if( alias == null ) {
            alias = id;
            int p;
            if( (p=alias.lastIndexOf(":")) >= 0 ) {
              alias = alias.substring(p+1);
            }
            layout.add(new CommandNode(alias, id));       
          } else {
            String[] aliases = alias.split(",");
            for (String a : aliases) {
              a = a.trim();
          if( a.length()> 0 ) {
                layout.add(new CommandNode(a, id));       
          }
        }
          }
         
      }
View Full Code Here


    public Layout getLayout() {
    return getLayoutForShell(shell);
  }
 
  public Layout getLayoutForShell(String shellName) {
    Layout layout = layouts.get(shellName);
    if( layout == null ) {
      layout = new Layout();
      layouts.put(shellName, layout);
    }
    return layout;
  }
View Full Code Here

  private String shell = "";
 
    public void register(final Command command, Map<String, ?> properties) {
      String shellName = (String) properties.get("shell");
      if( shellName!=null ) {
          Layout layout = getLayoutForShell(shellName);
       
          String id = command.getId();
          String alias = (String) properties.get("alias");
          if( alias == null ) {
            alias = id;
            int p;
            if( (p=alias.lastIndexOf(":")) >= 0 ) {
              alias = alias.substring(p+1);
            }
            layout.add(new CommandNode(alias, id));       
          } else {
            String[] aliases = alias.split(",");
            for (String a : aliases) {
              a = a.trim();
          if( a.length()> 0 ) {
                layout.add(new CommandNode(a, id));       
          }
        }
          }
         
      }
View Full Code Here

  public Layout getLayout() {
    return getLayoutForShell(shell);
  }
 
  public Layout getLayoutForShell(String shellName) {
    Layout layout = layouts.get(shellName);
    if( layout == null ) {
      layout = new Layout();
      layouts.put(shellName, layout);
    }
    return layout;
  }
View Full Code Here

  private String shell = "";
 
    public void register(final Command command, Map<String, ?> properties) {
      String shellName = (String) properties.get("shell");
      if( shellName!=null ) {
          Layout layout = getLayoutForShell(shellName);
       
          String id = command.getId();
          String alias = (String) properties.get("alias");
          if( alias == null ) {
            alias = id;
            int p;
            if( (p=alias.lastIndexOf(":")) >= 0 ) {
              alias = alias.substring(p+1);
            }
            layout.add(new CommandNode(alias, id));       
          } else {
            String[] aliases = alias.split(",");
            for (String a : aliases) {
              a = a.trim();
          if( a.length()> 0 ) {
                layout.add(new CommandNode(a, id));       
          }
        }
          }
         
      }
View Full Code Here

    public Layout getLayout() {
    return getLayoutForShell(shell);
  }
 
  public Layout getLayoutForShell(String shellName) {
    Layout layout = layouts.get(shellName);
    if( layout == null ) {
      layout = new Layout();
      layouts.put(shellName, layout);
    }
    return layout;
  }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.gshell.layout.model.Layout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.