com.sun.hotspot.igv.settings.Settings Java Examples

The following examples show how to use com.sun.hotspot.igv.settings.Settings. 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: DiagramViewModel.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public Diagram getDiagramToView() {

        if (diagram == null) {
            diagram = Diagram.createDiagram(getGraphToView(), Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
            getFilterChain().apply(diagram, getSequenceFilterChain());
            if (getFirstPosition() != getSecondPosition()) {
                CustomFilter f = new CustomFilter(
                        "difference", "colorize('state', 'same', white);"
                        + "colorize('state', 'changed', orange);"
                        + "colorize('state', 'new', green);"
                        + "colorize('state', 'deleted', red);");
                f.apply(diagram);
           }
        }

        return diagram;
    }
 
Example #2
Source File: GraphViewerImplementation.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void view(InputGraph graph, boolean clone) {

    if (!clone) {
        WindowManager manager = WindowManager.getDefault();
        for (Mode m : manager.getModes()) {
            for (TopComponent t : manager.getOpenedTopComponents(m)) {
                if (t instanceof EditorTopComponent) {
                    EditorTopComponent etc = (EditorTopComponent) t;
                    if (etc.getModel().getGroup().getGraphs().contains(graph)) {
                        etc.getModel().selectGraph(graph);
                        t.requestActive();
                        return;
                    }
                }
            }
        }
    }

    Diagram diagram = Diagram.createDiagram(graph, Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
    EditorTopComponent tc = new EditorTopComponent(diagram);
    tc.open();
    tc.requestActive();
}
 
Example #3
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 #4
Source File: DiagramViewModel.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public Diagram getDiagramToView() {

        if (diagram == null) {
            diagram = Diagram.createDiagram(getGraphToView(), Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
            getFilterChain().apply(diagram, getSequenceFilterChain());
        }

        return diagram;
    }
 
Example #5
Source File: Server.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void preferenceChange(PreferenceChangeEvent e) {

        int curPort = Integer.parseInt(Settings.get().get(Settings.PORT, Settings.PORT_DEFAULT));
        if (curPort != port) {
            initializeNetwork();
        }
    }
 
Example #6
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 #7
Source File: DiagramViewModel.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public Diagram getDiagramToView() {

        if (diagram == null) {
            diagram = Diagram.createDiagram(getGraphToView(), Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
            getFilterChain().apply(diagram, getSequenceFilterChain());
        }

        return diagram;
    }
 
Example #8
Source File: Server.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void preferenceChange(PreferenceChangeEvent e) {

        int curPort = Integer.parseInt(Settings.get().get(Settings.PORT, Settings.PORT_DEFAULT));
        if (curPort != port) {
            initializeNetwork();
        }
    }
 
Example #9
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 #10
Source File: DiagramViewModel.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public Diagram getDiagramToView() {

        if (diagram == null) {
            diagram = Diagram.createDiagram(getGraphToView(), Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
            getFilterChain().apply(diagram, getSequenceFilterChain());
        }

        return diagram;
    }
 
Example #11
Source File: Server.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void preferenceChange(PreferenceChangeEvent e) {

        int curPort = Integer.parseInt(Settings.get().get(Settings.PORT, Settings.PORT_DEFAULT));
        if (curPort != port) {
            initializeNetwork();
        }
    }
 
Example #12
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 #13
Source File: Server.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void preferenceChange(PreferenceChangeEvent e) {

    int curPort = Integer.parseInt(Settings.get().get(binary ? Settings.PORT_BINARY : Settings.PORT, binary ? Settings.PORT_BINARY_DEFAULT : Settings.PORT_DEFAULT));
    if (curPort != port) {
        initializeNetwork();
    }
}
 
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: DiagramViewModel.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Diagram getDiagramToView() {

        if (diagram == null) {
            diagram = Diagram.createDiagram(getGraphToView(), Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
            getFilterChain().apply(diagram, getSequenceFilterChain());
        }

        return diagram;
    }
 
Example #16
Source File: DiagramViewModel.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public Diagram getDiagramToView() {

        if (diagram == null) {
            diagram = Diagram.createDiagram(getGraphToView(), Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
            getFilterChain().apply(diagram, getSequenceFilterChain());
        }

        return diagram;
    }
 
Example #17
Source File: Server.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void preferenceChange(PreferenceChangeEvent e) {

        int curPort = Integer.parseInt(Settings.get().get(Settings.PORT, Settings.PORT_DEFAULT));
        if (curPort != port) {
            initializeNetwork();
        }
    }
 
Example #18
Source File: DiagramViewModel.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public Diagram getDiagramToView() {

        if (diagram == null) {
            diagram = Diagram.createDiagram(getGraphToView(), Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
            getFilterChain().apply(diagram, getSequenceFilterChain());
        }

        return diagram;
    }
 
Example #19
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 #20
Source File: Server.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void preferenceChange(PreferenceChangeEvent e) {

        int curPort = Integer.parseInt(Settings.get().get(Settings.PORT, Settings.PORT_DEFAULT));
        if (curPort != port) {
            initializeNetwork();
        }
    }
 
Example #21
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 #22
Source File: Server.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void preferenceChange(PreferenceChangeEvent e) {

        int curPort = Integer.parseInt(Settings.get().get(Settings.PORT, Settings.PORT_DEFAULT));
        if (curPort != port) {
            initializeNetwork();
        }
    }
 
Example #23
Source File: DiagramViewModel.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public Diagram getDiagramToView() {

        if (diagram == null) {
            diagram = Diagram.createDiagram(getGraphToView(), Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
            getFilterChain().apply(diagram, getSequenceFilterChain());
        }

        return diagram;
    }
 
Example #24
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 #25
Source File: Server.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void preferenceChange(PreferenceChangeEvent e) {

        int curPort = Integer.parseInt(Settings.get().get(Settings.PORT, Settings.PORT_DEFAULT));
        if (curPort != port) {
            initializeNetwork();
        }
    }
 
Example #26
Source File: GraphViewerImplementation.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void view(InputGraph graph) {
    Diagram diagram = Diagram.createDiagram(graph, Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
    EditorTopComponent tc = new EditorTopComponent(diagram);
    tc.open();
    tc.requestActive();
}
 
Example #27
Source File: GraphViewerImplementation.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public void view(InputGraph graph) {
    Diagram diagram = Diagram.createDiagram(graph, Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
    EditorTopComponent tc = new EditorTopComponent(diagram);
    tc.open();
    tc.requestActive();
}
 
Example #28
Source File: GraphViewerImplementation.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public void view(InputGraph graph) {
    Diagram diagram = Diagram.createDiagram(graph, Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
    EditorTopComponent tc = new EditorTopComponent(diagram);
    tc.open();
    tc.requestActive();
}
 
Example #29
Source File: GraphViewerImplementation.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void view(InputGraph graph) {
    Diagram diagram = Diagram.createDiagram(graph, Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
    EditorTopComponent tc = new EditorTopComponent(diagram);
    tc.open();
    tc.requestActive();
}
 
Example #30
Source File: GraphViewerImplementation.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void view(InputGraph graph) {
    Diagram diagram = Diagram.createDiagram(graph, Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
    EditorTopComponent tc = new EditorTopComponent(diagram);
    tc.open();
    tc.requestActive();
}