com.sun.hotspot.igv.data.Property Java Examples

The following examples show how to use com.sun.hotspot.igv.data.Property. 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: Difference.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public double getValue() {

            double result = 0.0;
            for (Property p : n1.getProperties()) {
                double faktor = 1.0;
                for (String forbidden : IGNORE_PROPERTIES) {
                    if (p.getName().equals(forbidden)) {
                        faktor = 0.1;
                        break;
                    }
                }
                String p2 = n2.getProperties().get(p.getName());
                result += evaluate(p.getValue(), p2) * faktor;
            }

            return result;
        }
 
Example #2
Source File: Difference.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public double getValue() {

            double result = 0.0;
            for (Property p : n1.getProperties()) {
                double faktor = 1.0;
                for (String forbidden : IGNORE_PROPERTIES) {
                    if (p.getName().equals(forbidden)) {
                        faktor = 0.1;
                        break;
                    }
                }
                String p2 = n2.getProperties().get(p.getName());
                result += evaluate(p.getValue(), p2) * faktor;
            }

            return result;
        }
 
Example #3
Source File: FindPanel.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public void updateComboBox(List<Figure> figures) {

        String sel = (String) nameComboBox.getSelectedItem();
        SortedSet<String> propertyNames = new TreeSet<String>();

        for (Figure f : figures) {
            Properties prop = f.getProperties();
            for (Property p : prop) {
                if (!propertyNames.contains(p.getName())) {
                    propertyNames.add(p.getName());
                }
            }
        }

        for (String s : propertyNames) {
            nameComboBox.addItem(s);
        }
        nameComboBox.setSelectedItem(sel);
    }
 
Example #4
Source File: Difference.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public double getValue() {

            double result = 0.0;
            for (Property p : n1.getProperties()) {
                double faktor = 1.0;
                for (String forbidden : IGNORE_PROPERTIES) {
                    if (p.getName().equals(forbidden)) {
                        faktor = 0.1;
                        break;
                    }
                }
                String p2 = n2.getProperties().get(p.getName());
                result += evaluate(p.getValue(), p2) * faktor;
            }

            return result;
        }
 
Example #5
Source File: FindPanel.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public void updateComboBox(List<Figure> figures) {

        String sel = (String) nameComboBox.getSelectedItem();
        SortedSet<String> propertyNames = new TreeSet<String>();

        for (Figure f : figures) {
            Properties prop = f.getProperties();
            for (Property p : prop) {
                if (!propertyNames.contains(p.getName())) {
                    propertyNames.add(p.getName());
                }
            }
        }

        for (String s : propertyNames) {
            nameComboBox.addItem(s);
        }
        nameComboBox.setSelectedItem(sel);
    }
 
Example #6
Source File: Difference.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public double getValue() {

            double result = 0.0;
            for (Property p : n1.getProperties()) {
                double faktor = 1.0;
                for (String forbidden : IGNORE_PROPERTIES) {
                    if (p.getName().equals(forbidden)) {
                        faktor = 0.1;
                        break;
                    }
                }
                String p2 = n2.getProperties().get(p.getName());
                result += evaluate(p.getValue(), p2) * faktor;
            }

            return result;
        }
 
Example #7
Source File: FindPanel.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public void updateComboBox(List<Figure> figures) {

        String sel = (String) nameComboBox.getSelectedItem();
        SortedSet<String> propertyNames = new TreeSet<String>();

        for (Figure f : figures) {
            Properties prop = f.getProperties();
            for (Property p : prop) {
                if (!propertyNames.contains(p.getName())) {
                    propertyNames.add(p.getName());
                }
            }
        }

        for (String s : propertyNames) {
            nameComboBox.addItem(s);
        }
        nameComboBox.setSelectedItem(sel);
    }
 
Example #8
Source File: FindPanel.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public void updateComboBox(List<Figure> figures) {

        String sel = (String) nameComboBox.getSelectedItem();
        SortedSet<String> propertyNames = new TreeSet<String>();

        for (Figure f : figures) {
            Properties prop = f.getProperties();
            for (Property p : prop) {
                if (!propertyNames.contains(p.getName())) {
                    propertyNames.add(p.getName());
                }
            }
        }

        for (String s : propertyNames) {
            nameComboBox.addItem(s);
        }
        nameComboBox.setSelectedItem(sel);
    }
 
Example #9
Source File: FindPanel.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public void updateComboBox(List<Figure> figures) {

        String sel = (String) nameComboBox.getSelectedItem();
        SortedSet<String> propertyNames = new TreeSet<String>();

        for (Figure f : figures) {
            Properties prop = f.getProperties();
            for (Property p : prop) {
                if (!propertyNames.contains(p.getName())) {
                    propertyNames.add(p.getName());
                }
            }
        }

        for (String s : propertyNames) {
            nameComboBox.addItem(s);
        }
        nameComboBox.setSelectedItem(sel);
    }
 
