Search in sources :

Example 1 with BeElementWithOriginModule

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());
    }
}
Also used : BeElementWithOriginModule(com.developmentontheedge.be5.metadata.model.base.BeElementWithOriginModule)

Example 2 with BeElementWithOriginModule

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());
    }
}
Also used : BeElementWithOriginModule(com.developmentontheedge.be5.metadata.model.base.BeElementWithOriginModule)

Aggregations

BeElementWithOriginModule (com.developmentontheedge.be5.metadata.model.base.BeElementWithOriginModule)2