Skip to content
Snippets Groups Projects
Commit 1cfa1dec authored by Andrea Enrici's avatar Andrea Enrici
Browse files

corrected bug in jdialog for mapping communication patterns

parent ef6cd47b
No related branches found
No related tags found
No related merge requests found
...@@ -690,6 +690,7 @@ public class JDialogCommPatternMapping extends JDialog /* implements ActionListe ...@@ -690,6 +690,7 @@ public class JDialogCommPatternMapping extends JDialog /* implements ActionListe
if( cpMEC.equals( "VOID" ) || cpMEC.equals( "" ) ) { if( cpMEC.equals( "VOID" ) || cpMEC.equals( "" ) ) {
cpMECsCB.setSelectedIndex( 0 ); cpMECsCB.setSelectedIndex( 0 );
cpMEC = CPMEC.MemoryCopy;
} }
else { else {
cpMECsCB.setSelectedIndex( new Vector<String>( Arrays.asList( CPMEC.CP_TYPES ) ).indexOf( cpMEC ) ); cpMECsCB.setSelectedIndex( new Vector<String>( Arrays.asList( CPMEC.CP_TYPES ) ).indexOf( cpMEC ) );
...@@ -1457,6 +1458,9 @@ public class JDialogCommPatternMapping extends JDialog /* implements ActionListe ...@@ -1457,6 +1458,9 @@ public class JDialogCommPatternMapping extends JDialog /* implements ActionListe
cancelled = false; cancelled = false;
name = nameOfCP.getText(); name = nameOfCP.getText();
cpMEC = (String)cpMECsCB.getSelectedItem(); cpMEC = (String)cpMECsCB.getSelectedItem();
if( cpMEC.equals( "VOID" ) || cpMEC.equals( "" ) ) {
cpMEC = CPMEC.MemoryCopy;
}
transferType1 = Arrays.asList( CPMEC.TRANSFER_TYPES ).indexOf(transferTypeCB1.getSelectedItem()); transferType1 = Arrays.asList( CPMEC.TRANSFER_TYPES ).indexOf(transferTypeCB1.getSelectedItem());
transferType2 = Arrays.asList( CPMEC.TRANSFER_TYPES ).indexOf(transferTypeCB2.getSelectedItem()); transferType2 = Arrays.asList( CPMEC.TRANSFER_TYPES ).indexOf(transferTypeCB2.getSelectedItem());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment