X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.spreadsheet.graph%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fgraph%2FInvalidateAll.java;fp=bundles%2Forg.simantics.spreadsheet.graph%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fgraph%2FInvalidateAll.java;h=97290dacbf38b5491df247757179d0ae814749d0;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=b57006bfcebea6fe59040e3224024a3ff1d7387c;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/InvalidateAll.java b/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/InvalidateAll.java index b57006bfc..97290dacb 100644 --- a/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/InvalidateAll.java +++ b/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/InvalidateAll.java @@ -1,34 +1,34 @@ -package org.simantics.spreadsheet.graph; - -public class InvalidateAll implements SpreadsheetVisitor { - - public InvalidateAll() { - } - - @Override - public void visit(SpreadsheetBook book) { - for(SpreadsheetEngine engine : book.sheets) engine.accept(this); - } - - @Override - public void visit(SpreadsheetEngine engine) { - engine.lines.accept(this); - } - - @Override - public void visit(SpreadsheetLines node) { - for(SpreadsheetLines child : node.nodes.values()) child.accept(this); - for(SpreadsheetLine line : node.lines.values()) line.accept(this); - } - - @Override - public void visit(SpreadsheetLine line) { - for(SpreadsheetCell cell : line.cells) cell.accept(this); - } - - @Override - public void visit(SpreadsheetCell cell) { - cell.invalidate(); - } - -} +package org.simantics.spreadsheet.graph; + +public class InvalidateAll implements SpreadsheetVisitor { + + public InvalidateAll() { + } + + @Override + public void visit(SpreadsheetBook book) { + for(SpreadsheetEngine engine : book.sheets) engine.accept(this); + } + + @Override + public void visit(SpreadsheetEngine engine) { + engine.lines.accept(this); + } + + @Override + public void visit(SpreadsheetLines node) { + for(SpreadsheetLines child : node.nodes.values()) child.accept(this); + for(SpreadsheetLine line : node.lines.values()) line.accept(this); + } + + @Override + public void visit(SpreadsheetLine line) { + for(SpreadsheetCell cell : line.cells) cell.accept(this); + } + + @Override + public void visit(SpreadsheetCell cell) { + cell.invalidate(); + } + +}