use of com.developmentontheedge.be5.metadata.model.base.BeElementWithOriginModule in project be5 by DevelopmentOnTheEdge.
the class DataElementUtils method moveToApplication.
/**
* Moves the model element to the application if the element is an entity item.
*
* @param modelElement
*/
public static void moveToApplication(final BeModelElement modelElement) {
if (modelElement instanceof BeElementWithOriginModule) {
BeElementWithOriginModule r = (BeElementWithOriginModule) modelElement;
r.setOriginModuleName(r.getProject().getProjectOrigin());
}
}
use of com.developmentontheedge.be5.metadata.model.base.BeElementWithOriginModule in project be5 by DevelopmentOnTheEdge.
the class DataElementUtils method moveBackToItsModule.
/**
* Moves the model element back to the its module if the element is an entity item.
*
* @param modelElement
*/
public static void moveBackToItsModule(final BeModelElement modelElement) {
if (modelElement instanceof BeElementWithOriginModule) {
BeElementWithOriginModule r = (BeElementWithOriginModule) modelElement;
r.setOriginModuleName(r.getModule().getName());
}
}
Aggregations