Package jarefi

Examples of jarefi.JarefiApp


        javaHomeTextField.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                String javaHome = e.getActionCommand();
                JarefiApp app = JarefiApp.getApplication();
                app.getResoureFinder().setJavaHome(javaHome);
                app.getUIHandlers().getClasspathTreeHandler().reload();
            }
        });

        /**
         * Initialize javaHome here
View Full Code Here


            }
        });
    }

    private void lookup() {
        JarefiApp app = JarefiApp.getApplication();
        String resourceName = app.getUIHandlers().getLookupTextFieldHandler().getLookupTextField().getText();
        app.lookup(resourceName);
    }
View Full Code Here

        treeModel.reload();
    }

    private void reloadJRENode(DefaultMutableTreeNode jreNode) {
        jreNode.removeAllChildren();
        JarefiApp app = JarefiApp.getApplication();
        List<URL> jreURLList = app.getResoureFinder().getJREURLList();

        for (URL url : jreURLList) {
            jreNode.add(new DefaultMutableTreeNode(url));
        }
    }
View Full Code Here

        }
    }

    private void reloadJDKNode(DefaultMutableTreeNode jdkNode) {
        jdkNode.removeAllChildren();
        JarefiApp app = JarefiApp.getApplication();
        List<URL> jdkURLList = app.getResoureFinder().getJDKURLList();

        if (jdkURLList != null) {
            for (URL url : jdkURLList) {
                jdkNode.add(new DefaultMutableTreeNode(url));
            }
View Full Code Here

            } catch (IOException ex) {
                log.log(Level.SEVERE, "Drop file failed.", ex);
                return false;
            }

            JarefiApp app = JarefiApp.getApplication();
            JTree classpathTree = app.getUIHandlers().getClasspathTreeHandler().getClasspathTree();
            List<URL> classpathList = app.getUIHandlers().getClasspathTreeHandler().getClasspathList();

            DefaultTreeModel model = (DefaultTreeModel) classpathTree.getModel();
            model.reload();
           
            DefaultMutableTreeNode parent = app.getUIHandlers().getClasspathTreeHandler().getMyNode();
            DefaultMutableTreeNode lastNode = parent;
            for (File f : fileList) {
                URL url;
                try {
                    url = f.toURI().toURL();
View Full Code Here

            TreePath currentSelection = classpathTree.getSelectionPath();
            if (currentSelection != null) {
                DefaultMutableTreeNode currentNode = (DefaultMutableTreeNode) (currentSelection.getLastPathComponent());
                MutableTreeNode parent = (MutableTreeNode) (currentNode.getParent());
               
                JarefiApp app = JarefiApp.getApplication();
                MutableTreeNode myNode = app.getUIHandlers().getClasspathTreeHandler().getMyNode();

                if (parent != null && parent.equals(myNode)) {
                    treeModel.removeNodeFromParent(currentNode);
                    URL url = (URL)currentNode.getUserObject();
                    app.getUIHandlers().getClasspathTreeHandler().getClasspathList().remove(url);
                    return;
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of jarefi.JarefiApp

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.