com.sun.hotspot.igv.data.services.GroupCallback Java Examples

The following examples show how to use com.sun.hotspot.igv.data.services.GroupCallback. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OutlineTopComponent.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private void initReceivers() {

        final GroupCallback callback = new GroupCallback() {

            public void started(Group g) {
                getDocument().addGroup(g);
            }
        };

        Collection<? extends GroupReceiver> receivers = Lookup.getDefault().lookupAll(GroupReceiver.class);
        if (receivers.size() > 0) {
            JPanel panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));

            for (GroupReceiver r : receivers) {
                Component c = r.init(callback);
                panel.add(c);
            }

            jPanel2.add(panel, BorderLayout.PAGE_START);
        }
    }
 
Example #2
Source File: OutlineTopComponent.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private void initReceivers() {

        final GroupCallback callback = new GroupCallback() {

            public void started(Group g) {
                getDocument().addGroup(g);
            }
        };

        Collection<? extends GroupReceiver> receivers = Lookup.getDefault().lookupAll(GroupReceiver.class);
        if (receivers.size() > 0) {
            JPanel panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));

            for (GroupReceiver r : receivers) {
                Component c = r.init(callback);
                panel.add(c);
            }

            jPanel2.add(panel, BorderLayout.PAGE_START);
        }
    }
 
Example #3
Source File: OutlineTopComponent.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
private void initReceivers() {

        final GroupCallback callback = new GroupCallback() {

            public void started(Group g) {
                getDocument().addGroup(g);
            }
        };

        Collection<? extends GroupReceiver> receivers = Lookup.getDefault().lookupAll(GroupReceiver.class);
        if (receivers.size() > 0) {
            JPanel panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));

            for (GroupReceiver r : receivers) {
                Component c = r.init(callback);
                panel.add(c);
            }

            jPanel2.add(panel, BorderLayout.PAGE_START);
        }
    }
 
Example #4
Source File: OutlineTopComponent.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
private void initReceivers() {

        final GroupCallback callback = new GroupCallback() {

            public void started(Group g) {
                getDocument().addGroup(g);
            }
        };

        Collection<? extends GroupReceiver> receivers = Lookup.getDefault().lookupAll(GroupReceiver.class);
        if (receivers.size() > 0) {
            JPanel panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));

            for (GroupReceiver r : receivers) {
                Component c = r.init(callback);
                panel.add(c);
            }

            jPanel2.add(panel, BorderLayout.PAGE_START);
        }
    }
 
Example #5
Source File: OutlineTopComponent.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private void initReceivers() {

        final GroupCallback callback = new GroupCallback() {

            public void started(Group g) {
                getDocument().addGroup(g);
            }
        };

        Collection<? extends GroupReceiver> receivers = Lookup.getDefault().lookupAll(GroupReceiver.class);
        if (receivers.size() > 0) {
            JPanel panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));

            for (GroupReceiver r : receivers) {
                Component c = r.init(callback);
                panel.add(c);
            }

            jPanel2.add(panel, BorderLayout.PAGE_START);
        }
    }
 
Example #6
Source File: OutlineTopComponent.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private void initReceivers() {

        final GroupCallback callback = new GroupCallback() {

            public void started(Group g) {
                getDocument().addGroup(g);
            }
        };

        Collection<? extends GroupReceiver> receivers = Lookup.getDefault().lookupAll(GroupReceiver.class);
        if (receivers.size() > 0) {
            JPanel panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));

            for (GroupReceiver r : receivers) {
                Component c = r.init(callback);
                panel.add(c);
            }

            jPanel2.add(panel, BorderLayout.PAGE_START);
        }
    }
 
Example #7
Source File: OutlineTopComponent.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private void initReceivers() {

        final GroupCallback callback = new GroupCallback() {

            public void started(Group g) {
                getDocument().addGroup(g);
            }
        };

        Collection<? extends GroupReceiver> receivers = Lookup.getDefault().lookupAll(GroupReceiver.class);
        if (receivers.size() > 0) {
            JPanel panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));

            for (GroupReceiver r : receivers) {
                Component c = r.init(callback);
                panel.add(c);
            }

            jPanel2.add(panel, BorderLayout.PAGE_START);
        }
    }
 
