Package org.netbeans.api.debugger

Examples of org.netbeans.api.debugger.Properties


            cp2.removePropertyChangeListener (l);
        }
    }
   
    private void initSourcePaths () {
        Properties properties = Properties.getDefault ().
            getProperties ("debugger").getProperties ("sources");
        Set originalSourceRoots = new HashSet (Arrays.asList (
            sourcePathProvider.getOriginalSourceRoots ()
        ));
        Set sourceRoots = new HashSet (Arrays.asList (
            sourcePathProvider.getSourceRoots ()
        ));

        Iterator enabledSourceRoots = properties.getProperties ("source_roots").
            getCollection ("enabled", Collections.EMPTY_SET).iterator ();
        while (enabledSourceRoots.hasNext ()) {
            String root = (String) enabledSourceRoots.next ();
            if (originalSourceRoots.contains (root))
                sourceRoots.add (root);
        }
        Iterator disabledSourceRoots = properties.getProperties ("source_roots").
            getCollection ("disabled", Collections.EMPTY_SET).iterator ();
        while (disabledSourceRoots.hasNext ()) {
            String root = (String) disabledSourceRoots.next ();
            sourceRoots.remove (root);
        }
View Full Code Here


            cp2.removePropertyChangeListener(l);
        }
    }

    private void initSourcePaths() {
        Properties properties = Properties.getDefault().
                getProperties("debugger").getProperties("sources");
        Set originalSourceRoots = new HashSet(Arrays.asList(
                sourcePathProvider.getOriginalSourceRoots()));
        Set sourceRoots = new HashSet(Arrays.asList(
                sourcePathProvider.getSourceRoots()));

        Iterator enabledSourceRoots = properties.getProperties("source_roots").
                getCollection("enabled", Collections.EMPTY_SET).iterator();
        while (enabledSourceRoots.hasNext()) {
            String root = (String) enabledSourceRoots.next();
            if (originalSourceRoots.contains(root)) {
                sourceRoots.add(root);
            }
        }
        Iterator disabledSourceRoots = properties.getProperties("source_roots").
                getCollection("disabled", Collections.EMPTY_SET).iterator();
        while (disabledSourceRoots.hasNext()) {
            String root = (String) disabledSourceRoots.next();
            sourceRoots.remove(root);
        }
View Full Code Here

    private static final String CLOJURE_PROPERTY = "clj";

    public Breakpoint[] initBreakpoints () {
        try {

            Properties p = Properties.getDefault ().getProperties ("debugger").
                getProperties (DebuggerManager.PROP_BREAKPOINTS);
            Breakpoint[] breakpoints = (Breakpoint[]) p.getArray (
                CLOJURE_PROPERTY,
                new Breakpoint [0]
            );
            for (int i = 0; i < breakpoints.length; i++) {
                breakpoints[i].addPropertyChangeListener(this);
View Full Code Here

        };
    }
   
    public void breakpointAdded (Breakpoint breakpoint) {
        if (breakpoint instanceof ClojureLineBreakpoint) {
            Properties p = Properties.getDefault ().getProperties ("debugger").
                getProperties (DebuggerManager.PROP_BREAKPOINTS);
            p.setArray (
                CLOJURE_PROPERTY,
                getBreakpoints ()
            );
            breakpoint.addPropertyChangeListener(this);
        }
View Full Code Here

        }
    }

    public void breakpointRemoved (Breakpoint breakpoint) {
        if (breakpoint instanceof ClojureLineBreakpoint) {
            Properties p = Properties.getDefault ().getProperties ("debugger").
                getProperties (DebuggerManager.PROP_BREAKPOINTS);
            p.setArray (
                CLOJURE_PROPERTY,
                getBreakpoints ()
            );
            breakpoint.removePropertyChangeListener(this);
        }
View Full Code Here

        };
    }

    @Override
    public Breakpoint[] initBreakpoints() {
        Properties p = Properties.getDefault().getProperties(QUORUM_DEBUGGER).
            getProperties(DebuggerManager.PROP_BREAKPOINTS);
        Breakpoint[] breakpoints = (Breakpoint[]) p.getArray( QUORUM_BREAKPOINTS ,new Breakpoint [0]);
        ArrayList<Breakpoint> validBreakpoints = new ArrayList<Breakpoint>();
        for (int i = 0; i < breakpoints.length; i++) {
            Breakpoint breakpoint = breakpoints[i];
            if (breakpoint != null) {
                breakpoint.addPropertyChangeListener(this);
View Full Code Here

        return validBreakpoints.toArray(new Breakpoint[validBreakpoints.size()]);
    }

    @Override
    public void breakpointAdded(Breakpoint breakpoint) {
        Properties properties = Properties.getDefault().getProperties(QUORUM_DEBUGGER).
            getProperties(DebuggerManager.PROP_BREAKPOINTS);
        properties.setArray(QUORUM_BREAKPOINTS, getBreakpoints());
        breakpoint.addPropertyChangeListener(this);   
    }
View Full Code Here

        breakpoint.addPropertyChangeListener(this);   
    }

    @Override
    public void breakpointRemoved(Breakpoint breakpoint) {
        Properties properties = Properties.getDefault().getProperties(QUORUM_DEBUGGER).
            getProperties(DebuggerManager.PROP_BREAKPOINTS);
        properties.setArray(QUORUM_BREAKPOINTS, getBreakpoints());
        breakpoint.removePropertyChangeListener(this);
    }
View Full Code Here

TOP

Related Classes of org.netbeans.api.debugger.Properties

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.