Skip to content

Commit

Permalink
Synchronizing network names, creation
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthBezawada committed Jan 12, 2016
1 parent cf9fb0e commit 14fa1d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.cytoscape.mclique.internal;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.DefaultComboBoxModel;
import org.cytoscape.model.CyNetwork;
import org.cytoscape.model.events.NetworkAddedEvent;
Expand All @@ -9,6 +11,11 @@

public class NetworkEventsListener implements NetworkAddedListener, NetworkDestroyedListener{
public void handleEvent(NetworkAddedEvent e){
try {
Thread.sleep(3000);
} catch (InterruptedException ex) {
Logger.getLogger(NetworkEventsListener.class.getName()).log(Level.SEVERE, null, ex);
}
CyNetwork net = e.getNetwork();
String title = net.getRow(net).get(CyNetwork.NAME, String.class);
CliqueUI menu = CliqueCore.getTiDieStartMenu();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ public void createNetwork(CyNetwork network, List<CyNode> subnodeList, List<CyEd
get_NewNetworkSelectedNodesAndEdgesTaskFactory();
TaskIterator itr = f.createTaskIterator(network);
CyActivator.adapter.getTaskManager().execute(itr);
/*

try {
Thread.sleep(2000);
Thread.sleep(4000);
} catch (InterruptedException ex) {
Logger.getLogger(CliqueThread.class.getName()).log(Level.SEVERE, null, ex);
}*/
}
// set the name of the network
this.menu.calculatingresult("Created! Renaming the network...");
String currentNetworkName = network.getRow(network).get(CyNetwork.NAME, String.class);
Expand Down

0 comments on commit 14fa1d2

Please sign in to comment.