Example #8
Source File: Server.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public Server(GraphDocument rootDocument, GroupCallback callback, boolean binary) {
    this.binary = binary;
    this.rootDocument = rootDocument;
    this.callback = callback;
    initializeNetwork();
    Settings.get().addPreferenceChangeListener(this);
}
 
Example #9
Source File: Server.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public Component init(GroupCallback callback) {

        this.callback = callback;

        jPanel1 = new javax.swing.JPanel();
        networkTextField = new javax.swing.JTextField();
        networkCheckBox = new javax.swing.JCheckBox();


        jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
        jPanel1.setLayout(new java.awt.BorderLayout(10, 10));
        jPanel1.add(networkTextField, java.awt.BorderLayout.CENTER);

        networkCheckBox.setSelected(true);
        org.openide.awt.Mnemonics.setLocalizedText(networkCheckBox, "Receive when name contains");
        networkCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        networkCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
        networkCheckBox.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                networkCheckBoxChanged(evt);
            }
        });
        jPanel1.add(networkCheckBox, java.awt.BorderLayout.WEST);
        networkCheckBox.getAccessibleContext().setAccessibleName("Read from network when name contains");

        initializeNetwork();
        Settings.get().addPreferenceChangeListener(this);
        return jPanel1;
    }
 
Example #10
Source File: Server.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public Component init(GroupCallback callback) {

        this.callback = callback;

        jPanel1 = new javax.swing.JPanel();
        networkTextField = new javax.swing.JTextField();
        networkCheckBox = new javax.swing.JCheckBox();


        jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
        jPanel1.setLayout(new java.awt.BorderLayout(10, 10));
        jPanel1.add(networkTextField, java.awt.BorderLayout.CENTER);

        networkCheckBox.setSelected(true);
        org.openide.awt.Mnemonics.setLocalizedText(networkCheckBox, "Receive when name contains");
        networkCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        networkCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
        networkCheckBox.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                networkCheckBoxChanged(evt);
            }
        });
        jPanel1.add(networkCheckBox, java.awt.BorderLayout.WEST);
        networkCheckBox.getAccessibleContext().setAccessibleName("Read from network when name contains");

        initializeNetwork();
        Settings.get().addPreferenceChangeListener(this);
        return jPanel1;
    }
 
Example #11
Source File: Server.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public Component init(GroupCallback callback) {

        this.callback = callback;

        jPanel1 = new javax.swing.JPanel();
        networkTextField = new javax.swing.JTextField();
        networkCheckBox = new javax.swing.JCheckBox();


        jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
        jPanel1.setLayout(new java.awt.BorderLayout(10, 10));
        jPanel1.add(networkTextField, java.awt.BorderLayout.CENTER);

        networkCheckBox.setSelected(true);
        org.openide.awt.Mnemonics.setLocalizedText(networkCheckBox, "Receive when name contains");
        networkCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        networkCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
        networkCheckBox.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                networkCheckBoxChanged(evt);
            }
        });
        jPanel1.add(networkCheckBox, java.awt.BorderLayout.WEST);
        networkCheckBox.getAccessibleContext().setAccessibleName("Read from network when name contains");

        initializeNetwork();
        Settings.get().addPreferenceChangeListener(this);
        return jPanel1;
    }
 
Example #12
Source File: OutlineTopComponent.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void initReceivers() {

        final GroupCallback callback = new GroupCallback() {

            @Override
            public void started(Group g) {
                synchronized(OutlineTopComponent.this) {
                    getDocument().addElement(g);
                }
            }
        };

        server = new Server(getDocument(), callback, false);
        binaryServer = new Server(getDocument(), callback, true);
    }
 
Example #13
Source File: BinaryParser.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public BinaryParser(ReadableByteChannel channel, ParseMonitor monitor, GraphDocument rootDocument, GroupCallback callback) {
    this.callback = callback;
    constantPool = new ArrayList<>();
    buffer = ByteBuffer.allocateDirect(256 * 1024);
    buffer.flip();
    this.channel = channel;
    this.rootDocument = rootDocument;
    folderStack = new LinkedList<>();
    hashStack = new LinkedList<>();
    this.monitor = monitor;
    try {
        this.digest = MessageDigest.getInstance("SHA-1");
    } catch (NoSuchAlgorithmException e) {
    }
}
 
