blob: 738043e6e4b7e89ba159ea755fd98e4dcd91aa0b (
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, 2011 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.papyrus;
import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.diagram.profile.edit.parts.UMLEditPartFactory;
/**
* View label provider for Profile.
* @author Mickael Barbero <a href="mailto:mickael.barbero@obeo.fr">mickael.barbero@obeo.fr</a>
*/
public class ProfileViewLabelProvider 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;
}
}
|