Skip to content

Commit

Permalink
Use PropertyDescriptor since read only.
Browse files Browse the repository at this point in the history
  • Loading branch information
olas committed Apr 18, 2012
1 parent 3fc3628 commit 97aad1d
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -27,9 +27,9 @@ public class MoleculeResultPropertySource extends BasicPropertySource

private Object SimplePropertiesTable[][] =
{
{ NAME, new TextPropertyDescriptor(NAME,"Name")},
{ TEST, new TextPropertyDescriptor(TEST,"Test")},
{ CLASSIFICATION, new TextPropertyDescriptor(CLASSIFICATION,CLASSIFICATION)},
{ NAME, new PropertyDescriptor(NAME,"Name")},
{ TEST, new PropertyDescriptor(TEST,"Test")},
{ CLASSIFICATION, new PropertyDescriptor(CLASSIFICATION,CLASSIFICATION)},
};

public MoleculeResultPropertySource(ExternalMoleculeMatch item) {
Expand Down Expand Up @@ -70,7 +70,7 @@ else if (item.getClassification()==ITestResult.ERROR)

for (String name : catprops.keySet()){
String value = catprops.get(name);
PropertyDescriptor descriptor = new TextPropertyDescriptor(category+"_" + name, name);
PropertyDescriptor descriptor = new PropertyDescriptor(category+"_" + name, name);
descriptor.setCategory(category);
getProperties().add(descriptor);
addToValueMap(category+"_" + name,value);
Expand Down

0 comments on commit 97aad1d

Please sign in to comment.