Example #14
Source File: Server.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public Component init(GroupCallback callback) {

        this.callback = callback;

        jPanel1 = new javax.swing.JPanel();
        networkTextField = new javax.swing.JTextField();
        networkCheckBox = new javax.swing.JCheckBox();


        jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
        jPanel1.setLayout(new java.awt.BorderLayout(10, 10));
        jPanel1.add(networkTextField, java.awt.BorderLayout.CENTER);

        networkCheckBox.setSelected(true);
        org.openide.awt.Mnemonics.setLocalizedText(networkCheckBox, "Receive when name contains");
        networkCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        networkCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
        networkCheckBox.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                networkCheckBoxChanged(evt);
            }
        });
        jPanel1.add(networkCheckBox, java.awt.BorderLayout.WEST);
        networkCheckBox.getAccessibleContext().setAccessibleName("Read from network when name contains");

        initializeNetwork();
        Settings.get().addPreferenceChangeListener(this);
        return jPanel1;
    }
 
Example #15
Source File: Server.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Component init(GroupCallback callback) {

        this.callback = callback;

        jPanel1 = new javax.swing.JPanel();
        networkTextField = new javax.swing.JTextField();
        networkCheckBox = new javax.swing.JCheckBox();


        jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
        jPanel1.setLayout(new java.awt.BorderLayout(10, 10));
        jPanel1.add(networkTextField, java.awt.BorderLayout.CENTER);

        networkCheckBox.setSelected(true);
        org.openide.awt.Mnemonics.setLocalizedText(networkCheckBox, "Receive when name contains");
        networkCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        networkCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
        networkCheckBox.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                networkCheckBoxChanged(evt);
            }
        });
        jPanel1.add(networkCheckBox, java.awt.BorderLayout.WEST);
        networkCheckBox.getAccessibleContext().setAccessibleName("Read from network when name contains");

        initializeNetwork();
        Settings.get().addPreferenceChangeListener(this);
        return jPanel1;
    }
 
Example #16
Source File: Server.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public Component init(GroupCallback callback) {

        this.callback = callback;

        jPanel1 = new javax.swing.JPanel();
        networkTextField = new javax.swing.JTextField();
        networkCheckBox = new javax.swing.JCheckBox();


        jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
        jPanel1.setLayout(new java.awt.BorderLayout(10, 10));
        jPanel1.add(networkTextField, java.awt.BorderLayout.CENTER);

        networkCheckBox.setSelected(true);
        org.openide.awt.Mnemonics.setLocalizedText(networkCheckBox, "Receive when name contains");
        networkCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        networkCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
        networkCheckBox.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                networkCheckBoxChanged(evt);
            }
        });
        jPanel1.add(networkCheckBox, java.awt.BorderLayout.WEST);
        networkCheckBox.getAccessibleContext().setAccessibleName("Read from network when name contains");

        initializeNetwork();
        Settings.get().addPreferenceChangeListener(this);
        return jPanel1;
    }
 
Example #17
Source File: Server.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public Component init(GroupCallback callback) {

        this.callback = callback;

        jPanel1 = new javax.swing.JPanel();
        networkTextField = new javax.swing.JTextField();
        networkCheckBox = new javax.swing.JCheckBox();


        jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
        jPanel1.setLayout(new java.awt.BorderLayout(10, 10));
        jPanel1.add(networkTextField, java.awt.BorderLayout.CENTER);

        networkCheckBox.setSelected(true);
        org.openide.awt.Mnemonics.setLocalizedText(networkCheckBox, "Receive when name contains");
        networkCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        networkCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
        networkCheckBox.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                networkCheckBoxChanged(evt);
            }
        });
        jPanel1.add(networkCheckBox, java.awt.BorderLayout.WEST);
        networkCheckBox.getAccessibleContext().setAccessibleName("Read from network when name contains");

        initializeNetwork();
        Settings.get().addPreferenceChangeListener(this);
        return jPanel1;
    }
 
