hotspot/src/share/tools/IdealGraphVisualizer/Util/src/com/sun/hotspot/igv/util/PropertiesSheet.java
changeset 1497 cd3234c89e59
parent 766 d3e5868ddb33
child 1623 a0dd9009e992
equal deleted inserted replaced
1496:3fd9157e5e3c 1497:cd3234c89e59
    34  *
    34  *
    35  * @author Thomas Wuerthinger
    35  * @author Thomas Wuerthinger
    36  */
    36  */
    37 public class PropertiesSheet {
    37 public class PropertiesSheet {
    38 
    38 
    39     public static void initializeSheet(Properties properties, Sheet s) {
    39     public static void initializeSheet(final Properties properties, Sheet s) {
    40 
    40 
    41         Sheet.Set set1 = Sheet.createPropertiesSet();
    41         Sheet.Set set1 = Sheet.createPropertiesSet();
    42         set1.setDisplayName("Properties");
    42         set1.setDisplayName("Properties");
    43         for (final Property p : properties.getProperties()) {
    43         for (final Property p : properties) {
    44             Node.Property<String> prop = new Node.Property<String>(String.class) {
    44             Node.Property<String> prop = new Node.Property<String>(String.class) {
    45 
    45 
    46                 @Override
    46                 @Override
    47                 public boolean canRead() {
    47                 public boolean canRead() {
    48                     return true;
    48                     return true;
    58                     return false;
    58                     return false;
    59                 }
    59                 }
    60 
    60 
    61                 @Override
    61                 @Override
    62                 public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
    62                 public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
    63                     p.setValue(arg0);
    63                     properties.setProperty(p.getName(), arg0);
    64                 }
    64                 }
    65             };
    65             };
    66             prop.setName(p.getName());
    66             prop.setName(p.getName());
    67             set1.put(prop);
    67             set1.put(prop);
    68         }
    68         }