Skip to main content
summaryrefslogtreecommitdiffstats
blob: 16ca7e7c874e6fa51a6de2590faa5931c6548b0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*****************************************************************************
 * Copyright (c) 2013 CEA LIST.
 *
 *    
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
 *
 *****************************************************************************/
package org.eclipse.papyrus.infra.nattable.utils;



public class Constants {

	private Constants() {
		//to prevent instanciation
	}

	public static final String BEGIN_OF_COLLECTION = "["; //$NON-NLS-1$

	public static final String END_OF_COLLECTION = "]"; //$NON-NLS-1$

	/**
	 * The String used to represent big collections
	 * Example: [v1, v2, v3, ...]
	 */
	public static final String BIG_COLLECTION = "..."; //$NON-NLS-1$

	public static final String SEPARATOR = ", "; //$NON-NLS-1$

	public static final String NOT_AVALAIBLE = "N/A";//$NON-NLS-1$

	public static final String INFINITY_STAR = "*";

	public static final String INFINITE_MINUS_ONE = "-1";

	/**
	 * the context to use to find the label provider used to display values in cells and headers
	 */
	public static final String TABLE_LABEL_PROVIDER_CONTEXT = "org.eclipse.papyrus.infra.nattable.full.labelprovider";

	/**
	 * the context to use to find the label provider used to display values in the headers
	 */
	public static final String HEADER_LABEL_PROVIDER_CONTEXT = "org.eclipse.papyrus.infra.nattable.header.labelprovider";

	/**
	 * the context to use to find the label provider used to display values in the body of the table
	 */

	public static final String BODY_LABEL_PROVIDER_CONTEXT = "org.eclipse.papyrus.infra.nattable.body.labelprovider";

	/**
	 * The name of the parameter used for the sort command
	 */
	public static final String SORT_COMMAND_PARAMETER = "org.eclipse.papyrus.infra.nattable.sort.command.alphabetic.order.parameter";

	/**
	 * the key used to store the container of the pasted element in a map
	 */
	public static final String PASTED_ELEMENT_CONTAINER_KEY = "pastedElementContainer";

	/**
	 * the key used to store the references to set after to have attached the pasted element to the model
	 */
	public static final String REFERENCES_TO_SET_KEY = "referencesToSet";

	/**
	 * the key used to store the cells to attached to the model
	 */
	public static final String CELLS_TO_ADD_KEY = "cellsToAdd";
}

Back to the top