Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Commit

Permalink
Add Debug info to PortsItemEventHandler to list all ports found.
Browse files Browse the repository at this point in the history
  • Loading branch information
SMerrony committed Jan 26, 2016
1 parent 2d71949 commit bb84dc6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions EWItool2/src/ewitool/PortsItemEventHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,13 @@ public void handle( ActionEvent arg0 ) {
if (device.getMaxReceivers() != 0) {
opIx++;
outPorts.add( infos[d].getName() );
if (infos[d].getName().equals( lastOutDevice ))
outView.getSelectionModel().clearAndSelect( opIx );
//Debugger.log( "Debug - OUT Port: " + infos[d].getName());
if (infos[d].getName().equals( lastOutDevice )) outView.getSelectionModel().clearAndSelect( opIx );
Debugger.log( "DEBUG - Found OUT Port: " + infos[d].getName() + " - " + infos[d].getDescription() );
} else if (device.getMaxTransmitters() != 0) {
ipIx++;
inPorts.add( infos[d].getName() );
if (infos[d].getName().equals( lastInDevice ))
inView.getSelectionModel().clearAndSelect( ipIx );
//Debugger.log( "Debug - IN Port: " + infos[d].getName() );
if (infos[d].getName().equals( lastInDevice )) inView.getSelectionModel().clearAndSelect( ipIx );
Debugger.log( "DEBUG - Found IN Port: " + infos[d].getName() + " - " + infos[d].getDescription() );
}
}

Expand Down

0 comments on commit bb84dc6

Please sign in to comment.