|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topcased.modeler.utils.LabelHelper
public class LabelHelper
This helper class is used to get the name of an EObject for a given EditDomain. The class provides also utilities to find an available name to give to the newly created EObject. Created 2 juin 2005
| Field Summary | |
|---|---|
static LabelHelper |
INSTANCE
The singleton |
| Constructor Summary | |
|---|---|
LabelHelper()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDiagramPath(org.eclipse.gef.EditDomain editDomain,
Diagram diagram)
Computes the path identifying the position of a Diagram |
java.lang.String |
getName(org.eclipse.gef.EditDomain editDomain,
EObject model)
This class uses a custom Provider to get the name. |
void |
initName(org.eclipse.gef.EditDomain editDomain,
EObject parentEObject,
EObject childEObject)
Initialize the name of a child EObject contained in a parent EObject within a given EditDomain |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final LabelHelper INSTANCE
| Constructor Detail |
|---|
public LabelHelper()
| Method Detail |
|---|
public void initName(org.eclipse.gef.EditDomain editDomain,
EObject parentEObject,
EObject childEObject)
editDomain - the EditDomain that contain the AdapterFactoryparentEObject - the parent EObject that will contain the child
EObjectchildEObject - the child EObject whose name should be initialized
public java.lang.String getName(org.eclipse.gef.EditDomain editDomain,
EObject model)
editDomain - the editing domainmodel - the EObject
public java.lang.String getDiagramPath(org.eclipse.gef.EditDomain editDomain,
Diagram diagram)
editDomain - the editDomaindiagram - the Diagram
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.