Package org.erlide.engine.new_model

Examples of org.erlide.engine.new_model.IErlElement


        if (!SystemConfiguration.hasFeatureEnabled(Features.NEW_MODEL)) {
            return NO_CHILDREN;
        }
        if (parentElement instanceof IProject || parentElement instanceof IFile) {
            final IResource res = (IResource) parentElement;
            final IErlElement elem = ErlModelCore.create(res);
            if (elem == null || !elem.exists()) {
                return NO_CHILDREN;
            }
            try {
                return elem.getChildren();
            } catch (final CoreException e) {
            }
        }
        if (parentElement instanceof IErlProject) {
            try {
View Full Code Here


    } else {
      IPath _movedFromPath = delta.getMovedFromPath();
      IResource _resource = delta.getResource();
      int _type = _resource.getType();
      IResource _resource_1 = ErlDeltaProcessor.getResource(_movedFromPath, _type);
      final IErlElement movedFromElement = ErlModelCore.create(_resource_1);
      boolean _tripleEquals = (movedFromElement == null);
      if (_tripleEquals) {
        this.currentDelta.insertAdded(element);
      } else {
        this.currentDelta.insertMovedTo(element, movedFromElement);
View Full Code Here

    } else {
      IPath _movedToPath = delta.getMovedToPath();
      IResource _resource = delta.getResource();
      int _type = _resource.getType();
      IResource _resource_1 = ErlDeltaProcessor.getResource(_movedToPath, _type);
      final IErlElement movedToElement = ErlModelCore.create(_resource_1);
      boolean _tripleEquals = (movedToElement == null);
      if (_tripleEquals) {
        this.currentDelta.insertRemoved(element);
      } else {
        this.currentDelta.insertMovedFrom(element, movedToElement);
View Full Code Here

   * @return the Erlang element corresponding to the given resource, or
   *  <code>null</code> if unable to associate the given resource
   *  with an element of the Erlang Model
   */
  public static IErlElement create(final IResource resource) {
    IErlElement _xblockexpression = null;
    {
      boolean _tripleEquals = (resource == null);
      if (_tripleEquals) {
        return null;
      }
      final int type = resource.getType();
      IErlElement _switchResult = null;
      switch (type) {
        case IResource.PROJECT:
          _switchResult = ErlModelCore.create(((IProject) resource));
          break;
        case IResource.FILE:
View Full Code Here

          IWorkspace _workspace = ResourcesPlugin.getWorkspace();
          IWorkspaceRoot _root = _workspace.getRoot();
          IPath _baseDir = this.properties.getBaseDir();
          IPath _append = _baseDir.append(path);
          IResource _findMember = _root.findMember(_append);
          final IErlElement element = ErlModelCore.create(_findMember);
          if ((element instanceof IErlFolder)) {
            StringConcatenation _builder = new StringConcatenation();
            _builder.append("ADD FOLDER ");
            _builder.append(((IErlFolder)element), "");
            InputOutput.<String>println(_builder.toString());
View Full Code Here

TOP

Related Classes of org.erlide.engine.new_model.IErlElement

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.