blob: adaa9d49365c300d481f1405088cb53fbf01e2b1 (
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
|
/*******************************************************************************
* Copyright (c) 2006, 2012 Obeo.
* 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:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.emf.compare.diagram.ide.papyrus;
import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.UMLEditPartFactory;
/**
* View label provider for StateMachine.
* @author Mikael Barbero <a href="mailto:mikael.barbero@obeo.fr">Mikael.barbero@obeo.fr</a>
*/
public class StateMachineViewLabelProvider extends AbstractUMLViewLabelProvider {
/**
* The edit part factory.
*/
private static final UMLEditPartFactory EDIT_PART_FACTORY = new UMLEditPartFactory();
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.compare.diagram.provider.IViewLabelProvider#isManaged(org.eclipse.gmf.runtime.notation.View)
*/
public boolean isManaged(View view) {
return EDIT_PART_FACTORY.createEditPart(null, view) instanceof ITextAwareEditPart;
}
}
|