Example #18
Source File: Parser.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public Parser(GroupCallback groupCallback) {

        this.groupCallback = groupCallback;

        // Initialize dependencies
        xmlDocument.addChild(topHandler);
        topHandler.addChild(groupHandler);

        groupHandler.addChild(methodHandler);
        groupHandler.addChild(assemblyHandler);
        groupHandler.addChild(graphHandler);

        methodHandler.addChild(inlinedHandler);
        methodHandler.addChild(bytecodesHandler);

        inlinedHandler.addChild(inlinedMethodHandler);
        inlinedMethodHandler.addChild(bytecodesHandler);
        inlinedMethodHandler.addChild(inlinedHandler);

        graphHandler.addChild(nodesHandler);
        graphHandler.addChild(edgesHandler);
        graphHandler.addChild(controlFlowHandler);

        controlFlowHandler.addChild(blockHandler);

        blockHandler.addChild(successorsHandler);
        successorsHandler.addChild(successorHandler);
        blockHandler.addChild(blockNodesHandler);
        blockNodesHandler.addChild(blockNodeHandler);

        nodesHandler.addChild(nodeHandler);
        nodesHandler.addChild(removeNodeHandler);
        edgesHandler.addChild(edgeHandler);
        edgesHandler.addChild(removeEdgeHandler);

        methodHandler.addChild(propertiesHandler);
        inlinedMethodHandler.addChild(propertiesHandler);
        topHandler.addChild(propertiesHandler);
        groupHandler.addChild(groupPropertiesHandler);
        graphHandler.addChild(propertiesHandler);
        nodeHandler.addChild(propertiesHandler);
        propertiesHandler.addChild(propertyHandler);
        groupPropertiesHandler.addChild(propertyHandler);
    }
 
Example #19
Source File: Client.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public Client(Socket socket, JTextField networkTextField, GroupCallback callback) {
    this.callback = callback;
    this.socket = socket;
    this.networkTextField = networkTextField;
}
 
Example #20
Source File: Parser.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public Parser(GroupCallback groupCallback) {

        this.groupCallback = groupCallback;

        // Initialize dependencies
        xmlDocument.addChild(topHandler);
        topHandler.addChild(groupHandler);

        groupHandler.addChild(methodHandler);
        groupHandler.addChild(assemblyHandler);
        groupHandler.addChild(graphHandler);

        methodHandler.addChild(inlinedHandler);
        methodHandler.addChild(bytecodesHandler);

        inlinedHandler.addChild(inlinedMethodHandler);
        inlinedMethodHandler.addChild(bytecodesHandler);
        inlinedMethodHandler.addChild(inlinedHandler);

        graphHandler.addChild(nodesHandler);
        graphHandler.addChild(edgesHandler);
        graphHandler.addChild(controlFlowHandler);

        controlFlowHandler.addChild(blockHandler);

        blockHandler.addChild(successorsHandler);
        successorsHandler.addChild(successorHandler);
        blockHandler.addChild(blockNodesHandler);
        blockNodesHandler.addChild(blockNodeHandler);

        nodesHandler.addChild(nodeHandler);
        nodesHandler.addChild(removeNodeHandler);
        edgesHandler.addChild(edgeHandler);
        edgesHandler.addChild(removeEdgeHandler);

        methodHandler.addChild(propertiesHandler);
        inlinedMethodHandler.addChild(propertiesHandler);
        topHandler.addChild(propertiesHandler);
        groupHandler.addChild(groupPropertiesHandler);
        graphHandler.addChild(propertiesHandler);
        nodeHandler.addChild(propertiesHandler);
        propertiesHandler.addChild(propertyHandler);
        groupPropertiesHandler.addChild(propertyHandler);
    }
 
Example #21
Source File: Client.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public Client(Socket socket, JTextField networkTextField, GroupCallback callback) {
    this.callback = callback;
    this.socket = socket;
    this.networkTextField = networkTextField;
}
 
Example #22
Source File: Parser.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public Parser(GroupCallback groupCallback) {

        this.groupCallback = groupCallback;

        // Initialize dependencies
        xmlDocument.addChild(topHandler);
        topHandler.addChild(groupHandler);

        groupHandler.addChild(methodHandler);
        groupHandler.addChild(assemblyHandler);
        groupHandler.addChild(graphHandler);

        methodHandler.addChild(inlinedHandler);
        methodHandler.addChild(bytecodesHandler);

        inlinedHandler.addChild(inlinedMethodHandler);
        inlinedMethodHandler.addChild(bytecodesHandler);
        inlinedMethodHandler.addChild(inlinedHandler);

        graphHandler.addChild(nodesHandler);
        graphHandler.addChild(edgesHandler);
        graphHandler.addChild(controlFlowHandler);

        controlFlowHandler.addChild(blockHandler);

        blockHandler.addChild(successorsHandler);
        successorsHandler.addChild(successorHandler);
        blockHandler.addChild(blockNodesHandler);
        blockNodesHandler.addChild(blockNodeHandler);

        nodesHandler.addChild(nodeHandler);
        nodesHandler.addChild(removeNodeHandler);
        edgesHandler.addChild(edgeHandler);
        edgesHandler.addChild(removeEdgeHandler);

        methodHandler.addChild(propertiesHandler);
        inlinedMethodHandler.addChild(propertiesHandler);
        topHandler.addChild(propertiesHandler);
        groupHandler.addChild(groupPropertiesHandler);
        graphHandler.addChild(propertiesHandler);
        nodeHandler.addChild(propertiesHandler);
        propertiesHandler.addChild(propertyHandler);
        groupPropertiesHandler.addChild(propertyHandler);
    }
 
