Search in sources :

Example 1 with UpdateSequence

use of org.obeonetwork.dsl.database.dbevolution.UpdateSequence in project InformationSystem by ObeoNetwork.

the class SequenceChangeBuilder method createUpdateSequence.

protected UpdateSequence createUpdateSequence(Match change) {
    UpdateSequence updateSequence = DbevolutionFactory.eINSTANCE.createUpdateSequence();
    updateSequence.setSequence((Sequence) change.getRight());
    Object leftElement = change.getLeft();
    updateSequence.setNewSequence((Sequence) leftElement);
    fillDBDiff(updateSequence, change);
    return updateSequence;
}
Also used : UpdateSequence(org.obeonetwork.dsl.database.dbevolution.UpdateSequence)

Example 2 with UpdateSequence

use of org.obeonetwork.dsl.database.dbevolution.UpdateSequence in project InformationSystem by ObeoNetwork.

the class UpdateSequenceItemProvider method getText.

/**
 * This returns the label text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
@Override
public String getText(Object object) {
    UpdateSequence updateSequence = (UpdateSequence) object;
    Sequence sequence = updateSequence.getSequence();
    return getString("_UI_UpdateSequence_type") + " " + sequence.getName();
}
Also used : Sequence(org.obeonetwork.dsl.database.Sequence) UpdateSequence(org.obeonetwork.dsl.database.dbevolution.UpdateSequence) UpdateSequence(org.obeonetwork.dsl.database.dbevolution.UpdateSequence)

Aggregations

UpdateSequence (org.obeonetwork.dsl.database.dbevolution.UpdateSequence)2 Sequence (org.obeonetwork.dsl.database.Sequence)1