Examples of AliasManager


Examples of org.jnode.shell.alias.AliasManager

        if (initialized) {
            return;
        }
        InitialNaming.setNameSpace(new BasicNameSpace());
        InitialNaming.bind(DeviceManager.NAME, DeviceManager.INSTANCE);
        AliasManager alias_mgr =
            new DefaultAliasManager(new DummyExtensionPoint()).createAliasManager();
        InitialNaming.bind(AliasManager.NAME, alias_mgr);
        InitialNaming.bind(ShellManager.NAME, new DefaultShellManager());
        InitialNaming.bind(HelpFactory.NAME, new DefaultHelpFactory());
View Full Code Here

Examples of org.jnode.shell.alias.AliasManager

            ShellUtils.registerCommandInvoker(ThreadCommandInvoker.FACTORY);
            ShellUtils.registerCommandInvoker(ProcletCommandInvoker.FACTORY);
            ShellUtils.registerCommandInterpreter(DefaultInterpreter.FACTORY);
            ShellUtils.registerCommandInterpreter(RedirectingInterpreter.FACTORY);

            AliasManager am = this.getAliasManager();
            am.add("gc", "org.jnode.command.system.GcCommand");
            am.add("cpuid", "org.jnode.command.system.CpuIDCommand");
            am.add("set", "org.jnode.command.system.SetCommand");
            am.add("dir", "org.jnode.test.shell.MyDirCommand");
            am.add("duh", "org.jnode.test.shell.MyDuhCommand");
            am.add("cat", "org.jnode.test.shell.MyCatCommand");
            am.add("alias", "org.jnode.test.shell.MyAliasCommand");
            aliasCompletions = new String[]{"alias ", "cat ", "cpuid ", "dir ", "duh ", "gc ", "set "};

            SyntaxManager sm = this.getSyntaxManager();
            sm.add(new SyntaxBundle("set",
                new SequenceSyntax(new ArgumentSyntax("key"), new ArgumentSyntax("value"))));
View Full Code Here

Examples of org.jnode.shell.alias.AliasManager

            ShellUtils.registerCommandInvoker(ThreadCommandInvoker.FACTORY);
            ShellUtils.registerCommandInvoker(ProcletCommandInvoker.FACTORY);
            ShellUtils.registerCommandInterpreter(DefaultInterpreter.FACTORY);
            ShellUtils.registerCommandInterpreter(RedirectingInterpreter.FACTORY);

            AliasManager am = this.getAliasManager();
            am.add("gc", "org.jnode.command.system..GcCommand");
            am.add("cpuid", "org.jnode.command.system.CpuIDCommand");
            am.add("set", "org.jnode.command.system.SetCommand");
            am.add("duh", "org.jnode.test.shell.MyDuhCommand");
            am.add("alias", "org.jnode.test.shell.MyAliasCommand");
            am.add("compile", "org.jnode.test.shell.MyCompileCommand");
            aliasCompletions = new String[]{"alias ", "compile ", "cpuid ", "duh ", "gc ", "set "};
        }
View Full Code Here

Examples of org.neo4j.neoclipse.connection.AliasManager

    public void start( final BundleContext context ) throws Exception
    {
        super.start( context );
        PLUGIN = this;
        graphDbServiceManager = new GraphDbServiceManager();
        aliasManager = new AliasManager();
        aliasManager.loadAliases();
    }
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.