]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.browsing.ui.common/src/org/simantics/browsing/ui/common/ColumnKeys.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.browsing.ui.common / src / org / simantics / browsing / ui / common / ColumnKeys.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.browsing.ui.common;
13
14 import org.simantics.browsing.ui.content.Labeler;
15 import org.simantics.utils.datastructures.ArrayMap;
16
17 /**
18  * Reusable standard key objects for idenfitying columns in {@link Labeler}
19  * implementations.
20  * 
21  * @author Tuukka Lehtonen
22  * 
23  * @see Labeler#getLabels()
24  * @see Labeler#getRuntimeLabels()
25  */
26 public final class ColumnKeys {
27
28     // Use these for single-column tree views
29
30     public static final String   SINGLE              = "single";
31
32     /**
33      * Use with {@link ArrayMap} in {@link Labeler} implementations.
34      */
35     public static final String[] KEYS_SINGLE         = { SINGLE };
36
37     // Use these for tree-table style multicolumn views
38
39     public static final String   PROPERTY            = "Property";
40
41     public static final String   EXPRESSION               = "Expression";
42
43     public static final String   VALUE               = "Value";
44
45     public static final String   DISPLAY_PROPERTY            = "HasDisplayProperty";
46     public static final String   DISPLAY_VALUE            = "HasDisplayValue";
47     public static final String   DISPLAY_UNIT            = "HasDisplayUnit";
48
49     
50     /**
51      * Use with {@link ArrayMap} in {@link Labeler} implementations.
52      */
53     public static final String[] KEYS_PROPERTY_VALUE = { PROPERTY, VALUE };
54     
55 }