Example #23
Source File: Parser.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public Parser(GroupCallback groupCallback) {

        this.groupCallback = groupCallback;

        // Initialize dependencies
        xmlDocument.addChild(topHandler);
        topHandler.addChild(groupHandler);

        groupHandler.addChild(methodHandler);
        groupHandler.addChild(assemblyHandler);
        groupHandler.addChild(graphHandler);

        methodHandler.addChild(inlinedHandler);
        methodHandler.addChild(bytecodesHandler);

        inlinedHandler.addChild(inlinedMethodHandler);
        inlinedMethodHandler.addChild(bytecodesHandler);
        inlinedMethodHandler.addChild(inlinedHandler);

        graphHandler.addChild(nodesHandler);
        graphHandler.addChild(edgesHandler);
        graphHandler.addChild(controlFlowHandler);

        controlFlowHandler.addChild(blockHandler);

        blockHandler.addChild(successorsHandler);
        successorsHandler.addChild(successorHandler);
        blockHandler.addChild(blockNodesHandler);
        blockNodesHandler.addChild(blockNodeHandler);

        nodesHandler.addChild(nodeHandler);
        nodesHandler.addChild(removeNodeHandler);
        edgesHandler.addChild(edgeHandler);
        edgesHandler.addChild(removeEdgeHandler);

        methodHandler.addChild(propertiesHandler);
        inlinedMethodHandler.addChild(propertiesHandler);
        topHandler.addChild(propertiesHandler);
        groupHandler.addChild(groupPropertiesHandler);
        graphHandler.addChild(propertiesHandler);
        nodeHandler.addChild(propertiesHandler);
        propertiesHandler.addChild(propertyHandler);
        groupPropertiesHandler.addChild(propertyHandler);
    }
 
Example #24
Source File: Client.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public Client(Socket socket, JTextField networkTextField, GroupCallback callback) {
    this.callback = callback;
    this.socket = socket;
    this.networkTextField = networkTextField;
}
 
Example #25
Source File: Client.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public Client(Socket socket, JTextField networkTextField, GroupCallback callback) {
    this.callback = callback;
    this.socket = socket;
    this.networkTextField = networkTextField;
}
 
Example #26
Source File: Parser.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public Parser(GroupCallback groupCallback) {

        this.groupCallback = groupCallback;

        // Initialize dependencies
        xmlDocument.addChild(topHandler);
        topHandler.addChild(groupHandler);

        groupHandler.addChild(methodHandler);
        groupHandler.addChild(assemblyHandler);
        groupHandler.addChild(graphHandler);

        methodHandler.addChild(inlinedHandler);
        methodHandler.addChild(bytecodesHandler);

        inlinedHandler.addChild(inlinedMethodHandler);
        inlinedMethodHandler.addChild(bytecodesHandler);
        inlinedMethodHandler.addChild(inlinedHandler);

        graphHandler.addChild(nodesHandler);
        graphHandler.addChild(edgesHandler);
        graphHandler.addChild(controlFlowHandler);

        controlFlowHandler.addChild(blockHandler);

        blockHandler.addChild(successorsHandler);
        successorsHandler.addChild(successorHandler);
        blockHandler.addChild(blockNodesHandler);
        blockNodesHandler.addChild(blockNodeHandler);

        nodesHandler.addChild(nodeHandler);
        nodesHandler.addChild(removeNodeHandler);
        edgesHandler.addChild(edgeHandler);
        edgesHandler.addChild(removeEdgeHandler);

        methodHandler.addChild(propertiesHandler);
        inlinedMethodHandler.addChild(propertiesHandler);
        topHandler.addChild(propertiesHandler);
        groupHandler.addChild(groupPropertiesHandler);
        graphHandler.addChild(propertiesHandler);
        nodeHandler.addChild(propertiesHandler);
        propertiesHandler.addChild(propertyHandler);
        groupPropertiesHandler.addChild(propertyHandler);
    }
 
