use of org.applause.lang.applauseDsl.ScreenKind in project applause by applause.
the class ScreenCompiler method doGenerate.
public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
TreeIterator<EObject> _allContents = resource.getAllContents();
Iterable<EObject> _iterable = IteratorExtensions.<EObject>toIterable(_allContents);
Iterable<Screen> _filter = Iterables.<Screen>filter(_iterable, Screen.class);
final Procedure1<Screen> _function = new Procedure1<Screen>() {
public void apply(final Screen it) {
ScreenKind _kind = it.getKind();
final ScreenKind getKind = _kind;
boolean _matched = false;
if (!_matched) {
if (Objects.equal(getKind, ScreenKind.DEFAULT_LIST)) {
_matched = true;
ScreenCompiler.this.defaultListScreenCompiler.doGenerate(it, fsa);
}
}
if (!_matched) {
if (Objects.equal(getKind, ScreenKind.DEFAULT_DETAILS)) {
_matched = true;
ScreenCompiler.this.defaultDetailsScreenCompiler.doGenerate(it, fsa);
}
}
}
};
IterableExtensions.<Screen>forEach(_filter, _function);
}
use of org.applause.lang.applauseDsl.ScreenKind in project applause by applause.
the class ScreenImpl method setKind.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setKind(ScreenKind newKind) {
ScreenKind oldKind = kind;
kind = newKind == null ? KIND_EDEFAULT : newKind;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ApplauseDslPackage.SCREEN__KIND, oldKind, kind));
}
Aggregations