]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/StatementEvaluation.java
Some enhancements to GraphLayer-related utilities for Diagram layers
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / synchronization / StatementEvaluation.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.diagram.synchronization;
13
14 import org.simantics.diagram.synchronization.graph.CopyAdvisorUtil;
15
16 /**
17  * @author Tuukka Lehtonen
18  * @see CopyAdvisor
19  * @see CopyAdvisorUtil#copy2(org.simantics.db.WriteGraph, org.simantics.db.Resource, org.simantics.utils.datastructures.BinaryFunction)
20  */
21 public enum StatementEvaluation {
22     /**
23      * Use default copying logic for the statement, depending on the type of
24      * the relation.
25      */
26     USE_DEFAULT,
27     /**
28      * Do not include the evaluated statement in the copy.
29      */
30     SKIP,
31     /**
32      * Include this statement for the copy but do not follow it.
33      */
34     INCLUDE,
35     /**
36      * Include this statement for the copy and follow it to continue copying
37      * recursively from the object.
38      */
39     INCLUDE_AND_FOLLOW
40 }