diff --git a/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java b/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java index b0db12f..ed5bfa9 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java +++ b/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java @@ -367,7 +367,7 @@ public void addResourcePath(ResourcePath parentPath, String resName) { // Force to change to data-flow modeling stage boolean stageChanged = changeStage(STAGE_DATA_FLOW_MODELING); - if (stageChanged) { + if (!stageChanged) { return; } ((DataFlowModelingStage) curStage).addResourcePath(parentPath, resName); @@ -377,7 +377,7 @@ public void addChannel(DataTransferChannel channelGen) { // Force to change to data-flow modeling stage boolean stageChanged = changeStage(STAGE_DATA_FLOW_MODELING); - if (stageChanged) { + if (!stageChanged) { return; } ((DataFlowModelingStage) curStage).addChannel(channelGen); @@ -387,7 +387,7 @@ public void addIOChannel(DataTransferChannel ioChannelGen) { // Force to change to data-flow modeling stage boolean stageChanged = changeStage(STAGE_DATA_FLOW_MODELING); - if (stageChanged) { + if (!stageChanged) { return; } ((DataFlowModelingStage) curStage).addIOChannel(ioChannelGen); @@ -397,7 +397,7 @@ public void addFormulaChannel(FormulaChannel formulaChannelGen) { // Force to change to data-flow modeling stage boolean stageChanged = changeStage(STAGE_DATA_FLOW_MODELING); - if (stageChanged) { + if (!stageChanged) { return; } ((DataFlowModelingStage) curStage).addFormulaChannel(formulaChannelGen);