Package org.eclipse.handly.model

Examples of org.eclipse.handly.model.IHandle


        boolean _notEquals_2 = (_bitwiseAnd_2 != 0);
        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) {
View Full Code Here


    ErlDeltaProcessor.close(source);
    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);
    }
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);
    }
View Full Code Here

    public IErlComment getHeaderComment() {
        try {
            IErlComment _xblockexpression = null;
            {
                final IHandle[] _children = this.getChildren();
                final IHandle first = IterableExtensions
                        .<IHandle> head((Iterable<IHandle>) Conversions
                                .doWrapArray(_children));
                IErlComment _xifexpression = null;
                if (first instanceof IErlComment) {
                    _xifexpression = (IErlComment) first;
View Full Code Here

    }

    @Override
    public void workingCopyModeChanged() {
        super.workingCopyModeChanged();
        final IHandle _root = this.getRoot();
        final HandleDelta delta = new HandleDelta(_root);
        final boolean _exists = this.file.exists();
        if (_exists) {
            delta.insertChanged(this, IHandleDelta.F_WORKING_COPY);
        } else {
View Full Code Here

      IFile _file = erlFile.getFile();
      _file.delete(true, null);
      boolean _exists_4 = erlFile.exists();
      Matcher<Boolean> _is_11 = Matchers.<Boolean>is(Boolean.valueOf(false));
      MatcherAssert.<Boolean>assertThat(Boolean.valueOf(_exists_4), _is_11);
      IHandle _parent = erlFile.getParent();
      IHandle[] _children = _parent.getChildren();
      int _length_4 = _children.length;
      Matcher<Integer> _is_12 = Matchers.<Integer>is(Integer.valueOf(0));
      MatcherAssert.<Integer>assertThat(Integer.valueOf(_length_4), _is_12);
      IFile _file_1 = erlFile2.getFile();
      Path _path = new Path("/Test001/nop.erl");
View Full Code Here

    }
    Matcher<Object> _nullValue_1 = Matchers.nullValue();
    Matcher<Object> _not = Matchers.<Object>not(_nullValue_1);
    Matcher<Object> _is_1 = Matchers.<Object>is(_not);
    MatcherAssert.<IHandleDelta>assertThat(actual, _is_1);
    IHandle _element = expected.getElement();
    IHandle _element_1 = actual.getElement();
    Matcher<IHandle> _is_2 = Matchers.<IHandle>is(_element_1);
    MatcherAssert.<IHandle>assertThat(_element, _is_2);
    int _kind = expected.getKind();
    int _kind_1 = actual.getKind();
    Matcher<Integer> _is_3 = Matchers.<Integer>is(Integer.valueOf(_kind_1));
    MatcherAssert.<Integer>assertThat(Integer.valueOf(_kind), _is_3);
    int _flags = expected.getFlags();
    int _flags_1 = actual.getFlags();
    Matcher<Integer> _is_4 = Matchers.<Integer>is(Integer.valueOf(_flags_1));
    MatcherAssert.<Integer>assertThat(Integer.valueOf(_flags), _is_4);
    IHandle _movedToElement = expected.getMovedToElement();
    IHandle _movedToElement_1 = actual.getMovedToElement();
    Matcher<IHandle> _is_5 = Matchers.<IHandle>is(_movedToElement_1);
    MatcherAssert.<IHandle>assertThat(_movedToElement, _is_5);
    IHandle _movedFromElement = expected.getMovedFromElement();
    IHandle _movedFromElement_1 = actual.getMovedFromElement();
    Matcher<IHandle> _is_6 = Matchers.<IHandle>is(_movedFromElement_1);
    MatcherAssert.<IHandle>assertThat(_movedFromElement, _is_6);
    final IHandleDelta[] expectedChildren = expected.getAffectedChildren();
    final IHandleDelta[] actualChildren = actual.getAffectedChildren();
    int _length = expectedChildren.length;
View Full Code Here

    this.create(null, monitor);
  }
 
  public void create(final URI location, final IProgressMonitor monitor) {
    try {
      IHandle _parent = this.getParent();
      final IWorkspace workspace = ((ErlModel) _parent).getWorkspace();
      workspace.run(
        new IWorkspaceRunnable() {
          public void run(final IProgressMonitor monitor0) {
            try {
View Full Code Here

TOP

Related Classes of org.eclipse.handly.model.IHandle

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.