});
this.frame.setIconImage(SwingUtil.createImage("airavata-2.png"));
}
private void activeTabChanged() {
GraphCanvas graphPanel = getGraphCanvas();
if (graphPanel!=null) {
// Reset the port viewers.
Port inputPort = graphPanel.getSelectedInputPort();
Port outputPort = graphPanel.getSelectedOutputPort();
this.portViewer.setInputPort(inputPort);
this.portViewer.setOutputPort(outputPort);
// Reset component viewer.
Node node = graphPanel.getSelectedNode();
Component component;
if (node != null) {
component = node.getComponent();
} else {
component = this.componentSelector.getSelectedComponent();
}
this.componentViewer.setComponent(component);
String name = graphPanel.getWorkflow().getName();
setFrameName(name);
}else{
//TODO what to do when no tabs are present???
}
}