Examples of ShellContext


Examples of org.apache.geronimo.gshell.shell.ShellContext

    public ShellContext getContext() {
        return delegate.getContext();
    }

    public Object execute(String s) throws Exception {
        ShellContext ctx = ShellContextHolder.get(true);
        try {
            ShellContextHolder.set(getContext());
            return delegate.execute(s);
        } finally {
            ShellContextHolder.set(ctx);
View Full Code Here

Examples of org.apache.geronimo.gshell.shell.ShellContext

            ShellContextHolder.set(ctx);
        }
    }

    public Object execute(String s, Object[] objects) throws Exception {
        ShellContext ctx = ShellContextHolder.get(true);
        try {
            ShellContextHolder.set(getContext());
            return delegate.execute(s, objects);
        } finally {
            ShellContextHolder.set(ctx);
View Full Code Here

Examples of org.apache.geronimo.gshell.shell.ShellContext

            ShellContextHolder.set(ctx);
        }
    }

    public Object execute(Object... objects) throws Exception {
        ShellContext ctx = ShellContextHolder.get(true);
        try {
            ShellContextHolder.set(getContext());
            return delegate.execute(objects);
        } finally {
            ShellContextHolder.set(ctx);
View Full Code Here

Examples of org.apache.geronimo.gshell.shell.ShellContext

    public boolean isInteractive() {
        return delegate.isInteractive();
    }

    public void run(Object... objects) throws Exception {
        ShellContext ctx = ShellContextHolder.get(true);
        try {
            ShellContextHolder.set(getContext());
            delegate.run(objects);
        } finally {
            ShellContextHolder.set(ctx);
View Full Code Here

Examples of org.apache.geronimo.gshell.shell.ShellContext

            }

            log.debug("Executing alias: {}", buff);

            final Shell shell = ShellContextHolder.get().getShell();
            ShellContext shellContext = new ShellContext() {
                public Shell getShell() {
                    return shell;
                }
                public IO getIo() {
                    return context.getIo();
View Full Code Here

Examples of org.apache.geronimo.gshell.shell.ShellContext

            }
        }
    }

    private void println(String st) {
        ShellContext ctx = ShellContextHolder.get(true);
        if (ctx != null) {
            ctx.getIo().out.println(st);
        } else {
            System.out.println(st);
        }
    }
View Full Code Here

Examples of org.jboss.forge.addon.shell.ui.ShellContext

            else
            {
               ShellMessages.success(shell.getConsole().getShell().out(), result.getMessage());
            }
         }
         ShellContext context = interaction.getContext();
         Object selection = context.getSelection();
         if (selection != null)
         {
            if (selection instanceof Iterable<?>)
            {
               for (FileResource<?> item : (Iterable<FileResource<?>>) selection)
View Full Code Here

Examples of org.jboss.forge.addon.shell.ui.ShellContext

   }

   @Override
   public ShellUIPromptImpl createPrompt(UIContext context)
   {
      ShellContext shellContext = (ShellContext) context;
      ConverterFactory converterFactory = addonRegistry.getServices(ConverterFactory.class).get();
      return new ShellUIPromptImpl(shellContext, converterFactory);
   }
View Full Code Here

Examples of org.jboss.forge.addon.shell.ui.ShellContext

            else
            {
               ShellMessages.success(shell.getConsole().out(), result.getMessage());
            }
         }
         ShellContext context = interaction.getContext();
         Object selection = context.getSelection();
         if (selection != null)
         {
            if (selection instanceof Iterable<?>)
            {
               for (FileResource<?> item : (Iterable<FileResource<?>>) selection)
View Full Code Here

Examples of org.jboss.forge.addon.shell.ui.ShellContext

   }

   @Override
   public ShellUIPromptImpl createPrompt(UIContext context)
   {
      ShellContext shellContext = (ShellContext) context;
      ConverterFactory converterFactory = addonRegistry.getServices(ConverterFactory.class).get();
      return new ShellUIPromptImpl(shellContext, converterFactory);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.