diff --git a/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java b/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java index e2dc634..3c8dbc0 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java +++ b/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java @@ -1,6 +1,7 @@ package application.editor; import application.editor.stages.DataFlowModelingStage; +import application.editor.stages.DependencyModelingStage; import application.editor.stages.PushPullSelectionStage; import application.layouts.DAGLayout; import code.ast.CompilationUnit; @@ -52,6 +53,7 @@ public static DataFlowModelingStage STAGE_DATA_FLOW_MODELING = null; public static PushPullSelectionStage STAGE_PUSH_PULL_SELECTION = null; + public static DependencyModelingStage STAGE_DEPENDENCY_MODELING = null; public Editor(mxGraphComponent graphComponent) { this.graphComponent = graphComponent; @@ -59,6 +61,7 @@ STAGE_DATA_FLOW_MODELING = new DataFlowModelingStage(graphComponent); STAGE_PUSH_PULL_SELECTION = new PushPullSelectionStage(graphComponent); + STAGE_DEPENDENCY_MODELING = new DependencyModelingStage(graphComponent); graphComponent.setCellEditor(STAGE_DATA_FLOW_MODELING.createCellEditor(graphComponent)); @@ -488,7 +491,7 @@ } public void addFormulaChannel(String channelName, Symbol op) { - // Force to change to data-flow modeling stage + // Forceget to change to data-flow modeling stage boolean stageChanged = changeStage(STAGE_DATA_FLOW_MODELING); if (!stageChanged) { return;