diff --git a/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewChannelAction.java b/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewChannelAction.java index d8906b8..dca44dc 100644 --- a/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewChannelAction.java +++ b/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewChannelAction.java @@ -32,11 +32,7 @@ } String channelName = JOptionPane.showInputDialog("Channel Name:"); if (channelName == null) return; - model.addChannelGenerator(new DataflowChannelGenerator(channelName)); - ResourceDependencyGraph resourceGraph = NecessityOfStoringResourceStates.doDecide(model); - ResourceDependencyGraph resourceDependecyGraph = SelectableDataTransfers.init(resourceGraph); - editor.setResourceDependencyGraph(resourceDependecyGraph); - editor.constructGraph(model, resourceDependecyGraph); + editor.addChannelGenerator(new DataflowChannelGenerator(channelName)); } }