Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2090e289d8427f141f94faf02ca2f5d0237c445e (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
/*****************************************************************************
 * Copyright (c) 2010 Atos Origin.
 *
 *    
 * 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:
 *   Atos Origin - Initial API and implementation
 *
 *****************************************************************************/
package org.eclipse.papyrus.sysml.diagram.blockdiagram.edit.parts;

import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.sysml.diagram.blockdiagram.part.Messages;


public class BlockPartCompartmentEditPart extends BlockAttributeCompartmentEditPart {

	public static final int VISUAL_ID = 7004;

	public BlockPartCompartmentEditPart(View view) {
		super(view);
	}

	public String getCompartmentName() {
		return Messages.BlockPartsCompartmentEditPart_title;
	}

	@Override
	protected void createDefaultEditPolicies() {
		super.createDefaultEditPolicies();
		installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.sysml.diagram.blockdiagram.edit.policies.BlockPartCompartmentCanonicalEditPolicy());
	}

}

Back to the top