Skip to main content
summaryrefslogtreecommitdiffstats
blob: 7c696ca2701378aea4d73a751ee98259e51311a9 (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
/*****************************************************************************
 * 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:
 *  Camille Letavernier (camille.letavernier@cea.fr) - Initial API and implementation
 *
 *****************************************************************************/
package org.eclipse.papyrus.views.properties.table.axis;

import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.edit.domain.EditingDomain;
import org.eclipse.papyrus.infra.nattable.manager.axis.AbstractAxisManager;

/**
 * An AxisManager for custom/derived UML features (Such as Multiplicity)
 * 
 * @author Camille Letavernier
 * 
 */
public class DerivedUMLPropertiesAxisManager extends AbstractAxisManager {

	public static final String AXIS_MANAGER_ID = "org.eclipse.papyrus.uml.nattable.derived.features.axis.manager"; //$NON-NLS-1$

	public static final String PROPERTIES_PREFIX = "uml_derived_features:/";

	public static final String MULTIPLICITY = PROPERTIES_PREFIX + "multiplicity";

	public boolean isSlave() {
		return false;
	}

	public boolean isDynamic() {
		return false;
	}

	public boolean canEditAxisHeader() {
		return true;
	}

	public boolean canDestroyAxisElement(Integer axisIndex) {
		return false;
	}

	public Command getDestroyAxisElementCommand(EditingDomain domain, Integer axisPosition) {
		return null;
	}

	@Override
	public boolean canBeSavedAsConfig() {
		return false;
	}

}

Back to the top