Commit 111a9bf4 authored by AnonymousAuthor2847's avatar AnonymousAuthor2847
Browse files
parent 10f18b8d
......@@ -5,7 +5,7 @@
<groupId>chimp</groupId>
<artifactId>chimp.plugin</artifactId>
<version>1.2.0</version>
<version>1.3.0</version>
<packaging>bundle</packaging>
<name>Chimp Plugin</name>
......
......@@ -20,7 +20,7 @@ public class ImpactDisplayPanel extends JPanel implements ChimpLayout {
private Metric chosenMetric;
private final JComboBox<Object> dropdown = new JComboBox<>();
private final JLabel valueLabel = new JLabel();
// private final JLabel formulaLabel = new JLabel();
// private final JLabel formulaLabel = new JLabel();
private final JTextArea descriptionLabel = new JTextArea();
public ImpactDisplayPanel() {
......
......@@ -83,7 +83,7 @@ public class ImpactMetricsPanel extends JPanel implements ChimpLayout {
new ChangeNoiseImpact(reasoner)
//new ChangeImpact(reasoner,changes)
//new ChangeHierarchyImpact(reasoner,changes)
);
);
displayPanel.initPanel(impactMetrics);
} else {
......
......@@ -179,11 +179,21 @@ public class LastChangePanel extends JPanel implements ChimpLayout {
}
public String getExport() {
StringBuilder export = new StringBuilder("List of changes (chronologically, first to last):\n");
Iterator iter = allChanges.iterator();
while(iter.hasNext()){
export.append(iter.next().toString());
export.append("\n");
StringBuilder export = new StringBuilder();
if(allChanges == null){
export.append("No changes");
}else {
export.append("List of changes (chronologically, first to last): ");
if(allChanges.size() == 1){
export.append(allChanges.size() + " change recorded\n");
}else{
export.append(allChanges.size() + " changes recorded\n");
}
for (OWLOntologyChange change : allChanges) {
export.append(change.toString());
export.append("\n");
}
}
return export.toString();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment