X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Fcanvas%2FHints.java;h=3fd43f0f08dd17121ac5bc43e3aeb2c4d22af20e;hb=00a0eae4da98b701fa38a6813b1743b754c5c99e;hp=cf5f70610210ff7646828f9273dc33b6964ae4b2;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/canvas/Hints.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/canvas/Hints.java index cf5f70610..3fd43f0f0 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/canvas/Hints.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/canvas/Hints.java @@ -92,8 +92,14 @@ public class Hints { * Set to true when the canvas is rendering to a printer */ public static final Key KEY_PRINT = new KeyOf(Boolean.class, "PRINTING"); - - + + /** + * Set this hint to true to prevent any modifications from + * being made to the diagram model by the diagram loading logic. Using this + * may be necessary for printing. + */ + public static final Key KEY_DISABLE_GRAPH_MODIFICATIONS = new KeyOf(Boolean.class, "DISABLE_GRAPH_MODIFICATIONS"); + private interface Dirty {} /**