Removed the code display button for nodes that don't have code.

This commit is contained in:
Nehon 2015-02-11 22:47:38 +01:00
parent ae8474cb57
commit 76fe370cf1

View File

@ -25,6 +25,9 @@ public class NodeToolBar extends javax.swing.JPanel implements ComponentListener
public NodeToolBar(NodePanel node) {
initComponents();
this.node = node;
if (node.getType() != NodePanel.NodeType.Fragment && node.getType() != NodePanel.NodeType.Vertex) {
remove(codeButton);
}
node.addComponentListener(this);
}