|
@@ -434,7 +434,8 @@ public class GUI implements CategoryListener {
|
|
|
@Override
|
|
|
public void mousePressed(MouseEvent e) {
|
|
|
|
|
|
- // Update of the Information about the HolonElements
|
|
|
+ // Update of the Information about the HolonElements - only for
|
|
|
+ // HolonObjects
|
|
|
if (tableModelHolonElement.getRowCount() > 0) {
|
|
|
for (int i = tableModelHolonElement.getRowCount() - 1; i > -1; i--) {
|
|
|
tableModelHolonElement.removeRow(i);
|
|
@@ -447,13 +448,16 @@ public class GUI implements CategoryListener {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // Update of the Information about the Properties
|
|
|
+ // Update of the Information about the Properties - only for
|
|
|
+ // CpsObjects
|
|
|
+ // Erase old data
|
|
|
if (tableModelProperties.getRowCount() > 0) {
|
|
|
for (int i = tableModelProperties.getRowCount() - 1; i > -1; i--) {
|
|
|
tableModelProperties.removeRow(i);
|
|
|
}
|
|
|
}
|
|
|
- if (canvas.dataSelected != null) {
|
|
|
+ // Write new data
|
|
|
+ if (canvas.tempCps != null) {
|
|
|
Object[] tempName = { "Name", canvas.tempCps.getName() };
|
|
|
tableModelProperties.addRow(tempName);
|
|
|
Object[] tempId = { "ID", canvas.tempCps.getID() };
|