Example #27
Source File: Parser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public Parser(GroupCallback groupCallback) {

        this.groupCallback = groupCallback;

        // Initialize dependencies
        xmlDocument.addChild(topHandler);
        topHandler.addChild(groupHandler);

        groupHandler.addChild(methodHandler);
        groupHandler.addChild(assemblyHandler);
        groupHandler.addChild(graphHandler);

        methodHandler.addChild(inlinedHandler);
        methodHandler.addChild(bytecodesHandler);

        inlinedHandler.addChild(inlinedMethodHandler);
        inlinedMethodHandler.addChild(bytecodesHandler);
        inlinedMethodHandler.addChild(inlinedHandler);

        graphHandler.addChild(nodesHandler);
        graphHandler.addChild(edgesHandler);
        graphHandler.addChild(controlFlowHandler);

        controlFlowHandler.addChild(blockHandler);

        blockHandler.addChild(successorsHandler);
        successorsHandler.addChild(successorHandler);
        blockHandler.addChild(blockNodesHandler);
        blockNodesHandler.addChild(blockNodeHandler);

        nodesHandler.addChild(nodeHandler);
        nodesHandler.addChild(removeNodeHandler);
        edgesHandler.addChild(edgeHandler);
        edgesHandler.addChild(removeEdgeHandler);

        methodHandler.addChild(propertiesHandler);
        inlinedMethodHandler.addChild(propertiesHandler);
        topHandler.addChild(propertiesHandler);
        groupHandler.addChild(groupPropertiesHandler);
        graphHandler.addChild(propertiesHandler);
        nodeHandler.addChild(propertiesHandler);
        propertiesHandler.addChild(propertyHandler);
        groupPropertiesHandler.addChild(propertyHandler);
    }
 
Example #28
Source File: Client.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public Client(Socket socket, JTextField networkTextField, GroupCallback callback) {
    this.callback = callback;
    this.socket = socket;
    this.networkTextField = networkTextField;
}
 
Example #29
Source File: Client.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public Client(Socket socket, JTextField networkTextField, GroupCallback callback) {
    this.callback = callback;
    this.socket = socket;
    this.networkTextField = networkTextField;
}
 
Example #30
Source File: Parser.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public Parser(ReadableByteChannel channel, ParseMonitor monitor, GroupCallback groupCallback) {

        this.groupCallback = groupCallback;
        this.monitor = monitor;
        this.channel = channel;

        // Initialize dependencies
        xmlDocument.addChild(topHandler);
        topHandler.addChild(groupHandler);

        groupHandler.addChild(methodHandler);
        groupHandler.addChild(graphHandler);
        groupHandler.addChild(groupHandler);

        methodHandler.addChild(inlinedHandler);
        methodHandler.addChild(bytecodesHandler);

        inlinedHandler.addChild(inlinedMethodHandler);
        inlinedMethodHandler.addChild(bytecodesHandler);
        inlinedMethodHandler.addChild(inlinedHandler);

        graphHandler.addChild(nodesHandler);
        graphHandler.addChild(edgesHandler);
        graphHandler.addChild(controlFlowHandler);

        controlFlowHandler.addChild(blockHandler);

        blockHandler.addChild(successorsHandler);
        successorsHandler.addChild(successorHandler);
        blockHandler.addChild(blockNodesHandler);
        blockNodesHandler.addChild(blockNodeHandler);

        nodesHandler.addChild(nodeHandler);
        nodesHandler.addChild(removeNodeHandler);
        edgesHandler.addChild(edgeHandler);
        edgesHandler.addChild(removeEdgeHandler);

        methodHandler.addChild(propertiesHandler);
        inlinedMethodHandler.addChild(propertiesHandler);
        topHandler.addChild(propertiesHandler);
        groupHandler.addChild(groupPropertiesHandler);
        graphHandler.addChild(propertiesHandler);
        nodeHandler.addChild(propertiesHandler);
        propertiesHandler.addChild(propertyHandler);
        groupPropertiesHandler.addChild(propertyHandler);
    }