Search in sources :

Example 1 with ListItemCellDeclaration

use of org.applause.lang.applauseDsl.ListItemCellDeclaration in project applause by applause.

the class DefaultDetailsScreenModuleFileCompiler method compileCell.

public CharSequence compileCell(final ScreenListItemCell it) {
    CharSequence _switchResult = null;
    ListItemCellDeclaration _type = it.getType();
    String _name = _type.getName();
    final String _switchValue = _name;
    boolean _matched = false;
    if (!_matched) {
        if (Objects.equal(_switchValue, "TextDetailsItemCell")) {
            _matched = true;
            CharSequence _compileTextCell = this.compileTextCell(it);
            _switchResult = _compileTextCell;
        }
    }
    if (!_matched) {
        if (Objects.equal(_switchValue, "ToggleDetailsItemCell")) {
            _matched = true;
            CharSequence _compileBooleanCell = this.compileBooleanCell(it);
            _switchResult = _compileBooleanCell;
        }
    }
    if (!_matched) {
        if (Objects.equal(_switchValue, "DateDetailsItemCell")) {
            _matched = true;
            CharSequence _compileDateCell = this.compileDateCell(it);
            _switchResult = _compileDateCell;
        }
    }
    return _switchResult;
}
Also used : ListItemCellDeclaration(org.applause.lang.applauseDsl.ListItemCellDeclaration)

Example 2 with ListItemCellDeclaration

use of org.applause.lang.applauseDsl.ListItemCellDeclaration in project applause by applause.

the class ApplauseDslScopeProvider method scope_UIComponentMemberCall_component.

public IScope scope_UIComponentMemberCall_component(final ScreenListItemCell ctx, final EReference ref) {
    ListItemCellDeclaration _type = ctx.getType();
    EList<UIComponentMemberDeclaration> _members = _type.getMembers();
    IScope _scopeFor = Scopes.scopeFor(_members);
    return _scopeFor;
}
Also used : ListItemCellDeclaration(org.applause.lang.applauseDsl.ListItemCellDeclaration) IScope(org.eclipse.xtext.scoping.IScope) UIComponentMemberDeclaration(org.applause.lang.applauseDsl.UIComponentMemberDeclaration)

Example 3 with ListItemCellDeclaration

use of org.applause.lang.applauseDsl.ListItemCellDeclaration in project applause by applause.

the class ScreenListItemCellImpl method setType.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setType(ListItemCellDeclaration newType) {
    ListItemCellDeclaration oldType = type;
    type = newType;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ApplauseDslPackage.SCREEN_LIST_ITEM_CELL__TYPE, oldType, type));
}
Also used : ListItemCellDeclaration(org.applause.lang.applauseDsl.ListItemCellDeclaration) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

ListItemCellDeclaration (org.applause.lang.applauseDsl.ListItemCellDeclaration)3 UIComponentMemberDeclaration (org.applause.lang.applauseDsl.UIComponentMemberDeclaration)1 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 IScope (org.eclipse.xtext.scoping.IScope)1