Package org.jledit

Examples of org.jledit.ConsoleEditor


                file.getParentFile().mkdirs();
            }
        }

        // call the editor
        ConsoleEditor editor = editorFactory.create(getTerminal());
        editor.setTitle("Karaf");
        editor.open(file.getAbsolutePath(), url);
        editor.setOpenEnabled(false);
        editor.start();

        // if resource is not local, copy the resource back
        if (!isLocal) {
            FileInputStream fis = new FileInputStream(path);
            try {
View Full Code Here


                file.getParentFile().mkdirs();
            }
        }

        // call the editor
        ConsoleEditor editor = editorFactory.create(getTerminal());
        editor.setTitle("Karaf");
        editor.open(file.getAbsolutePath(), url);
        editor.setOpenEnabled(false);
        editor.start();

        // if resource is not local, copy the resource back
        if (!isLocal) {
            FileInputStream fis = new FileInputStream(path);
            try {
View Full Code Here

                    file.getParentFile().mkdirs();
                }
            }

            //Call the editor
            ConsoleEditor editor = editorFactory.create(getTerminal());
            editor.setTitle("Karaf");
            editor.open(file, url);
            editor.setOpenEnabled(false);
            editor.start();

            //If resource is not local, copy the resource back.
            if (!isLocal) {
                FileInputStream fis = new FileInputStream(path);
                try {
View Full Code Here

    private void openInEditor(Profile profile, String resource) throws Exception {
        String id = profile.getId();
        String version = profile.getVersion();
        String location = id + " " + version + " " + resource;
        //Call the editor
        ConsoleEditor editor = editorFactory.create("simple",getTerminal(), System.in, System.out);
        editor.setTitle("Profile");
        editor.setOpenEnabled(false);
        editor.setContentManager(new DatastoreContentManager(fabricService));
        editor.open(location, id + " " + version);
        editor.start();
    }
View Full Code Here

    protected void doExecute(CuratorFramework curator) throws Exception {
        if (exists(curator, path) == null) {
            curator.create().creatingParentsIfNeeded().withACL(ZooDefs.Ids.OPEN_ACL_UNSAFE).forPath(path);
        }
        //Call the editor
        ConsoleEditor editor = editorFactory.create("simple",getTerminal(), System.in, System.out);
        editor.setTitle("Znode");
        editor.setContentManager(new ZookeeperContentManager(curator));
        editor.open(path);
        editor.setOpenEnabled(false);
        editor.start();
    }
View Full Code Here

                file.getParentFile().mkdirs();
            }
        }

        // call the editor
        ConsoleEditor editor = editorFactory.create(getTerminal());
        editor.setTitle("Karaf");
        editor.open(file.getAbsolutePath(), url);
        editor.setOpenEnabled(false);
        editor.start();

        // if resource is not local, copy the resource back
        if (!isLocal) {
            FileInputStream fis = new FileInputStream(path);
            try {
View Full Code Here

TOP

Related Classes of org.jledit.ConsoleEditor

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.