Example #10
Source File: Difference.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public double getValue() {

            double result = 0.0;
            for (Property p : n1.getProperties()) {
                double faktor = 1.0;
                for (String forbidden : IGNORE_PROPERTIES) {
                    if (p.getName().equals(forbidden)) {
                        faktor = 0.1;
                        break;
                    }
                }
                String p2 = n2.getProperties().get(p.getName());
                result += evaluate(p.getValue(), p2) * faktor;
            }

            return result;
        }
 
Example #11
Source File: FindPanel.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public void updateComboBox(List<Figure> figures) {

        String sel = (String) nameComboBox.getSelectedItem();
        SortedSet<String> propertyNames = new TreeSet<String>();

        for (Figure f : figures) {
            Properties prop = f.getProperties();
            for (Property p : prop) {
                if (!propertyNames.contains(p.getName())) {
                    propertyNames.add(p.getName());
                }
            }
        }

        for (String s : propertyNames) {
            nameComboBox.addItem(s);
        }
        nameComboBox.setSelectedItem(sel);
    }
 
Example #12
Source File: Difference.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public double getValue() {

            double result = 0.0;
            for (Property p : n1.getProperties()) {
                double faktor = 1.0;
                for (String forbidden : IGNORE_PROPERTIES) {
                    if (p.getName().equals(forbidden)) {
                        faktor = 0.1;
                        break;
                    }
                }
                String p2 = n2.getProperties().get(p.getName());
                result += evaluate(p.getValue(), p2) * faktor;
            }

            return result;
        }
 
Example #13
Source File: FindPanel.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public void updateComboBox(List<Figure> figures) {

        String sel = (String) nameComboBox.getSelectedItem();
        SortedSet<String> propertyNames = new TreeSet<String>();

        for (Figure f : figures) {
            Properties prop = f.getProperties();
            for (Property p : prop) {
                if (!propertyNames.contains(p.getName())) {
                    propertyNames.add(p.getName());
                }
            }
        }

        for (String s : propertyNames) {
            nameComboBox.addItem(s);
        }
        nameComboBox.setSelectedItem(sel);
    }
 
Example #14
Source File: Difference.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public double getValue() {

            double result = 0.0;
            for (Property p : n1.getProperties()) {
                double faktor = 1.0;
                for (String forbidden : IGNORE_PROPERTIES) {
                    if (p.getName().equals(forbidden)) {
                        faktor = 0.1;
                        break;
                    }
                }
                String p2 = n2.getProperties().get(p.getName());
                result += evaluate(p.getValue(), p2) * faktor;
            }

            return result;
        }
 
Example #15
Source File: XMLWriter.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void writeProperties(Properties props) throws IOException {
    if (props.getProperties().hasNext() == false) {
        return;
    }

    startTag(Parser.PROPERTIES_ELEMENT);

    for (Property p : props) {
        startTag(Parser.PROPERTY_ELEMENT, new Properties(Parser.PROPERTY_NAME_PROPERTY, p.getName()));
        this.write(p.getValue().toCharArray());
        endTag();
    }

    endTag();
}
 
Example #16
Source File: XMLWriter.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void simpleTag(String name, Properties attributes) throws IOException {
    inner.write("<" + name);

    for (Property p : attributes) {
        inner.write(" " + p.getName() + "=\"");
        write(p.getValue().toCharArray());
        inner.write("\"");
    }

    inner.write("/>\n");
}
 
Example #17
Source File: XMLWriter.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void startTag(String name, Properties attributes) throws IOException {
    inner.write("<" + name);
    elementStack.push(name);

    for (Property p : attributes) {
        inner.write(" " + p.getName() + "=\"");
        write(p.getValue().toCharArray());
        inner.write("\"");
    }

    inner.write(">\n");
}
 
Example #18
Source File: XMLWriter.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void simpleTag(String name, Properties attributes) throws IOException {
    inner.write("<" + name);

    for (Property p : attributes) {
        inner.write(" " + p.getName() + "=\"");
        write(p.getValue().toCharArray());
        inner.write("\"");
    }

    inner.write("/>\n");
}
 
Example #19
Source File: XMLWriter.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void writeProperties(Properties props) throws IOException {
    if (props.getProperties().hasNext() == false) {
        return;
    }

    startTag(Parser.PROPERTIES_ELEMENT);

    for (Property p : props) {
        startTag(Parser.PROPERTY_ELEMENT, new Properties(Parser.PROPERTY_NAME_PROPERTY, p.getName()));
        this.write(p.getValue().toCharArray());
        endTag();
    }

    endTag();
}
 
Example #20
Source File: PropertiesSheet.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static void initializeSheet(final Properties properties, Sheet s) {

        Sheet.Set set1 = Sheet.createPropertiesSet();
        set1.setDisplayName("Properties");
        for (final Property p : properties) {
            Node.Property<String> prop = new Node.Property<String>(String.class) {

                @Override
                public boolean canRead() {
                    return true;
                }

                @Override
                public String getValue() throws IllegalAccessException, InvocationTargetException {
                    return p.getValue();
                }

                @Override
                public boolean canWrite() {
                    return false;
                }

                @Override
                public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
                    properties.setProperty(p.getName(), arg0);
                }
            };
            prop.setName(p.getName());
            set1.put(prop);
        }
        s.put(set1);
    }
 
