Package org.eclipse.handly.model.impl

Examples of org.eclipse.handly.model.impl.Body


        if (_notEquals_2) {
          IMarkerDelta[] _markerDeltas = delta.getMarkerDeltas();
          this.markersChanged(erlProject, _markerDeltas);
        }
        IHandle _parent = erlProject.getParent();
        final Body parentBody = ErlDeltaProcessor.findBody(_parent);
        final IHandle[] children = parentBody.getChildren();
        boolean _contains = ((List<IHandle>)Conversions.doWrapArray(children)).contains(erlProject);
        boolean _not = (!_contains);
        if (_not) {
          ErlDeltaProcessor.addToModel(erlProject);
        }
View Full Code Here


    this.currentDelta.insertChanged(source, IHandleDelta.F_CONTENT);
  }
 
  private static void addToModel(final IHandle element) {
    IHandle _parent = element.getParent();
    final Body parentBody = ErlDeltaProcessor.findBody(_parent);
    boolean _tripleNotEquals = (parentBody != null);
    if (_tripleNotEquals) {
      parentBody.addChild(element);
    }
    ErlDeltaProcessor.close(element);
  }
View Full Code Here

    ErlDeltaProcessor.close(element);
  }
 
  private static void removeFromModel(final IHandle element) {
    IHandle _parent = element.getParent();
    final Body parentBody = ErlDeltaProcessor.findBody(_parent);
    boolean _tripleNotEquals = (parentBody != null);
    if (_tripleNotEquals) {
      parentBody.removeChild(element);
    }
    ErlDeltaProcessor.close(element);
  }
View Full Code Here

          int _kind = delta.getKind();
          int _bitwiseOr = (IResourceDelta.ADDED | IResourceDelta.REMOVED);
          int _bitwiseAnd = (_kind & _bitwiseOr);
          boolean _notEquals = (_bitwiseAnd != 0);
          if (_notEquals) {
            Body _findBody = ErlDeltaProcessor.findBody(erlProject);
            final ErlProjectBody body = ((ErlProjectBody) _findBody);
            boolean _tripleNotEquals = (body != null);
            if (_tripleNotEquals) {
              body.setNonErlResources(null);
            }
View Full Code Here

    HashMap<IHandle, Body> _hashMap_1 = new HashMap<IHandle, Body>(ErlModelCache.DEFAULT_CHILDREN_SIZE);
    this.childrenCache = _hashMap_1;
  }
 
  public Body get(final IHandle handle) {
    Body _xifexpression = null;
    if ((handle instanceof IErlModel)) {
      _xifexpression = this.modelBody;
    } else {
      Body _xifexpression_1 = null;
      if ((handle instanceof IErlProject)) {
        _xifexpression_1 = this.projectCache.get(handle);
      } else {
        if ((handle instanceof IErlSource)) {
          return this.fileCache.get(handle);
View Full Code Here

    }
    return _xifexpression;
  }
 
  public Body peek(final IHandle handle) {
    Body _xifexpression = null;
    if ((handle instanceof IErlModel)) {
      _xifexpression = this.modelBody;
    } else {
      Body _xifexpression_1 = null;
      if ((handle instanceof IErlProject)) {
        _xifexpression_1 = this.projectCache.get(handle);
      } else {
        if ((handle instanceof IErlSource)) {
          return this.fileCache.peek(handle);
View Full Code Here

    return _switchResult;
  }
 
  public IResource[] getNonErlResources() {
    try {
      Body _body = this.getBody();
      return ((IResource[])Conversions.unwrapArray(((ErlProjectBody) _body).getNonErlResources(this), IResource.class));
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.handly.model.impl.Body

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.