]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram/src/org/simantics/diagram/profile/ProfileKeys.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / profile / ProfileKeys.java
1 /*******************************************************************************
2  * Copyright (c) 2011 Association for Decentralized Information Management in
3  * 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.profile;
13
14 import org.simantics.g2d.canvas.ICanvasContext;
15 import org.simantics.g2d.diagram.IDiagram;
16 import org.simantics.scenegraph.profile.DataNodeMap;
17 import org.simantics.scenegraph.profile.EvaluationContext;
18
19 /**
20  * Constants for accessing data within a scenegraph profile
21  * {@link EvaluationContext} through
22  * {@link EvaluationContext#getConstant(String)}.
23  * 
24  * @author Antti Villberg
25  */
26 public class ProfileKeys {
27
28     /**
29      * Stores the {@link IDiagram} related to the profile evaluation.
30      */
31     public static String DIAGRAM  = "Diagram";
32
33     /**
34      * Stores the {@link ICanvasContext} related to the profile evaluation.
35      */
36     public static String CANVAS   = "Canvas";
37
38     /**
39      * Stores the {@link DataNodeMap} related to the profile evaluation.
40      */
41     public static String NODE_MAP = "NodeMap";
42
43 }