Example #21
Source File: XMLWriter.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void writeProperties(Properties props) throws IOException {
    if (props.getProperties().hasNext() == false) {
        return;
    }

    startTag(Parser.PROPERTIES_ELEMENT);

    for (Property p : props) {
        startTag(Parser.PROPERTY_ELEMENT, new Properties(Parser.PROPERTY_NAME_PROPERTY, p.getName()));
        this.write(p.getValue().toCharArray());
        endTag();
    }

    endTag();
}
 
Example #22
Source File: XMLWriter.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void simpleTag(String name, Properties attributes) throws IOException {
    inner.write("<" + name);

    for (Property p : attributes) {
        inner.write(" " + p.getName() + "=\"");
        write(p.getValue().toCharArray());
        inner.write("\"");
    }

    inner.write("/>\n");
}
 
Example #23
Source File: XMLWriter.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void startTag(String name, Properties attributes) throws IOException {
    inner.write("<" + name);
    elementStack.push(name);

    for (Property p : attributes) {
        inner.write(" " + p.getName() + "=\"");
        write(p.getValue().toCharArray());
        inner.write("\"");
    }

    inner.write(">\n");
}
 
Example #24
Source File: PropertiesSheet.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static void initializeSheet(final Properties properties, Sheet s) {

        Sheet.Set set1 = Sheet.createPropertiesSet();
        set1.setDisplayName("Properties");
        for (final Property p : properties) {
            Node.Property<String> prop = new Node.Property<String>(String.class) {

                @Override
                public boolean canRead() {
                    return true;
                }

                @Override
                public String getValue() throws IllegalAccessException, InvocationTargetException {
                    return p.getValue();
                }

                @Override
                public boolean canWrite() {
                    return false;
                }

                @Override
                public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
                    properties.setProperty(p.getName(), arg0);
                }
            };
            prop.setName(p.getName());
            set1.put(prop);
        }
        s.put(set1);
    }
 
Example #25
Source File: PropertiesSheet.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public static void initializeSheet(final Properties properties, Sheet s) {

        Sheet.Set set1 = Sheet.createPropertiesSet();
        set1.setDisplayName("Properties");
        for (final Property p : properties) {
            Node.Property<String> prop = new Node.Property<String>(String.class) {

                @Override
                public boolean canRead() {
                    return true;
                }

                @Override
                public String getValue() throws IllegalAccessException, InvocationTargetException {
                    return p.getValue();
                }

                @Override
                public boolean canWrite() {
                    return false;
                }

                @Override
                public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
                    properties.setProperty(p.getName(), arg0);
                }
            };
            prop.setName(p.getName());
            set1.put(prop);
        }
        s.put(set1);
    }
 
Example #26
Source File: PropertiesSheet.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void initializeSheet(final Properties properties, Sheet s) {

        Sheet.Set set1 = Sheet.createPropertiesSet();
        set1.setDisplayName("Properties");
        for (final Property p : properties) {
            Node.Property<String> prop = new Node.Property<String>(String.class) {

                @Override
                public boolean canRead() {
                    return true;
                }

                @Override
                public String getValue() throws IllegalAccessException, InvocationTargetException {
                    return p.getValue();
                }

                @Override
                public boolean canWrite() {
                    return false;
                }

                @Override
                public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
                    properties.setProperty(p.getName(), arg0);
                }
            };
            prop.setName(p.getName());
            set1.put(prop);
        }
        s.put(set1);
    }
 
Example #27
Source File: XMLWriter.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void writeProperties(Properties props) throws IOException {
    if (props.getProperties().hasNext() == false) {
        return;
    }

    startTag(Parser.PROPERTIES_ELEMENT);

    for (Property p : props) {
        startTag(Parser.PROPERTY_ELEMENT, new Properties(Parser.PROPERTY_NAME_PROPERTY, p.getName()));
        this.write(p.getValue().toCharArray());
        endTag();
    }

    endTag();
}
 
Example #28
Source File: XMLWriter.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void simpleTag(String name, Properties attributes) throws IOException {
    inner.write("<" + name);

    for (Property p : attributes) {
        inner.write(" " + p.getName() + "=\"");
        write(p.getValue().toCharArray());
        inner.write("\"");
    }

    inner.write("/>\n");
}
 
Example #29
Source File: XMLWriter.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void startTag(String name, Properties attributes) throws IOException {
    inner.write("<" + name);
    elementStack.push(name);

    for (Property p : attributes) {
        inner.write(" " + p.getName() + "=\"");
        write(p.getValue().toCharArray());
        inner.write("\"");
    }

    inner.write(">\n");
}
 
Example #30
Source File: XMLWriter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void simpleTag(String name, Properties attributes) throws IOException {
    inner.write("<" + name);

    for (Property p : attributes) {
        inner.write(" " + p.getName() + "=\"");
        write(p.getValue().toCharArray());
        inner.write("\"");
    }

    inner.write("/>\n");
}