Package org.netbeans.modules.languages.pl_sql.editor.oracletree

Examples of org.netbeans.modules.languages.pl_sql.editor.oracletree.OConnectionClass


        //ArrayList<OConnectionClass> res = new ArrayList<OConnectionClass>();
        if (OConnectionClass.pref_root != null) {
            try {
                for (String c : OConnectionClass.pref_root.childrenNames()) {
                    Preferences pref = OConnectionClass.pref_root.node(c);
                    OConnectionClass ocl = new OConnectionClass(c, pref.get("ServerName", ""), pref.getInt("Port", 1521), pref.get("DatabaseName", ""), pref.get("ConnectionType", "SID"));
                    ocl.Refresh();
                    Connections.add(ocl);
                }
            } catch (BackingStoreException ex) {
                Exceptions.printStackTrace(ex);
            }
View Full Code Here


    }

    @Override
    public Node[] createNodesForKey(OConnectionNode key) {
        //AbstractNode nd = new AbstractNode(Children.LEAF);
        OConnectionClass ocs = key.getOConnectionClass();
        TreeSet<OUser> tou = ocs.getUsers();
        ArrayList<OUserNode> al = new ArrayList<OUserNode>();
        for (OUser ou : tou) {
            OUserNode oun = new OUserNode(ou);
            al.add(oun);
        }
View Full Code Here

    @Override
    protected Sheet createSheet() {

        Sheet sheet = Sheet.createDefault();
        Sheet.Set set = Sheet.createPropertiesSet();
        OConnectionClass obj = getOConnectionClass();

        try {
            Property ServerNameProp = new PropertySupport.Reflection<String>(obj, String.class, "getServerName", null);
            ServerNameProp.setName(Utils.getBundle().getString("LBL_ServerName"));
            set.put(ServerNameProp);
View Full Code Here

TOP

Related Classes of org.netbeans.modules.languages.pl_sql.editor.oracletree.OConnectionClass

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.